Upgrade dependencies, including Electron 18.0.1.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2022-03-31 21:21:21 -07:00
parent 829b2a0f2a
commit 3b04b61662
31 changed files with 6171 additions and 7348 deletions

View File

@@ -44,6 +44,7 @@ const generateFilePath = (url: string): string => {
let {length} = url;
while (length) {
// eslint-disable-next-line no-bitwise, unicorn/prefer-code-point
hash = (hash * 33) ^ url.charCodeAt(--length);
}
@@ -52,6 +53,7 @@ const generateFilePath = (url: string): string => {
fs.mkdirSync(dir);
}
// eslint-disable-next-line no-bitwise
return `${dir}/${hash >>> 0}${extension}`;
};
@@ -70,6 +72,7 @@ export const _getServerSettings = async (
}
const data: unknown = JSON.parse(await getStream(response));
/* eslint-disable @typescript-eslint/naming-convention */
const {realm_name, realm_uri, realm_icon} = z
.object({
realm_name: z.string(),
@@ -77,6 +80,7 @@ export const _getServerSettings = async (
realm_icon: z.string(),
})
.parse(data);
/* eslint-enable @typescript-eslint/naming-convention */
return {
// Some Zulip Servers use absolute URL for server icon whereas others use relative URL