dependencies: Upgrade JavaScript dependencies.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2023-12-07 13:28:03 -08:00 committed by Tim Abbott
parent a018f2611b
commit 202d00ebc6
7 changed files with 1296 additions and 1260 deletions

View File

@ -1,6 +1,6 @@
{
"private": true,
"packageManager": "pnpm@8.10.2+sha256.487609e857f1c11780cc98dd0bfe4c8a8b11c7f23bc3a4493ac7d263d6fb6c8c",
"packageManager": "pnpm@8.11.0+sha256.5858806c3b292cbec89b5533662168a957358e2bbd86431516d441dc1aface89",
"dependencies": {
"@babel/core": "^7.5.5",
"@babel/preset-env": "^7.5.5",
@ -124,7 +124,7 @@
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-no-jquery": "^2.7.0",
"eslint-plugin-unicorn": "^49.0.0",
"jsdom": "^22.0.0",
"jsdom": "^23.0.1",
"minimist": "^1.2.6",
"mkdirp": "^3.0.1",
"mockdate": "^3.0.2",

File diff suppressed because it is too large Load Diff

View File

@ -101,8 +101,8 @@ async function checkFile(file) {
const prefix = part.added
? "\u001B[32m+"
: part.removed
? "\u001B[31m-"
: "\u001B[34m ";
? "\u001B[31m-"
: "\u001B[34m ";
diff += prefix;
diff += part.value
.replace(/\n$/, "")

View File

@ -48,4 +48,4 @@ API_FEATURE_LEVEL = 234
# historical commits sharing the same major version, in which case a
# minor version bump suffices.
PROVISION_VERSION = (256, 0)
PROVISION_VERSION = (257, 0)

View File

@ -14,7 +14,7 @@ module.exports = {
[
"@babel/preset-env",
{
corejs: "3.33",
corejs: "3.34",
include: ["transform-optional-chaining"],
shippedProposals: true,
useBuiltIns: "usage",

View File

@ -51,8 +51,8 @@ export function update_favicon(new_message_count: number, pm_count: number): voi
new_message_count === 0
? ""
: pow < 5
? `${Math.floor(new_message_count / 1e3 ** pow)}${suffix}`
: "∞";
? `${Math.floor(new_message_count / 1e3 ** pow)}${suffix}`
: "∞";
const count_long = count.length > 2;
const rendered_favicon = render_favicon_svg({
count,

View File

@ -45,8 +45,8 @@ if (page_params.server_sentry_dsn) {
page_params.realm_sentry_key === undefined
? "www"
: page_params.realm_sentry_key === ""
? "(root)"
: page_params.realm_sentry_key;
? "(root)"
: page_params.realm_sentry_key;
const user_info: UserInfo = {
realm: sentry_key,
};
@ -54,16 +54,16 @@ if (page_params.server_sentry_dsn) {
user_info.role = page_params.is_owner
? "Organization owner"
: page_params.is_admin
? "Organization administrator"
: page_params.is_moderator
? "Moderator"
: page_params.is_guest
? "Guest"
: page_params.is_spectator
? "Spectator"
: page_params.user_id
? "Member"
: "Logged out";
? "Organization administrator"
: page_params.is_moderator
? "Moderator"
: page_params.is_guest
? "Guest"
: page_params.is_spectator
? "Spectator"
: page_params.user_id
? "Member"
: "Logged out";
if (page_params.user_id) {
user_info.id = page_params.user_id.toString();
}