Skip to content

Commit 3b04b61

Browse files
committed
Upgrade dependencies, including Electron 18.0.1.
Signed-off-by: Anders Kaseorg <[email protected]>
1 parent 829b2a0 commit 3b04b61

31 files changed

+6444
-7621
lines changed

app/common/config-schemata.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ export const configSchemata = {
1313
autoUpdate: z.boolean(),
1414
badgeOption: z.boolean(),
1515
betaUpdate: z.boolean(),
16+
// eslint-disable-next-line @typescript-eslint/naming-convention
1617
customCSS: z.string().or(z.literal(false)).nullable(),
1718
dnd: z.boolean(),
1819
dndPreviousSettings: z.object(dndSettingsSchemata).partial(),
@@ -23,6 +24,7 @@ export const configSchemata = {
2324
lastActiveTab: z.number(),
2425
promptDownload: z.boolean(),
2526
proxyBypass: z.string(),
27+
// eslint-disable-next-line @typescript-eslint/naming-convention
2628
proxyPAC: z.string(),
2729
proxyRules: z.string(),
2830
quitOnClose: z.boolean(),

app/common/dnd-util.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import process from "process";
2+
13
import type * as z from "zod";
24

35
import type {dndSettingsSchemata} from "./config-schemata";

app/common/enterprise-util.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import fs from "fs";
22
import path from "path";
3+
import process from "process";
34

45
import * as z from "zod";
56

app/common/logger-util.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import {Console} from "console"; // eslint-disable-line node/prefer-global/console
22
import fs from "fs";
33
import os from "os";
4+
import process from "process";
45

56
import {initSetUp} from "./default-util";
67
import {app} from "./remote";

app/common/remote.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import process from "process";
2+
13
export const {app, dialog} =
24
process.type === "renderer"
35
? // eslint-disable-next-line @typescript-eslint/no-require-imports, @typescript-eslint/no-var-requires

app/main/autoupdater.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import {shell} from "electron/common";
22
import {app, dialog, session} from "electron/main";
3+
import process from "process";
34
import util from "util";
45

56
import log from "electron-log";

app/main/badge-settings.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import {nativeImage} from "electron/common";
22
import type {BrowserWindow} from "electron/main";
33
import {app} from "electron/main";
4+
import process from "process";
45

56
import * as ConfigUtil from "../common/config-util";
67

app/main/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import type {IpcMainEvent, WebContents} from "electron/main";
22
import {BrowserWindow, app, dialog, powerMonitor, session} from "electron/main";
33
import path from "path";
4+
import process from "process";
45

56
import * as remoteMain from "@electron/remote/main";
67
import windowStateKeeper from "electron-window-state";
@@ -18,6 +19,7 @@ import {sentryInit} from "./sentry";
1819
import {setAutoLaunch} from "./startup";
1920
import {ipcMain, send} from "./typed-ipc-main";
2021

22+
// eslint-disable-next-line @typescript-eslint/naming-convention
2123
const {GDK_BACKEND} = process.env;
2224

2325
// Initialize sentry for main process

app/main/linuxupdater.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,11 @@ export async function linuxUpdateNotification(session: Session): Promise<void> {
2727
}
2828

2929
const data: unknown = JSON.parse(await getStream(response));
30+
/* eslint-disable @typescript-eslint/naming-convention */
3031
const latestVersion = ConfigUtil.getConfigItem("betaUpdate", false)
3132
? z.array(z.object({tag_name: z.string()})).parse(data)[0].tag_name
3233
: z.object({tag_name: z.string()}).parse(data).tag_name;
34+
/* eslint-enable @typescript-eslint/naming-convention */
3335

3436
if (semver.gt(latestVersion, app.getVersion())) {
3537
const notified = LinuxUpdateUtil.getUpdateItem(latestVersion);

app/main/menu.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import {shell} from "electron/common";
22
import type {MenuItemConstructorOptions} from "electron/main";
33
import {BrowserWindow, Menu, app} from "electron/main";
4+
import process from "process";
45

56
import AdmZip from "adm-zip";
67

0 commit comments

Comments
 (0)