Upgrade @typescript-eslint dependencies to v8.33.0 (#9363)

* Upgrade @typescript-eslint dependencies from v6.21.0 to v8.33.0

- Updated @typescript-eslint/eslint-plugin from ^6.21.0 to ^8.33.0
- Updated @typescript-eslint/parser from ^6.21.0 to ^8.33.0
- Tested linting functionality to ensure compatibility
- This brings the latest TypeScript ESLint features and bug fixes

* lint

* tsc

---------

Co-authored-by: codegen-sh[bot] <131295404+codegen-sh[bot]@users.noreply.github.com>
Co-authored-by: Tom Moor <tom@getoutline.com>
This commit is contained in:
codegen-sh[bot]
2025-06-01 11:01:15 -04:00
committed by GitHub
parent 1836d2ef63
commit 758d4edbb9
76 changed files with 274 additions and 257 deletions
+3 -1
View File
@@ -72,6 +72,7 @@
"ignoreTypeValueShadow": true
}
],
"@typescript-eslint/no-require-imports": "off",
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/no-floating-promises": "error",
"@typescript-eslint/await-thenable": "error",
@@ -85,6 +86,7 @@
"error",
{
"argsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_",
"args": "after-used",
"ignoreRestSiblings": true
}
@@ -185,4 +187,4 @@
"typescript": {}
}
}
}
}
+2 -2
View File
@@ -106,8 +106,8 @@ export const startTyping = createAction({
}, 250);
window.addEventListener("keydown", (event) => {
if (event.key === "Escape") {
intervalId && clearInterval(intervalId);
if (event.key === "Escape" && intervalId) {
clearInterval(intervalId);
}
});
+1 -1
View File
@@ -1215,7 +1215,7 @@ export const leaveDocument = createAction({
} as UserMembership);
toast.success(t("You have left the shared document"));
} catch (err) {
} catch (_err) {
toast.error(t("Could not leave document"));
}
},
+3 -1
View File
@@ -57,13 +57,15 @@ export const createTeam = createAction({
perform: ({ t, event, stores }) => {
event?.preventDefault();
event?.stopPropagation();
const { user } = stores.auth;
user &&
if (user) {
stores.dialogs.openModal({
title: t("Create a workspace"),
fullscreen: true,
content: <TeamNew user={user} />,
});
}
},
});
+3 -1
View File
@@ -171,7 +171,9 @@ const InnerContextMenu = (props: InnerContextMenuProps) => {
});
}
return () => {
scrollElement && !props.isSubMenu && enableBodyScroll(scrollElement);
if (scrollElement && !props.isSubMenu) {
enableBodyScroll(scrollElement);
}
};
}, [props.isSubMenu, props.visible]);
+1 -1
View File
@@ -79,7 +79,7 @@ function DocumentCopy({ document, onSubmit }: Props) {
toast.success(t("Document copied"));
onSubmit(result);
} catch (err) {
} catch (_err) {
toast.error(t("Couldnt copy the document, try again?"));
}
};
+5 -3
View File
@@ -107,9 +107,11 @@ const Reaction: React.FC<Props> = ({
const handleClick = React.useCallback(
(event: React.SyntheticEvent<HTMLButtonElement>) => {
event.stopPropagation();
active
? void onRemoveReaction(reaction.emoji)
: void onAddReaction(reaction.emoji);
if (active) {
void onRemoveReaction(reaction.emoji);
} else {
void onAddReaction(reaction.emoji);
}
},
[reaction, active, onAddReaction, onRemoveReaction]
);
+1 -1
View File
@@ -41,7 +41,7 @@ const ReactionList: React.FC<Props> = ({
const loadReactedUsersData = async () => {
try {
await model.loadReactedUsersData();
} catch (err) {
} catch (_err) {
Logger.warn("Could not prefetch reaction data");
}
};
@@ -29,7 +29,7 @@ const ViewReactionsDialog: React.FC<Props> = ({ model }) => {
const loadReactedUsersData = async () => {
try {
await model.loadReactedUsersData();
} catch (err) {
} catch (_err) {
toast.error(t("Could not load reactions"));
}
};
@@ -54,7 +54,7 @@ function DocumentMembersList({ document, invitedInSession }: Props) {
})
);
}
} catch (err) {
} catch (_err) {
toast.error(t("Could not remove user"));
}
},
@@ -74,7 +74,7 @@ function DocumentMembersList({ document, invitedInSession }: Props) {
userName: userToUpdate.name,
})
);
} catch (err) {
} catch (_err) {
toast.error(t("Could not update user"));
}
},
@@ -120,7 +120,11 @@ function InnerDocumentLink(
const handleDisclosureClick = React.useCallback(
(ev) => {
ev?.preventDefault();
expanded ? setCollapsed() : setExpanded();
if (expanded) {
setCollapsed();
} else {
setExpanded();
}
},
[setCollapsed, setExpanded, expanded]
);
+1 -1
View File
@@ -190,7 +190,7 @@ const LinkEditor: React.FC<Props> = ({
try {
onClickLink(getHref(), event);
} catch (err) {
} catch (_err) {
toast.error(dictionary.openLinkError);
}
};
+1 -1
View File
@@ -299,7 +299,7 @@ export default class FindAndReplaceExtension extends Extension {
this.results.push({ from, to, type });
}
} catch (e) {
} catch (_err) {
// Invalid RegExp
}
});
+6 -4
View File
@@ -293,9 +293,11 @@ export default class PasteHandler extends Extension {
currentPos += node.nodeSize;
});
} else {
singleNode
? tr.replaceSelectionWith(singleNode, this.shiftKey)
: tr.replaceSelection(slice);
if (singleNode) {
tr.replaceSelectionWith(singleNode, this.shiftKey);
} else {
tr.replaceSelection(slice);
}
}
view.dispatch(
@@ -550,7 +552,7 @@ function parseSingleIframeSrc(html: string) {
return src;
}
}
} catch (e) {
} catch (_err) {
// Ignore the million ways parsing could fail.
}
return undefined;
+1 -1
View File
@@ -513,7 +513,7 @@ export class Editor extends React.PureComponent<
},
this.elementRef.current || undefined
);
} catch (err) {
} catch (_err) {
// querySelector will throw an error if the hash begins with a number
// or contains a period. This is protected against now by safeSlugify
// however previous links may be in the wild.
+1 -1
View File
@@ -30,7 +30,7 @@ export default function useEditorClickHandlers({ shareId }: Params) {
try {
const url = new URL(href);
navigateTo = url.pathname + url.hash;
} catch (err) {
} catch (_err) {
navigateTo = href;
}
}
+3 -3
View File
@@ -43,7 +43,7 @@ export function setPostLoginPath(path: string) {
try {
sessionStorage.setItem(key, path);
} catch (e) {
} catch (_err) {
// If the session storage is full or inaccessible, we can't do anything about it.
}
}
@@ -62,7 +62,7 @@ export function usePostLoginPath() {
let path;
try {
path = sessionStorage.getItem(key) || getCookie(key);
} catch (e) {
} catch (_err) {
// Expected error if the session storage is full or inaccessible.
}
@@ -74,7 +74,7 @@ export function usePostLoginPath() {
const cleanup = history.listen(() => {
try {
sessionStorage.removeItem(key);
} catch (e) {
} catch (_err) {
// Expected error if the session storage is full or inaccessible.
}
removeCookie(key);
@@ -165,7 +165,7 @@ function CommentThreadItem({
setReadOnly();
comment.data = data;
await comment.save();
} catch (error) {
} catch (_err) {
setEditing();
toast.error(t("Error updating comment"));
}
@@ -21,7 +21,9 @@ function MarkAsViewed(props: Props) {
}, MARK_AS_VIEWED_AFTER);
return () => {
viewTimeout.current && clearTimeout(viewTimeout.current);
if (viewTimeout.current) {
clearTimeout(viewTimeout.current);
}
};
}, [document]);
+1 -1
View File
@@ -86,7 +86,7 @@ function DocumentMove({ document }: Props) {
toast.success(t("Document moved"));
dialogs.closeAllModals();
} catch (err) {
} catch (_err) {
toast.error(t("Couldnt move the document, try again?"));
}
};
+1 -1
View File
@@ -61,7 +61,7 @@ function DocumentNew({ template }: Props) {
: documentEditPath(document),
location.state
);
} catch (err) {
} catch (_err) {
toast.error(t("Couldnt create the document, try again?"));
history.goBack();
}
+1 -1
View File
@@ -57,7 +57,7 @@ function DocumentPublish({ document }: Props) {
toast.success(t("Document published"));
dialogs.closeAllModals();
} catch (err) {
} catch (_err) {
toast.error(t("Couldnt publish the document, try again?"));
}
};
+3 -1
View File
@@ -93,7 +93,9 @@ function Authorize() {
useEffect(
() => () => {
timeoutRef.current && window.clearTimeout(timeoutRef.current);
if (timeoutRef.current) {
window.clearTimeout(timeoutRef.current);
}
},
[]
);
@@ -216,7 +216,7 @@ export const ViewGroupMembersDialog = observer(function ({
icon: <Avatar model={user} size={AvatarSize.Toast} />,
}
);
} catch (err) {
} catch (_err) {
toast.error(t("Could not remove user"));
}
},
@@ -326,7 +326,7 @@ const AddPeopleToGroupDialog = observer(function ({
icon: <Avatar model={user} size={AvatarSize.Toast} />,
}
);
} catch (err) {
} catch (_err) {
toast.error(t("Could not add user"));
}
},
+11 -9
View File
@@ -99,15 +99,17 @@ export default class GroupMembershipsStore extends Store<GroupMembership> {
documentId?: string;
groupId: string;
}) {
collectionId
? await client.post("/collections.remove_group", {
id: collectionId,
groupId,
})
: await client.post("/documents.remove_group", {
id: documentId,
groupId,
});
if (collectionId) {
await client.post("/collections.remove_group", {
id: collectionId,
groupId,
});
} else {
await client.post("/documents.remove_group", {
id: documentId,
groupId,
});
}
this.removeAll(
collectionId
+1 -3
View File
@@ -84,9 +84,7 @@ export default class NotificationsStore extends Store<Notification> {
get orderedData(): Notification[] {
return sortBy(
orderBy(Array.from(this.data.values()), "createdAt", "desc"),
(item) => {
item.viewedAt ? 1 : -1;
}
(item) => (item.viewedAt ? 1 : -1)
);
}
}
+4 -2
View File
@@ -129,8 +129,10 @@ export default class RootStore {
Object.getOwnPropertyNames(this)
.filter((key) => ["auth", "ui"].includes(key) === false)
.forEach((key: keyof RootStore) => {
// @ts-expect-error clear exists on all stores
"clear" in this[key] && this[key].clear();
if ("clear" in this[key]) {
// @ts-expect-error clear exists on all stores
this[key].clear();
}
});
}
-1
View File
@@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/ban-types */
import { Location, LocationDescriptor } from "history";
import { TFunction } from "i18next";
import {
+1 -1
View File
@@ -127,7 +127,7 @@ class ApiClient {
cache: "no-cache",
}
);
} catch (err) {
} catch (_err) {
if (window.navigator.onLine) {
throw new NetworkError("A network error occurred, try again?");
} else {
+3 -2
View File
@@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/no-unused-expressions */
// download.js v3.0, by dandavis; 2008-2014. [CCBY2] see http://danml.com/download.html for tests/usage
// v1 landed a FF+Chrome compat way of downloading strings to local un-named files, upgraded to use a hidden frame and optional mime
// v2 added named files via a[download], msSaveBlob, IE (10+) support, and window.URL support for larger+faster saves than dataURLs
@@ -53,7 +54,7 @@ export default function download(
: new B([x], {
type: m,
});
} catch (y) {
} catch (_err) {
if (BB) {
b = new BB();
b.append([x]);
@@ -112,7 +113,7 @@ export default function download(
) {
try {
return saver("data:" + m + ";base64," + self.btoa(blob));
} catch (y) {
} catch (_err) {
return saver("data:" + m + "," + encodeURIComponent(blob));
}
}
+1 -1
View File
@@ -12,7 +12,7 @@ import Desktop from "./Desktop";
export function formatNumber(number: number, locale: string) {
try {
return new Intl.NumberFormat(locale).format(number);
} catch (e) {
} catch (_err) {
return number.toString();
}
}
+1 -1
View File
@@ -14,7 +14,7 @@ export function isHash(href: string) {
) {
return true;
}
} catch (e) {
} catch (_err) {
// failed to parse as url
}
+2 -2
View File
@@ -334,8 +334,8 @@
"@types/utf8": "^3.0.3",
"@types/validator": "^13.15.0",
"@types/yauzl": "^2.10.3",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"@typescript-eslint/eslint-plugin": "^8.33.0",
"@typescript-eslint/parser": "^8.33.0",
"babel-eslint": "^10.1.0",
"babel-jest": "^29.7.0",
"babel-plugin-transform-inline-environment-variables": "^0.4.4",
+1 -1
View File
@@ -103,7 +103,7 @@ const emailCallback = async (ctx: APIContext<T.EmailCallbackReq>) => {
try {
user = await getUserForEmailSigninToken(token as string);
} catch (err) {
} catch (_err) {
ctx.redirect(`/?notice=expired-token`);
return;
}
+1 -1
View File
@@ -148,7 +148,7 @@ if (env.SLACK_CLIENT_ID && env.SLACK_CLIENT_SECRET) {
parsedState = SlackUtils.parseState<{
collectionId: string;
}>(state);
} catch (err) {
} catch (_err) {
throw ValidationError("Invalid state");
}
+1 -1
View File
@@ -154,7 +154,7 @@ function getKeyFromContext(ctx: APIContext<T.FilesGetReq>): string {
try {
JWT.verify(sig, env.SECRET_KEY);
} catch (err) {
} catch (_err) {
throw AuthenticationError("Invalid signature");
}
+6 -2
View File
@@ -194,9 +194,13 @@ export default async function loadDocument({
if (document.deletedAt) {
// don't send data if user cannot restore deleted doc
user && authorize(user, "restore", document);
if (user) {
authorize(user, "restore", document);
}
} else {
user && authorize(user, "read", document);
if (user) {
authorize(user, "read", document);
}
}
if (document.isTrialImport) {
+1 -1
View File
@@ -246,7 +246,7 @@ export class Mailer {
pass: testAccount.pass,
},
};
} catch (err) {
} catch (_err) {
return undefined;
}
}
+2 -2
View File
@@ -758,7 +758,7 @@ export class Environment {
protected toBoolean(value: string) {
try {
return value ? !!JSON.parse(value) : false;
} catch (err) {
} catch (_err) {
throw new Error(
`"${value}" could not be parsed as a boolean, must be "true" or "false"`
);
@@ -780,7 +780,7 @@ export class Environment {
protected toOptionalBoolean(value: string | undefined) {
try {
return value ? !!JSON.parse(value) : undefined;
} catch (err) {
} catch (_err) {
return undefined;
}
}
+2 -2
View File
@@ -79,7 +79,7 @@ export default function auth(options: AuthenticationOptions = {}) {
authentication = await OAuthAuthentication.findByAccessToken(token, {
rejectOnEmpty: true,
});
} catch (err) {
} catch (_err) {
throw AuthenticationError("Invalid access token");
}
if (!authentication) {
@@ -114,7 +114,7 @@ export default function auth(options: AuthenticationOptions = {}) {
try {
apiKey = await ApiKey.findByToken(token);
} catch (err) {
} catch (_err) {
throw AuthenticationError("Invalid API key");
}
+2 -3
View File
@@ -1,10 +1,9 @@
/* eslint-disable @typescript-eslint/ban-types */
import { AllowNull, Column, IsDate } from "sequelize-typescript";
import ParanoidModel from "./ParanoidModel";
class ArchivableModel<
TModelAttributes extends {} = any,
TCreationAttributes extends {} = TModelAttributes
TModelAttributes extends object = any,
TCreationAttributes extends object = TModelAttributes
> extends ParanoidModel<TModelAttributes, TCreationAttributes> {
/** Whether the document is archived, and if so when. */
@AllowNull
+2 -3
View File
@@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/ban-types */
import {
CreatedAt,
UpdatedAt,
@@ -11,8 +10,8 @@ import {
import Model from "./Model";
class IdModel<
TModelAttributes extends {} = any,
TCreationAttributes extends {} = TModelAttributes
TModelAttributes extends object = any,
TCreationAttributes extends object = TModelAttributes
> extends Model<TModelAttributes, TCreationAttributes> {
@IsUUID(4)
@PrimaryKey
+2 -3
View File
@@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/ban-types */
import isEqual from "fast-deep-equal";
import isArray from "lodash/isArray";
import isObject from "lodash/isObject";
@@ -43,8 +42,8 @@ type EventOptions = EventOverrideOptions & {
export type HookContext = APIContext["context"] & { event?: EventOptions };
class Model<
TModelAttributes extends {} = any,
TCreationAttributes extends {} = TModelAttributes
TModelAttributes extends object = any,
TCreationAttributes extends object = TModelAttributes
> extends SequelizeModel<TModelAttributes, TCreationAttributes> {
/**
* The namespace to use for events - defaults to the table name if none is provided.
+2 -3
View File
@@ -1,10 +1,9 @@
/* eslint-disable @typescript-eslint/ban-types */
import { DeletedAt } from "sequelize-typescript";
import IdModel from "./IdModel";
class ParanoidModel<
TModelAttributes extends {} = any,
TCreationAttributes extends {} = TModelAttributes
TModelAttributes extends object = any,
TCreationAttributes extends object = TModelAttributes
> extends IdModel<TModelAttributes, TCreationAttributes> {
@DeletedAt
deletedAt: Date | null;
+1 -3
View File
@@ -1,7 +1,5 @@
/* eslint-disable @typescript-eslint/ban-types */
const Deprecated =
(message?: string) => (target: Object, propertyKey: string) => {
(message?: string) => (_target: object, propertyKey: string) => {
if (process.env[propertyKey]) {
// eslint-disable-next-line no-console
console.warn(
+1 -1
View File
@@ -29,7 +29,7 @@ export default function TextLength({
Node.fromJSON(schema, value),
schema
);
} catch (err) {
} catch (_err) {
throw new Error("Invalid data");
}
+3 -1
View File
@@ -100,7 +100,9 @@ function wrapInNativeError(err: any): Error {
try {
errMsg = JSON.stringify(err);
// eslint-disable-next-line no-empty
} catch (e) {}
} catch (_err) {
// Ignore
}
}
const newError = InternalError(`Non-error thrown: ${errMsg}`);
// err maybe an object, try to copy the name, message and stack to the new error instance
+1 -1
View File
@@ -122,7 +122,7 @@ export class CanCan {
try {
response = this.can(performer, ability.action, target);
} catch (err) {
} catch (_err) {
response = false;
}
+1 -1
View File
@@ -20,7 +20,7 @@ export const UrlsUnfurlSchema = BaseSchema.extend({
return ValidateURL.isValidMentionUrl(val);
}
return isUrl(val);
} catch (err) {
} catch (_err) {
return false;
}
},
+1 -1
View File
@@ -273,7 +273,7 @@ router.get(
});
user = res.user;
email = res.email;
} catch (err) {
} catch (_err) {
ctx.redirect(`/?notice=expired-token`);
return;
}
+1 -1
View File
@@ -182,7 +182,7 @@ export const renderShare = async (ctx: Context, next: Next) => {
}
);
}
} catch (err) {
} catch (_err) {
// If the share or document does not exist, return a 404.
ctx.status = 404;
}
+7 -7
View File
@@ -47,7 +47,7 @@ export const renderEmbed = async (ctx: Context, next: Next) => {
let parsed;
try {
parsed = new URL(url);
} catch (err) {
} catch (_err) {
ctx.throw(400, "Invalid URL provided");
}
@@ -143,7 +143,7 @@ ${iframeCheckScript(ctx)}
</head>
<body>
<a href="${parsed}" class="dropbox-embed">
<script type="text/javascript" src="${dropboxJs}"
<script type="text/javascript" src="${dropboxJs}"
id="dropboxjs" data-app-key="${env.DROPBOX_APP_KEY}"></script>
${resizeObserverScript(ctx)}
</body>
@@ -184,7 +184,7 @@ ${resizeObserverScript(ctx)}
<html>
<head>
<style>
html, body, iframe {
html, body, iframe {
margin: 0;
padding: 0;
width: 100%;
@@ -216,14 +216,14 @@ ${resizeObserverScript(ctx)}
border-color: rgb(35, 38, 41) !important;
background-color: rgb(22, 25, 28) !important;
}
[class$="_pinner"],
[class$="_board"] {
color: #e6e6e6 !important;
}
[class$="_button"] {
border-color: rgb(38, 42, 50) !important;
background-color: rgba(3, 58, 120, 0.1) !important;
background-color: rgba(3, 58, 120, 0.1) !important;
}
}
</style>
@@ -232,8 +232,8 @@ ${iframeCheckScript(ctx)}
</head>
<body>
<div class="pinterest-container">
<a
data-pin-do="${pinType}"
<a
data-pin-do="${pinType}"
data-pin-board-width="100%"
href="${url}"
style="width:100%;max-width:none;"
+2 -2
View File
@@ -87,7 +87,7 @@ export function createDatabaseInstance(
sequelizeStrictAttributes(instance);
return instance;
} catch (error) {
} catch (_err) {
Logger.fatal(
"Could not connect to database",
typeof databaseConfig === "string"
@@ -137,7 +137,7 @@ export function createMigrationRunner(
migrations: {
glob,
resolve: ({ name, path, context }) => {
// eslint-disable-next-line @typescript-eslint/no-var-requires
// eslint-disable-next-line @typescript-eslint/no-require-imports
const migration = require(path as string);
return {
name,
+1 -1
View File
@@ -37,7 +37,7 @@ export default class ImportHelper {
try {
stats = await fs.stat(filePath);
} catch (e) {
} catch (_err) {
return null;
}
+1 -1
View File
@@ -22,7 +22,7 @@ export function getSessionsInCookie(ctx: Context) {
const sessionCookie = ctx.cookies.get("sessions") || "";
const decodedSessionCookie = decodeURIComponent(sessionCookie);
return decodedSessionCookie ? JSON.parse(decodedSessionCookie) : {};
} catch (err) {
} catch (_err) {
return {};
}
}
+1
View File
@@ -75,6 +75,7 @@ export function requireDirectory<T>(dirName: string): [T, string][] {
return getFilenamesInDirectory(dirName).map((fileName) => {
const filePath = path.join(dirName, fileName);
const name = path.basename(filePath.replace(/\.[jt]s$/, ""));
return [require(filePath), name];
});
}
+4 -4
View File
@@ -18,7 +18,7 @@ export function getJWTPayload(token: string) {
}
return payload as JWT.JwtPayload;
} catch (err) {
} catch (_err) {
throw AuthenticationError("Unable to decode token");
}
}
@@ -67,7 +67,7 @@ export async function getUserForJWT(
try {
JWT.verify(token, user.jwtSecret);
} catch (err) {
} catch (_err) {
throw AuthenticationError("Invalid token");
}
@@ -100,7 +100,7 @@ export async function getUserForEmailSigninToken(token: string): Promise<User> {
try {
JWT.verify(token, user.jwtSecret);
} catch (err) {
} catch (_err) {
throw AuthenticationError("Invalid token");
}
@@ -132,7 +132,7 @@ export async function getDetailsForEmailUpdateToken(
try {
JWT.verify(token, user.jwtSecret);
} catch (err) {
} catch (_err) {
throw AuthenticationError("Invalid token");
}
+1 -1
View File
@@ -82,7 +82,7 @@ export async function request(
try {
return JSON.parse(text);
} catch (err) {
} catch (_err) {
throw InternalError(
`Failed to parse response from ${endpoint}. Expected JSON, got: ${text}`
);
+1 -1
View File
@@ -39,7 +39,7 @@ export const canUserAccessDocument = async (user: User, documentId: string) => {
});
authorize(user, "read", document);
return true;
} catch (err) {
} catch (_err) {
return false;
}
};
+1 -1
View File
@@ -18,7 +18,7 @@ export const readManifestFile = (file = "./build/app/.vite/manifest.json") => {
try {
manifest = fs.readFileSync(absoluteFilePath, "utf8") as string;
} catch (err) {
} catch (_err) {
Logger.warn(
`Can not find ${absoluteFilePath}. Try executing "yarn vite:build" before running in production mode.`
);
+2 -2
View File
@@ -13,7 +13,7 @@ export function getSSLOptions() {
path.normalize(`${__dirname}/../../../${name}`),
"utf8"
);
} catch (err) {
} catch (_err) {
return undefined;
}
}
@@ -35,7 +35,7 @@ export function getSSLOptions() {
safeReadFile("public.pem") ||
safeReadFile("server/config/certs/public.cert"),
};
} catch (err) {
} catch (_err) {
return {
key: undefined,
cert: undefined,
+3 -4
View File
@@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/ban-types */
import {
registerDecorator,
ValidationArguments,
@@ -9,7 +8,7 @@ export function CannotUseWithout(
property: string,
validationOptions?: ValidationOptions
) {
return function (object: Object, propertyName: string) {
return function (object: object, propertyName: string) {
registerDecorator({
name: "cannotUseWithout",
target: object.constructor,
@@ -34,7 +33,7 @@ export function CannotUseWith(
property: string,
validationOptions?: ValidationOptions
) {
return function (object: Object, propertyName: string) {
return function (object: object, propertyName: string) {
registerDecorator({
name: "cannotUseWith",
target: object.constructor,
@@ -62,7 +61,7 @@ export function CannotUseWithAny(
properties: string[],
validationOptions?: ValidationOptions
) {
return function (object: Object, propertyName: string) {
return function (object: object, propertyName: string) {
registerDecorator({
name: "cannotUseWithAny",
target: object.constructor,
+1 -1
View File
@@ -259,7 +259,7 @@ export class ValidateURL {
Object.values(MentionType).includes(mentionType as MentionType) &&
isUUID(modelId)
);
} catch (err) {
} catch (_err) {
return false;
}
};
+2 -4
View File
@@ -61,10 +61,8 @@ const Icon = ({
}
return <EmojiIcon emoji={icon} size={size} className={className} />;
} catch (err) {
// Logger.warn("Failed to render icon", {
// icon,
// });
} catch (_err) {
// Ignore
}
return null;
+1 -1
View File
@@ -8,7 +8,7 @@ function Spotify({ matches, ...props }: Props) {
try {
const parsed = new URL(props.attrs.href);
pathname = parsed.pathname;
} catch (err) {
} catch (_err) {
pathname = "";
}
+4 -4
View File
@@ -190,8 +190,8 @@ const embeds: EmbedDescriptor[] = [
const params = new URLSearchParams(url.search);
params.append("embed", "");
return `${url.origin}${url.pathname}?${params.toString()}`;
} catch (e) {
//
} catch (_err) {
// Ignore
}
return input;
@@ -425,8 +425,8 @@ const embeds: EmbedDescriptor[] = [
params.append("embed", "true");
return `${url.origin}${url.pathname}?${params.toString()}`;
} catch (e) {
//
} catch (_err) {
// Ignore
}
return input;
+1 -1
View File
@@ -13,7 +13,7 @@ const MATH_PLUGIN_KEY = new PluginKey<IMathPluginState>("prosemirror-math");
export function createMathView(displayMode: boolean): NodeViewConstructor {
return (node, view, getPos) => {
// dynamically load katex styles and fonts
import("katex/dist/katex.min.css");
void import("katex/dist/katex.min.css");
const pluginState = MATH_PLUGIN_KEY.getState(view.state);
if (!pluginState) {
@@ -97,7 +97,7 @@ export class RecreateTransform {
try {
toDoc = this.schema.nodeFromJSON(afterStepJSON);
toDoc.check();
} catch (error) {
} catch (_err) {
toDoc = null;
if (this.ops.length > 0) {
op = this.ops.shift() as Operation;
+4 -4
View File
@@ -126,7 +126,7 @@ export default class Link extends Mark {
sanitizeUrl(range.mark.attrs.href),
event
);
} catch (err) {
} catch (_err) {
toast.error(this.options.dictionary.openLinkError);
}
return true;
@@ -156,7 +156,7 @@ export default class Link extends Mark {
view.dispatch(tr);
return true;
} catch (err) {
} catch (_err) {
// Failed to set selection
}
return false;
@@ -208,7 +208,7 @@ export default class Link extends Mark {
event.preventDefault();
this.options.onClickLink(sanitizeUrl(href), event);
}
} catch (err) {
} catch (_err) {
toast.error(this.options.dictionary.openLinkError);
}
@@ -227,7 +227,7 @@ export default class Link extends Mark {
return false;
},
click: (view: EditorView, event: MouseEvent) => {
click: (_view: EditorView, event: MouseEvent) => {
if (
!(event.target instanceof HTMLAnchorElement) ||
event.button !== 0
+2 -2
View File
@@ -83,8 +83,8 @@ try {
window.addEventListener("testPassive", null, opts);
// @ts-expect-error ts-migrate(2769) testPassive is not a real event
window.removeEventListener("testPassive", null, opts);
} catch (e) {
// No-op
} catch (_err) {
// Ignore
}
/**
+1 -1
View File
@@ -49,7 +49,7 @@ export function parseDomain(url: string): Domain {
try {
const parsedUrl = new URL(url);
port = parsedUrl.port || undefined;
} catch (e) {
} catch (_err) {
// ignore
}
+2 -2
View File
@@ -43,7 +43,7 @@ export function getDataTransferImage(
.parseFromString(untrustedHTML, "text/html")
.querySelector("img")?.src
: dt?.getData("url");
} catch (e) {
} catch (_err) {
return;
}
}
@@ -125,7 +125,7 @@ export function getFileNameFromUrl(url: string) {
const pathname = urlObj.pathname;
const filename = pathname.substring(pathname.lastIndexOf("/") + 1);
return filename;
} catch (error) {
} catch (_err) {
return null;
}
}
+1 -1
View File
@@ -15,7 +15,7 @@ export default function parseCollectionSlug(url: string) {
try {
parsed = new URL(url).pathname;
} catch (err) {
} catch (_err) {
return;
}
+1 -1
View File
@@ -15,7 +15,7 @@ export default function parseDocumentSlug(url: string) {
try {
parsed = new URL(url).pathname;
} catch (err) {
} catch (_err) {
return;
}
+4 -4
View File
@@ -23,7 +23,7 @@ export function fileNameFromUrl(url: string) {
try {
const parsed = new URL(url);
return parsed.pathname.split("/").pop();
} catch (err) {
} catch (_err) {
return;
}
}
@@ -71,7 +71,7 @@ export function isDocumentUrl(url: string) {
isInternalUrl(url) &&
(parsed.pathname.startsWith("/doc/") || parsed.pathname.startsWith("/d/"))
);
} catch (err) {
} catch (_err) {
return false;
}
}
@@ -86,7 +86,7 @@ export function isCollectionUrl(url: string) {
try {
const parsed = new URL(url, env.URL);
return isInternalUrl(url) && parsed.pathname.startsWith("/collection/");
} catch (err) {
} catch (_err) {
return false;
}
}
@@ -130,7 +130,7 @@ export function isUrl(
(url.pathname.startsWith("//") || url.pathname.startsWith("http")) &&
!options?.requireHostname
);
} catch (err) {
} catch (_err) {
return false;
}
}
+118 -119
View File
@@ -2236,14 +2236,26 @@
resolved "https://registry.yarnpkg.com/@esbuild/win32-x64/-/win32-x64-0.25.3.tgz#b17a2171f9074df9e91bfb07ef99a892ac06412a"
integrity sha512-ICgUR+kPimx0vvRzf+N/7L7tVSQeE3BYY+NhHRHXS1kBuPO7z2+7ea2HbhDyZdTephgvNvKrlDDKUexuCVBVvg==
"@eslint-community/eslint-utils@^4.2.0", "@eslint-community/eslint-utils@^4.4.0":
"@eslint-community/eslint-utils@^4.2.0":
version "4.4.0"
resolved "https://registry.yarnpkg.com/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz#a23514e8fb9af1269d5f7788aa556798d61c6b59"
integrity sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==
dependencies:
eslint-visitor-keys "^3.3.0"
"@eslint-community/regexpp@^4.5.1", "@eslint-community/regexpp@^4.6.1":
"@eslint-community/eslint-utils@^4.7.0":
version "4.7.0"
resolved "https://registry.yarnpkg.com/@eslint-community/eslint-utils/-/eslint-utils-4.7.0.tgz#607084630c6c033992a082de6e6fbc1a8b52175a"
integrity sha512-dyybb3AcajC7uha6CvhdVRJqaKyn7w2YKqKyAN37NKYgZT36w+iRb0Dymmc5qEJ549c/S31cMMSFd75bteCpCw==
dependencies:
eslint-visitor-keys "^3.4.3"
"@eslint-community/regexpp@^4.10.0":
version "4.12.1"
resolved "https://registry.yarnpkg.com/@eslint-community/regexpp/-/regexpp-4.12.1.tgz#cfc6cffe39df390a3841cde2abccf92eaa7ae0e0"
integrity sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==
"@eslint-community/regexpp@^4.6.1":
version "4.10.0"
resolved "https://registry.yarnpkg.com/@eslint-community/regexpp/-/regexpp-4.10.0.tgz#548f6de556857c8bb73bbee70c35dc82a2e74d63"
integrity sha512-Cu96Sd2By9mCNTx2iyKOmq10v22jUVQv0lQnlGNy16oE9589yE+QADPbrMGCkA51cKZSg3Pu/aTJVTGfL/qjUA==
@@ -5444,11 +5456,6 @@
"@types/tough-cookie" "*"
parse5 "^7.0.0"
"@types/json-schema@^7.0.12":
version "7.0.15"
resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.15.tgz#596a1747233694d50f6ad8a7869fcb6f56cf5841"
integrity sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==
"@types/json5@^0.0.29":
version "0.0.29"
resolved "https://registry.yarnpkg.com/@types/json5/-/json5-0.0.29.tgz#ee28707ae94e11d2b827bcbe5270bcea7f3e71ee"
@@ -5860,7 +5867,7 @@
resolved "https://registry.yarnpkg.com/@types/scheduler/-/scheduler-0.16.2.tgz#1a62f89525723dde24ba1b01b092bf5df8ad4d39"
integrity "sha1-GmL4lSVyPd4kuhsBsJK/XfitTTk= sha512-hppQEBDmlwhFAXKJX2KnWLYu5yMfi91yazPb2l+lbJiwW+wdo1gNeRA+3RgNSO39WYX2euey41KEwnqesU2Jew=="
"@types/semver@^7.5.0", "@types/semver@^7.7.0":
"@types/semver@^7.7.0":
version "7.7.0"
resolved "https://registry.yarnpkg.com/@types/semver/-/semver-7.7.0.tgz#64c441bdae033b378b6eef7d0c3d77c329b9378e"
integrity sha512-k107IF4+Xr7UHjwDc7Cfd6PRQfbdkiRabXGRjo07b4WyPahFBZCZ1sE+BNxYIJPPg73UkfOsVOLwqVc/6ETrIA==
@@ -5990,91 +5997,102 @@
dependencies:
"@types/node" "*"
"@typescript-eslint/eslint-plugin@^6.21.0":
version "6.21.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.21.0.tgz#30830c1ca81fd5f3c2714e524c4303e0194f9cd3"
integrity sha512-oy9+hTPCUFpngkEZUSzbf9MxI65wbKFoQYsgPdILTfbUldp5ovUuphZVe4i30emU9M/kP+T64Di0mxl7dSw3MA==
"@typescript-eslint/eslint-plugin@^8.33.0":
version "8.33.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.33.0.tgz#51ed03649575ba51bcee7efdbfd85283249b5447"
integrity sha512-CACyQuqSHt7ma3Ns601xykeBK/rDeZa3w6IS6UtMQbixO5DWy+8TilKkviGDH6jtWCo8FGRKEK5cLLkPvEammQ==
dependencies:
"@eslint-community/regexpp" "^4.5.1"
"@typescript-eslint/scope-manager" "6.21.0"
"@typescript-eslint/type-utils" "6.21.0"
"@typescript-eslint/utils" "6.21.0"
"@typescript-eslint/visitor-keys" "6.21.0"
debug "^4.3.4"
"@eslint-community/regexpp" "^4.10.0"
"@typescript-eslint/scope-manager" "8.33.0"
"@typescript-eslint/type-utils" "8.33.0"
"@typescript-eslint/utils" "8.33.0"
"@typescript-eslint/visitor-keys" "8.33.0"
graphemer "^1.4.0"
ignore "^5.2.4"
ignore "^7.0.0"
natural-compare "^1.4.0"
semver "^7.5.4"
ts-api-utils "^1.0.1"
ts-api-utils "^2.1.0"
"@typescript-eslint/parser@^6.21.0":
version "6.21.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-6.21.0.tgz#af8fcf66feee2edc86bc5d1cf45e33b0630bf35b"
integrity sha512-tbsV1jPne5CkFQCgPBcDOt30ItF7aJoZL997JSF7MhGQqOeT3svWRYxiqlfA5RUdlHN6Fi+EI9bxqbdyAUZjYQ==
"@typescript-eslint/parser@^8.33.0":
version "8.33.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-8.33.0.tgz#8e523c2b447ad7cd6ac91b719d8b37449481784d"
integrity sha512-JaehZvf6m0yqYp34+RVnihBAChkqeH+tqqhS0GuX1qgPpwLvmTPheKEs6OeCK6hVJgXZHJ2vbjnC9j119auStQ==
dependencies:
"@typescript-eslint/scope-manager" "6.21.0"
"@typescript-eslint/types" "6.21.0"
"@typescript-eslint/typescript-estree" "6.21.0"
"@typescript-eslint/visitor-keys" "6.21.0"
"@typescript-eslint/scope-manager" "8.33.0"
"@typescript-eslint/types" "8.33.0"
"@typescript-eslint/typescript-estree" "8.33.0"
"@typescript-eslint/visitor-keys" "8.33.0"
debug "^4.3.4"
"@typescript-eslint/scope-manager@6.21.0":
version "6.21.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-6.21.0.tgz#ea8a9bfc8f1504a6ac5d59a6df308d3a0630a2b1"
integrity sha512-OwLUIWZJry80O99zvqXVEioyniJMa+d2GrqpUTqi5/v5D5rOrppJVBPa0yKCblcigC0/aYAzxxqQ1B+DS2RYsg==
"@typescript-eslint/project-service@8.33.0":
version "8.33.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/project-service/-/project-service-8.33.0.tgz#71f37ef9010de47bf20963914743c5cbef851e08"
integrity sha512-d1hz0u9l6N+u/gcrk6s6gYdl7/+pp8yHheRTqP6X5hVDKALEaTn8WfGiit7G511yueBEL3OpOEpD+3/MBdoN+A==
dependencies:
"@typescript-eslint/types" "6.21.0"
"@typescript-eslint/visitor-keys" "6.21.0"
"@typescript-eslint/type-utils@6.21.0":
version "6.21.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-6.21.0.tgz#6473281cfed4dacabe8004e8521cee0bd9d4c01e"
integrity sha512-rZQI7wHfao8qMX3Rd3xqeYSMCL3SoiSQLBATSiVKARdFGCYSRvmViieZjqc58jKgs8Y8i9YvVVhRbHSTA4VBag==
dependencies:
"@typescript-eslint/typescript-estree" "6.21.0"
"@typescript-eslint/utils" "6.21.0"
"@typescript-eslint/tsconfig-utils" "^8.33.0"
"@typescript-eslint/types" "^8.33.0"
debug "^4.3.4"
ts-api-utils "^1.0.1"
"@typescript-eslint/types@6.21.0":
version "6.21.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-6.21.0.tgz#205724c5123a8fef7ecd195075fa6e85bac3436d"
integrity sha512-1kFmZ1rOm5epu9NZEZm1kckCDGj5UJEf7P1kliH4LKu/RkwpsfqqGmY2OOcUs18lSlQBKLDYBOGxRVtrMN5lpg==
"@typescript-eslint/typescript-estree@6.21.0":
version "6.21.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-6.21.0.tgz#c47ae7901db3b8bddc3ecd73daff2d0895688c46"
integrity sha512-6npJTkZcO+y2/kr+z0hc4HwNfrrP4kNYh57ek7yCNlrBjWQ1Y0OS7jiZTkgumrvkX5HkEKXFZkkdFNkaW2wmUQ==
"@typescript-eslint/scope-manager@8.33.0":
version "8.33.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-8.33.0.tgz#459cf0c49d410800b1a023b973c62d699b09bf4c"
integrity sha512-LMi/oqrzpqxyO72ltP+dBSP6V0xiUb4saY7WLtxSfiNEBI8m321LLVFU9/QDJxjDQG9/tjSqKz/E3380TEqSTw==
dependencies:
"@typescript-eslint/types" "6.21.0"
"@typescript-eslint/visitor-keys" "6.21.0"
"@typescript-eslint/types" "8.33.0"
"@typescript-eslint/visitor-keys" "8.33.0"
"@typescript-eslint/tsconfig-utils@8.33.0", "@typescript-eslint/tsconfig-utils@^8.33.0":
version "8.33.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.33.0.tgz#316adab038bbdc43e448781d5a816c2973eab73e"
integrity sha512-sTkETlbqhEoiFmGr1gsdq5HyVbSOF0145SYDJ/EQmXHtKViCaGvnyLqWFFHtEXoS0J1yU8Wyou2UGmgW88fEug==
"@typescript-eslint/type-utils@8.33.0":
version "8.33.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-8.33.0.tgz#f06124b2d6db8a51b24990cb123c9543af93fef5"
integrity sha512-lScnHNCBqL1QayuSrWeqAL5GmqNdVUQAAMTaCwdYEdWfIrSrOGzyLGRCHXcCixa5NK6i5l0AfSO2oBSjCjf4XQ==
dependencies:
"@typescript-eslint/typescript-estree" "8.33.0"
"@typescript-eslint/utils" "8.33.0"
debug "^4.3.4"
globby "^11.1.0"
ts-api-utils "^2.1.0"
"@typescript-eslint/types@8.33.0", "@typescript-eslint/types@^8.33.0":
version "8.33.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-8.33.0.tgz#02a7dbba611a8abf1ad2a9e00f72f7b94b5ab0ee"
integrity sha512-DKuXOKpM5IDT1FA2g9x9x1Ug81YuKrzf4mYX8FAVSNu5Wo/LELHWQyM1pQaDkI42bX15PWl0vNPt1uGiIFUOpg==
"@typescript-eslint/typescript-estree@8.33.0":
version "8.33.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-8.33.0.tgz#abcc1d3db75a8e9fd2e274ee8c4099fa2399abfd"
integrity sha512-vegY4FQoB6jL97Tu/lWRsAiUUp8qJTqzAmENH2k59SJhw0Th1oszb9Idq/FyyONLuNqT1OADJPXfyUNOR8SzAQ==
dependencies:
"@typescript-eslint/project-service" "8.33.0"
"@typescript-eslint/tsconfig-utils" "8.33.0"
"@typescript-eslint/types" "8.33.0"
"@typescript-eslint/visitor-keys" "8.33.0"
debug "^4.3.4"
fast-glob "^3.3.2"
is-glob "^4.0.3"
minimatch "9.0.3"
semver "^7.5.4"
ts-api-utils "^1.0.1"
minimatch "^9.0.4"
semver "^7.6.0"
ts-api-utils "^2.1.0"
"@typescript-eslint/utils@6.21.0":
version "6.21.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-6.21.0.tgz#4714e7a6b39e773c1c8e97ec587f520840cd8134"
integrity sha512-NfWVaC8HP9T8cbKQxHcsJBY5YE1O33+jpMwN45qzWWaPDZgLIbo12toGMWnmhvCpd3sIxkpDw3Wv1B3dYrbDQQ==
"@typescript-eslint/utils@8.33.0":
version "8.33.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-8.33.0.tgz#574ad5edee371077b9e28ca6fb804f2440f447c1"
integrity sha512-lPFuQaLA9aSNa7D5u2EpRiqdAUhzShwGg/nhpBlc4GR6kcTABttCuyjFs8BcEZ8VWrjCBof/bePhP3Q3fS+Yrw==
dependencies:
"@eslint-community/eslint-utils" "^4.4.0"
"@types/json-schema" "^7.0.12"
"@types/semver" "^7.5.0"
"@typescript-eslint/scope-manager" "6.21.0"
"@typescript-eslint/types" "6.21.0"
"@typescript-eslint/typescript-estree" "6.21.0"
semver "^7.5.4"
"@eslint-community/eslint-utils" "^4.7.0"
"@typescript-eslint/scope-manager" "8.33.0"
"@typescript-eslint/types" "8.33.0"
"@typescript-eslint/typescript-estree" "8.33.0"
"@typescript-eslint/visitor-keys@6.21.0":
version "6.21.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-6.21.0.tgz#87a99d077aa507e20e238b11d56cc26ade45fe47"
integrity sha512-JJtkDduxLi9bivAB+cYOVMtbkqdPOhZ+ZI5LC47MIRrDV4Yn2o+ZnW10Nkmr28xRpSpdJ6Sm42Hjf2+REYXm0A==
"@typescript-eslint/visitor-keys@8.33.0":
version "8.33.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-8.33.0.tgz#fbae16fd3594531f8cad95d421125d634e9974fe"
integrity sha512-7RW7CMYoskiz5OOGAWjJFxgb7c5UNjTG292gYhWeOAcFmYCtVCSqjqSBj5zMhxbXo2JOW95YYrUWJfU0zrpaGQ==
dependencies:
"@typescript-eslint/types" "6.21.0"
eslint-visitor-keys "^3.4.1"
"@typescript-eslint/types" "8.33.0"
eslint-visitor-keys "^4.2.0"
"@ungap/structured-clone@^1.2.0":
version "1.2.0"
@@ -6407,11 +6425,6 @@ array-includes@^3.1.6, array-includes@^3.1.8:
get-intrinsic "^1.2.4"
is-string "^1.0.7"
array-union@^2.1.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/array-union/-/array-union-2.1.0.tgz#b798420adbeb1de828d84acd8a2e23d3efe85e8d"
integrity "sha1-t5hCCtvrHego2ErNii4j0+/oXo0= sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw=="
array.prototype.findlast@^1.2.5:
version "1.2.5"
resolved "https://registry.yarnpkg.com/array.prototype.findlast/-/array.prototype.findlast-1.2.5.tgz#3e4fbcb30a15a7f5bf64cf2faae22d139c2e4904"
@@ -8423,13 +8436,6 @@ dingbat-to-unicode@^1.0.1:
resolved "https://registry.yarnpkg.com/dingbat-to-unicode/-/dingbat-to-unicode-1.0.1.tgz#5091dd673241453e6b5865e26e5a4452cdef5c83"
integrity "sha1-UJHdZzJBRT5rWGXiblpEUs3vXIM= sha512-98l0sW87ZT58pU4i61wa2OHwxbiYSbuxsCBozaVnYX2iCnr3bLM3fIes1/ej7h1YdOKuKt/MLs706TVnALA65w=="
dir-glob@^3.0.1:
version "3.0.1"
resolved "https://registry.yarnpkg.com/dir-glob/-/dir-glob-3.0.1.tgz#56dbf73d992a4a93ba1584f4534063fd2e41717f"
integrity "sha1-Vtv3PZkqSpO6FYT0U0Bj/S5BcX8= sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA=="
dependencies:
path-type "^4.0.0"
discord-api-types@^0.37.119:
version "0.37.119"
resolved "https://registry.yarnpkg.com/discord-api-types/-/discord-api-types-0.37.119.tgz#29e32f635351da32dd4c92defcafdeb65156ad33"
@@ -9187,6 +9193,11 @@ eslint-visitor-keys@^3.3.0, eslint-visitor-keys@^3.4.1, eslint-visitor-keys@^3.4
resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz#0cd72fe8550e3c2eae156a96a4dddcd1c8ac5800"
integrity "sha1-DNcv6FUOPC6uFWqWpN3c0cisWAA= sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag=="
eslint-visitor-keys@^4.2.0:
version "4.2.0"
resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-4.2.0.tgz#687bacb2af884fcdda8a6e7d65c606f46a14cd45"
integrity sha512-UyLnSehNt62FFhSwjZlHmeokpRK59rcz29j+F1/aDgbkbRTk7wIc9XzdoasMUbRNKDM0qQt/+BJ4BrpFeABemw==
eslint@^8.57.0:
version "8.57.0"
resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.57.0.tgz#c786a6fd0e0b68941aaf624596fb987089195668"
@@ -9392,7 +9403,7 @@ fast-fifo@^1.3.2:
resolved "https://registry.yarnpkg.com/fast-fifo/-/fast-fifo-1.3.2.tgz#286e31de96eb96d38a97899815740ba2a4f3640c"
integrity sha512-/d9sfos4yxzpwkDkuN7k2SqFKtYNmCTzgfEpz82x34IM9/zc8KGxQoXg1liNC/izpRM/MBdt44Nmx41ZWqk+FQ==
fast-glob@^3.2.11, fast-glob@^3.2.9, fast-glob@^3.3.2:
fast-glob@^3.2.11, fast-glob@^3.3.2:
version "3.3.2"
resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.3.2.tgz#a904501e57cfdd2ffcded45e99a54fef55e46129"
integrity "sha1-qQRQHlfP3S/83tRemaVP71XkYSk= sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow=="
@@ -9893,18 +9904,6 @@ globalthis@^1.0.4:
define-properties "^1.2.1"
gopd "^1.0.1"
globby@^11.1.0:
version "11.1.0"
resolved "https://registry.yarnpkg.com/globby/-/globby-11.1.0.tgz#bd4be98bb042f83d796f7e3811991fbe82a0d34b"
integrity "sha1-vUvpi7BC+D15b344EZkfvoKg00s= sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g=="
dependencies:
array-union "^2.1.0"
dir-glob "^3.0.1"
fast-glob "^3.2.9"
ignore "^5.2.0"
merge2 "^1.4.1"
slash "^3.0.0"
google-closure-compiler-js@^20170423.0.0:
version "20170423.0.0"
resolved "https://registry.yarnpkg.com/google-closure-compiler-js/-/google-closure-compiler-js-20170423.0.0.tgz#e9e8b40dadfdf0e64044c9479b5d26d228778fbc"
@@ -10306,6 +10305,11 @@ ignore@^5.1.1, ignore@^5.2.0, ignore@^5.2.4:
resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.2.4.tgz#a291c0c6178ff1b960befe47fcdec301674a6324"
integrity "sha1-opHAxheP8blgvv5H/N7DAWdKYyQ= sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ=="
ignore@^7.0.0:
version "7.0.5"
resolved "https://registry.yarnpkg.com/ignore/-/ignore-7.0.5.tgz#4cb5f6cd7d4c7ab0365738c7aea888baa6d7efd9"
integrity sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg==
immediate@~3.0.5:
version "3.0.6"
resolved "https://registry.yarnpkg.com/immediate/-/immediate-3.0.6.tgz#9db1dbd0faf8de6fbe0f5dd5e56bb606280de69b"
@@ -12294,7 +12298,7 @@ merge-stream@^2.0.0:
resolved "https://registry.yarnpkg.com/merge-stream/-/merge-stream-2.0.0.tgz#52823629a14dd00c9770fb6ad47dc6310f2c1f60"
integrity "sha1-UoI2KaFN0AyXcPtq1H3GMQ8sH2A= sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w=="
merge2@^1.3.0, merge2@^1.4.1:
merge2@^1.3.0:
version "1.4.1"
resolved "https://registry.yarnpkg.com/merge2/-/merge2-1.4.1.tgz#4368892f885e907455a6fd7dc55c0c9d404990ae"
integrity "sha1-Q2iJL4hekHRVpv19xVwMnUBJkK4= sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg=="
@@ -12360,13 +12364,6 @@ mimic-fn@^4.0.0:
resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-4.0.0.tgz#60a90550d5cb0b239cca65d893b1a53b29871ecc"
integrity "sha1-YKkFUNXLCyOcymXYk7GlOymHHsw= sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw=="
minimatch@9.0.3:
version "9.0.3"
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-9.0.3.tgz#a6e00c3de44c3a542bfaae70abfc22420a6da825"
integrity sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==
dependencies:
brace-expansion "^2.0.1"
minimatch@^3.0.2, minimatch@^3.0.4, minimatch@^3.0.5, minimatch@^3.1.1, minimatch@^3.1.2:
version "3.1.2"
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b"
@@ -12381,6 +12378,13 @@ minimatch@^5.0.1:
dependencies:
brace-expansion "^2.0.1"
minimatch@^9.0.4:
version "9.0.5"
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-9.0.5.tgz#d74f9dd6b57d83d8e98cfb82133b03978bc929e5"
integrity sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==
dependencies:
brace-expansion "^2.0.1"
minimist@^1.1.0, minimist@^1.2.0, minimist@^1.2.5, minimist@^1.2.6:
version "1.2.8"
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.8.tgz#c1a464e7693302e082a075cee0c057741ac4772c"
@@ -13148,11 +13152,6 @@ path-to-regexp@^8.1.0:
resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-8.2.0.tgz#73990cc29e57a3ff2a0d914095156df5db79e8b4"
integrity sha512-TdrF7fW9Rphjq4RjrW0Kp2AW0Ahwu9sRGTkS6bvDi0SCwZlEZYmcfDbEsTz8RVk0EHIS/Vd1bv3JhG+1xZuAyQ==
path-type@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/path-type/-/path-type-4.0.0.tgz#84ed01c0a7ba380afe09d90a8c180dcd9d03043b"
integrity "sha1-hO0BwKe6OAr+CdkKjBgNzZ0DBDs= sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw=="
pathe@^1.1.2:
version "1.1.2"
resolved "https://registry.yarnpkg.com/pathe/-/pathe-1.1.2.tgz#6c4cb47a945692e48a1ddd6e4094d170516437ec"
@@ -14568,7 +14567,7 @@ semver@^6.0.0, semver@^6.1.0, semver@^6.1.1, semver@^6.1.2, semver@^6.3.0, semve
resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.1.tgz#556d2ef8689146e46dcea4bfdd095f3434dffcb4"
integrity sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==
semver@^7.5.0, semver@^7.5.2, semver@^7.5.3, semver@^7.5.4, semver@^7.7.1, semver@^7.7.2:
semver@^7.5.0, semver@^7.5.2, semver@^7.5.3, semver@^7.5.4, semver@^7.6.0, semver@^7.7.1, semver@^7.7.2:
version "7.7.2"
resolved "https://registry.yarnpkg.com/semver/-/semver-7.7.2.tgz#67d99fdcd35cec21e6f8b87a7fd515a33f982b58"
integrity sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==
@@ -15569,10 +15568,10 @@ truncate-utf8-bytes@^1.0.0:
dependencies:
utf8-byte-length "^1.0.1"
ts-api-utils@^1.0.1:
version "1.0.3"
resolved "https://registry.yarnpkg.com/ts-api-utils/-/ts-api-utils-1.0.3.tgz#f12c1c781d04427313dbac808f453f050e54a331"
integrity sha512-wNMeqtMz5NtwpT/UZGY5alT+VoKdSsOOP/kqHFcUW1P/VRhH2wJ48+DN2WwUliNbQ976ETwDL0Ifd2VVvgonvg==
ts-api-utils@^2.1.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/ts-api-utils/-/ts-api-utils-2.1.0.tgz#595f7094e46eed364c13fd23e75f9513d29baf91"
integrity sha512-CUgTZL1irw8u29bzrOD/nH85jqyc74D6SshFgujOIA7osm2Rz7dYH77agkx7H4FBNxDq7Cjf+IjaX/8zwFW+ZQ==
ts-dedent@^2.2.0:
version "2.2.0"