Upgrade dependencies, including Electron 22.2.0.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2023-02-06 19:20:22 -08:00
parent 4d3420dcd0
commit 1ac2483cc4
6 changed files with 417 additions and 8095 deletions

View File

@@ -12,7 +12,7 @@ import * as EnterpriseUtil from "./enterprise-util.js";
import Logger from "./logger-util.js";
export type Config = {
[Key in keyof typeof configSchemata]: z.output<typeof configSchemata[Key]>;
[Key in keyof typeof configSchemata]: z.output<(typeof configSchemata)[Key]>;
};
const logger = new Logger({
@@ -26,7 +26,7 @@ reloadDb();
export function getConfigItem<Key extends keyof Config>(
key: Key,
defaultValue: Config[Key],
): z.output<typeof configSchemata[Key]> {
): z.output<(typeof configSchemata)[Key]> {
try {
db.reload();
} catch (error: unknown) {

View File

@@ -7,7 +7,7 @@ import * as ConfigUtil from "./config-util.js";
export type DndSettings = {
[Key in keyof typeof dndSettingsSchemata]: z.output<
typeof dndSettingsSchemata[Key]
(typeof dndSettingsSchemata)[Key]
>;
};

View File

@@ -9,7 +9,7 @@ import Logger from "./logger-util.js";
type EnterpriseConfig = {
[Key in keyof typeof enterpriseConfigSchemata]: z.output<
typeof enterpriseConfigSchemata[Key]
(typeof enterpriseConfigSchemata)[Key]
>;
};

8496
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -144,6 +144,7 @@
"gatemaker": "^1.0.0"
},
"devDependencies": {
"@electron/notarize": "^1.2.3",
"@electron/remote": "^2.0.8",
"@sentry/electron": "^4.1.2",
"@types/adm-zip": "^0.5.0",
@@ -161,10 +162,9 @@
"electron": "^22.0.0",
"electron-builder": "^23.0.3",
"electron-log": "^4.3.5",
"electron-notarize": "^1.0.0",
"electron-updater": "^5.0.1",
"electron-window-state": "^5.0.3",
"escape-goat": "^3.0.0",
"escape-goat": "^4.0.0",
"get-stream": "^6.0.1",
"htmlhint": "^1.1.2",
"i18n": "^0.15.1",
@@ -174,7 +174,7 @@
"playwright-core": "^1.30.0-alpha-jan-3-2023",
"pre-commit": "^1.2.2",
"prettier": "^2.3.2",
"rimraf": "^3.0.2",
"rimraf": "^4.1.2",
"semver": "^7.3.5",
"stylelint": "^14.5.3",
"stylelint-config-prettier": "^9.0.3",

View File

@@ -2,8 +2,8 @@
const path = require("node:path");
const process = require("node:process");
const {notarize} = require("@electron/notarize");
const dotenv = require("dotenv");
const {notarize} = require("electron-notarize");
dotenv.config({path: path.join(__dirname, "/../.env")});