From a46f5cc8f292bd15cdf102ce33d423c890802508 Mon Sep 17 00:00:00 2001 From: Rel1cx Date: Tue, 25 Feb 2025 10:12:11 +0800 Subject: [PATCH] refactor: minor improvements --- packages/core/src/utils/is-from-react.ts | 34 +-- .../src/utils/is-initialized-from-react.ts | 38 ++- pnpm-lock.yaml | 248 +++++------------- 3 files changed, 87 insertions(+), 233 deletions(-) diff --git a/packages/core/src/utils/is-from-react.ts b/packages/core/src/utils/is-from-react.ts index 27f042965..f8bf029aa 100644 --- a/packages/core/src/utils/is-from-react.ts +++ b/packages/core/src/utils/is-from-react.ts @@ -59,12 +59,8 @@ export function isFromReactMember( const settings = unsafeDecodeSettings(context.settings); // eslint-disable-next-line @typescript-eslint/strict-boolean-expressions if (!settings.strictImportCheck) { - if (node.property.type !== T.Identifier || node.property.name !== name) { - return false; - } - if (node.object.type === T.Identifier && node.object.name === memberName) { - return true; - } + if (node.property.type !== T.Identifier || node.property.name !== name) return false; + if (node.object.type === T.Identifier && node.object.name === memberName) return true; if ( node.object.type === T.MemberExpression && node.object.object.type === T.Identifier @@ -103,12 +99,8 @@ export declare namespace isCallFromReact { export function isCallFromReact(name: string): isCallFromReact.ReturnType { return dual(2, (node: TSESTree.Node, context: RuleContext): node is TSESTree.CallExpression => { - if (node.type !== T.CallExpression) { - return false; - } - if (!AST.isOneOf([T.Identifier, T.MemberExpression])(node.callee)) { - return false; - } + if (node.type !== T.CallExpression) return false; + if (!AST.isOneOf([T.Identifier, T.MemberExpression])(node.callee)) return false; return isFromReact(name)(node.callee, context); }); } @@ -118,10 +110,7 @@ export declare namespace isCallFromReactMember { (context: RuleContext): (node: TSESTree.Node) => node is & TSESTree.CallExpression & { callee: TSESTree.MemberExpression }; - ( - node: TSESTree.Node, - context: RuleContext, - ): node is + (node: TSESTree.Node, context: RuleContext): node is & TSESTree.CallExpression & { callee: TSESTree.MemberExpression }; }; @@ -131,19 +120,12 @@ export function isCallFromReactMember( pragmaMemberName: string, name: string, ): isCallFromReactMember.ReturnType { - return dual(2, ( - node: TSESTree.Node, - context: RuleContext, - ): node is + return dual(2, (node: TSESTree.Node, context: RuleContext): node is & TSESTree.CallExpression & { callee: TSESTree.MemberExpression } => { - if (node.type !== T.CallExpression) { - return false; - } - if (!AST.is(T.MemberExpression)(node.callee)) { - return false; - } + if (node.type !== T.CallExpression) return false; + if (!AST.is(T.MemberExpression)(node.callee)) return false; return isFromReactMember(pragmaMemberName, name)(node.callee, context); }); } diff --git a/packages/core/src/utils/is-initialized-from-react.ts b/packages/core/src/utils/is-initialized-from-react.ts index 33eba2734..d7e257fe6 100644 --- a/packages/core/src/utils/is-initialized-from-react.ts +++ b/packages/core/src/utils/is-initialized-from-react.ts @@ -1,9 +1,24 @@ import * as AST from "@eslint-react/ast"; -import { _ } from "@eslint-react/eff"; +import { _, identity } from "@eslint-react/eff"; import * as VAR from "@eslint-react/var"; import type { Scope } from "@typescript-eslint/scope-manager"; import type { TSESTree } from "@typescript-eslint/types"; import { AST_NODE_TYPES as T } from "@typescript-eslint/types"; +import { match, P } from "ts-pattern"; + +/** + * Get the arguments of a require expression + * @param node The node to match + * @returns The require expression arguments or undefined if the node is not a require expression + */ +function getRequireExpressionArguments(node: TSESTree.Node) { + return match(node) + // require("source") + .with({ type: T.CallExpression, arguments: P.select(), callee: { type: T.Identifier, name: "require" } }, identity) + // require("source").variable + .with({ type: T.MemberExpression, object: P.select() }, getRequireExpressionArguments) + .otherwise(() => _); +} /** * Check if an identifier is initialized from react @@ -38,27 +53,8 @@ export function isInitializedFromReact( return false; } // check for: `require('source')` or `require('source/...')` - return arg0.value === source - || arg0 - .value - .startsWith(`${source}/`); + return arg0.value === source || arg0.value.startsWith(`${source}/`); } // latest definition is an import declaration: import { variable } from 'source' return parent?.type === T.ImportDeclaration && parent.source.value === source; } - -function getRequireExpressionArguments(node: TSESTree.Node): TSESTree.CallExpressionArgument[] | _ { - switch (true) { - // require('source') - case node.type === T.CallExpression - && node.callee.type === T.Identifier - && node.callee.name === "require": { - return node.arguments; - } - // require('source').variable - case node.type === T.MemberExpression: { - return getRequireExpressionArguments(node.object); - } - } - return _; -} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 557f74820..d0afd7f2b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -213,16 +213,16 @@ importers: version: 8.25.0 '@typescript-eslint/type-utils': specifier: ^8.25.0 - version: 8.25.0(eslint@9.20.1(jiti@2.4.2))(typescript@5.8.1-rc) + version: 8.25.0(eslint@9.21.0(jiti@2.4.2))(typescript@5.8.1-rc) '@typescript-eslint/types': specifier: ^8.25.0 version: 8.25.0 '@typescript-eslint/utils': specifier: ^8.25.0 - version: 8.25.0(eslint@9.20.1(jiti@2.4.2))(typescript@5.8.1-rc) + version: 8.25.0(eslint@9.21.0(jiti@2.4.2))(typescript@5.8.1-rc) eslint: specifier: ^8.57.0 || ^9.0.0 - version: 9.20.1(jiti@2.4.2) + version: 9.21.0(jiti@2.4.2) string-ts: specifier: ^2.2.1 version: 2.2.1 @@ -785,16 +785,16 @@ importers: version: 8.25.0 '@typescript-eslint/type-utils': specifier: ^8.25.0 - version: 8.25.0(eslint@9.20.1(jiti@2.4.2))(typescript@5.8.1-rc) + version: 8.25.0(eslint@9.21.0(jiti@2.4.2))(typescript@5.8.1-rc) '@typescript-eslint/types': specifier: ^8.25.0 version: 8.25.0 '@typescript-eslint/utils': specifier: ^8.25.0 - version: 8.25.0(eslint@9.20.1(jiti@2.4.2))(typescript@5.8.1-rc) + version: 8.25.0(eslint@9.21.0(jiti@2.4.2))(typescript@5.8.1-rc) eslint: specifier: ^8.57.0 || ^9.0.0 - version: 9.20.1(jiti@2.4.2) + version: 9.21.0(jiti@2.4.2) eslint-plugin-react-debug: specifier: workspace:* version: link:../eslint-plugin-react-debug @@ -849,16 +849,16 @@ importers: version: 8.25.0 '@typescript-eslint/type-utils': specifier: ^8.25.0 - version: 8.25.0(eslint@9.20.1(jiti@2.4.2))(typescript@5.8.1-rc) + version: 8.25.0(eslint@9.21.0(jiti@2.4.2))(typescript@5.8.1-rc) '@typescript-eslint/types': specifier: ^8.25.0 version: 8.25.0 '@typescript-eslint/utils': specifier: ^8.25.0 - version: 8.25.0(eslint@9.20.1(jiti@2.4.2))(typescript@5.8.1-rc) + version: 8.25.0(eslint@9.21.0(jiti@2.4.2))(typescript@5.8.1-rc) eslint: specifier: ^8.57.0 || ^9.0.0 - version: 9.20.1(jiti@2.4.2) + version: 9.21.0(jiti@2.4.2) string-ts: specifier: ^2.2.1 version: 2.2.1 @@ -910,13 +910,13 @@ importers: version: 8.25.0 '@typescript-eslint/utils': specifier: ^8.25.0 - version: 8.25.0(eslint@9.20.1(jiti@2.4.2))(typescript@5.8.1-rc) + version: 8.25.0(eslint@9.21.0(jiti@2.4.2))(typescript@5.8.1-rc) compare-versions: specifier: ^6.1.1 version: 6.1.1 eslint: specifier: ^8.57.0 || ^9.0.0 - version: 9.20.1(jiti@2.4.2) + version: 9.21.0(jiti@2.4.2) string-ts: specifier: ^2.2.1 version: 2.2.1 @@ -965,16 +965,16 @@ importers: version: 8.25.0 '@typescript-eslint/type-utils': specifier: ^8.25.0 - version: 8.25.0(eslint@9.20.1(jiti@2.4.2))(typescript@5.8.1-rc) + version: 8.25.0(eslint@9.21.0(jiti@2.4.2))(typescript@5.8.1-rc) '@typescript-eslint/types': specifier: ^8.25.0 version: 8.25.0 '@typescript-eslint/utils': specifier: ^8.25.0 - version: 8.25.0(eslint@9.20.1(jiti@2.4.2))(typescript@5.8.1-rc) + version: 8.25.0(eslint@9.21.0(jiti@2.4.2))(typescript@5.8.1-rc) eslint: specifier: ^8.57.0 || ^9.0.0 - version: 9.20.1(jiti@2.4.2) + version: 9.21.0(jiti@2.4.2) string-ts: specifier: ^2.2.1 version: 2.2.1 @@ -1020,16 +1020,16 @@ importers: version: 8.25.0 '@typescript-eslint/type-utils': specifier: ^8.25.0 - version: 8.25.0(eslint@9.20.1(jiti@2.4.2))(typescript@5.8.1-rc) + version: 8.25.0(eslint@9.21.0(jiti@2.4.2))(typescript@5.8.1-rc) '@typescript-eslint/types': specifier: ^8.25.0 version: 8.25.0 '@typescript-eslint/utils': specifier: ^8.25.0 - version: 8.25.0(eslint@9.20.1(jiti@2.4.2))(typescript@5.8.1-rc) + version: 8.25.0(eslint@9.21.0(jiti@2.4.2))(typescript@5.8.1-rc) eslint: specifier: ^8.57.0 || ^9.0.0 - version: 9.20.1(jiti@2.4.2) + version: 9.21.0(jiti@2.4.2) string-ts: specifier: ^2.2.1 version: 2.2.1 @@ -1081,10 +1081,10 @@ importers: version: 8.25.0 '@typescript-eslint/utils': specifier: ^8.25.0 - version: 8.25.0(eslint@9.20.1(jiti@2.4.2))(typescript@5.8.1-rc) + version: 8.25.0(eslint@9.21.0(jiti@2.4.2))(typescript@5.8.1-rc) eslint: specifier: ^8.57.0 || ^9.0.0 - version: 9.20.1(jiti@2.4.2) + version: 9.21.0(jiti@2.4.2) string-ts: specifier: ^2.2.1 version: 2.2.1 @@ -1133,22 +1133,22 @@ importers: version: 8.25.0 '@typescript-eslint/type-utils': specifier: ^8.25.0 - version: 8.25.0(eslint@9.20.1(jiti@2.4.2))(typescript@5.8.1-rc) + version: 8.25.0(eslint@9.21.0(jiti@2.4.2))(typescript@5.8.1-rc) '@typescript-eslint/types': specifier: ^8.25.0 version: 8.25.0 '@typescript-eslint/utils': specifier: ^8.25.0 - version: 8.25.0(eslint@9.20.1(jiti@2.4.2))(typescript@5.8.1-rc) + version: 8.25.0(eslint@9.21.0(jiti@2.4.2))(typescript@5.8.1-rc) compare-versions: specifier: ^6.1.1 version: 6.1.1 eslint: specifier: ^8.57.0 || ^9.0.0 - version: 9.20.1(jiti@2.4.2) + version: 9.21.0(jiti@2.4.2) is-immutable-type: specifier: ^5.0.1 - version: 5.0.1(eslint@9.20.1(jiti@2.4.2))(typescript@5.8.1-rc) + version: 5.0.1(eslint@9.21.0(jiti@2.4.2))(typescript@5.8.1-rc) string-ts: specifier: ^2.2.1 version: 2.2.1 @@ -2305,8 +2305,8 @@ packages: resolution: {integrity: sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==} engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} - '@eslint/compat@1.2.6': - resolution: {integrity: sha512-k7HNCqApoDHM6XzT30zGoETj+D+uUcZUb+IVAJmar3u6bvHf7hhHJcWx09QHj4/a2qrKZMWU0E16tvkiAdv06Q==} + '@eslint/compat@1.2.7': + resolution: {integrity: sha512-xvv7hJE32yhegJ8xNAnb62ggiAwTYHBpUCWhRxEj/ksvgDJuSXfoDkBcRYaYNFiJ+jH0IE3K16hd+xXzhBgNbg==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: eslint: ^9.10.0 @@ -2328,26 +2328,14 @@ packages: resolution: {integrity: sha512-gFHJ+xBOo4G3WRlR1e/3G8A6/KZAH6zcE/hkLRCZTi/B9avAG365QhFA8uOGzTMqgTghpn7/fSnscW++dpMSAw==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - '@eslint/core@0.11.0': - resolution: {integrity: sha512-DWUB2pksgNEb6Bz2fggIy1wh6fGgZP4Xyy/Mt0QZPiloKKXerbqq9D3SBQTlCRYOrcRPu4vuz+CGjwdfqxnoWA==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - '@eslint/core@0.12.0': resolution: {integrity: sha512-cmrR6pytBuSMTaBweKoGMwu3EiHiEC+DoyupPmlZ0HxBJBtIxwe+j/E4XPIKNx+Q74c8lXKPwYawBf5glsTkHg==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - '@eslint/eslintrc@3.2.0': - resolution: {integrity: sha512-grOjVNN8P3hjJn/eIETF1wwd12DdnwFDoyceUJLYYdkpbwq3nLi+4fqrTAONx7XDALqlL220wC/RHSC/QTI/0w==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - '@eslint/eslintrc@3.3.0': resolution: {integrity: sha512-yaVPAiNAalnCZedKLdR21GOGILMLKPyqSLWaAjQFvYA2i/ciDi8ArYVr69Anohb6cH2Ukhqti4aFnYyPm8wdwQ==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - '@eslint/js@9.20.0': - resolution: {integrity: sha512-iZA07H9io9Wn836aVTytRaNqh00Sad+EamwOVJT12GTLw1VGMFV/4JaME+JjLtr9fiGaoWgYnS54wrfWsSs4oQ==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - '@eslint/js@9.21.0': resolution: {integrity: sha512-BqStZ3HX8Yz6LvsF5ByXYrtigrV5AXADWLAGc7PH/1SxOb7/FIYYMszZZWiUou/GB9P2lXWk2SV4d+Z8h0nknw==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} @@ -2360,10 +2348,6 @@ packages: resolution: {integrity: sha512-RBMg5FRL0I0gs51M/guSAj5/e14VQ4tpZnQNWwuDT66P14I43ItmPfIZRhO9fUVIPOAQXU47atlywZ/czoqFPA==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - '@eslint/plugin-kit@0.2.6': - resolution: {integrity: sha512-+0TjwR1eAUdZtvv/ir1mGX+v0tUoR3VEPB8Up0LLJC+whRW0GgBBtpbOkg/a/U4Dxa6l5a3l9AJ1aWIQVyoWJA==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - '@eslint/plugin-kit@0.2.7': resolution: {integrity: sha512-JubJ5B2pJ4k4yGxaNLdbjrnk9d/iDz6/q8wOilpIowd6PJPgaxCuHBnBszq7Ce2TyMrywm5r4PnKm6V3iiZF+g==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} @@ -4462,8 +4446,8 @@ packages: effect@3.3.2: resolution: {integrity: sha512-695XQBtp+UUYG50oREG9ujnRoeQU7xhwHDhT6ZAexm3Q+umdml1kjxcPoYRrS65crmaLlhVpjZHePJNzWOODnA==} - electron-to-chromium@1.5.102: - resolution: {integrity: sha512-eHhqaja8tE/FNpIiBrvBjFV/SSKpyWHLvxuR9dPTdo+3V9ppdLmFB7ZZQ98qNovcngPLYIz0oOBF9P0FfZef5Q==} + electron-to-chromium@1.5.104: + resolution: {integrity: sha512-Us9M2L4cO/zMBqVkJtnj353nQhMju9slHm62NprKTmdF3HH8wYOtNvDFq/JB2+ZRoGLzdvYDiATlMHs98XBM1g==} emoji-regex-xs@1.0.0: resolution: {integrity: sha512-LRlerrMYoIDrT6jgpeZ2YYl/L8EulRTt5hQcYjy5AInh7HWXKimpqx68aknBFpGL2+/IcogTcaydJEgaTmOpDg==} @@ -4659,16 +4643,6 @@ packages: resolution: {integrity: sha512-UyLnSehNt62FFhSwjZlHmeokpRK59rcz29j+F1/aDgbkbRTk7wIc9XzdoasMUbRNKDM0qQt/+BJ4BrpFeABemw==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - eslint@9.20.1: - resolution: {integrity: sha512-m1mM33o6dBUjxl2qb6wv6nGNwCAsns1eKtaQ4l/NPHeTvhiUPbtdfMyktxN4B3fgHIgsYh1VT3V9txblpQHq+g==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - hasBin: true - peerDependencies: - jiti: '*' - peerDependenciesMeta: - jiti: - optional: true - eslint@9.21.0: resolution: {integrity: sha512-KjeihdFqTPhOMXTt7StsDxriV4n66ueuF/jfPNC3j/lduHwr/ijDwJMsF+wyMJethgiKi5wniIE243vi07d3pg==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} @@ -4845,8 +4819,8 @@ packages: debug: optional: true - foreground-child@3.3.0: - resolution: {integrity: sha512-Ld2g8rrAyMYFXBhEqMz8ZAHBi4J4uS1i/CxGMDnjyFWddMXLVcDp051DZfu+t7+ab7Wv6SMqpWmyFIj5UbfFvg==} + foreground-child@3.3.1: + resolution: {integrity: sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==} engines: {node: '>=14'} form-data@4.0.2: @@ -4949,8 +4923,8 @@ packages: resolution: {integrity: sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==} engines: {node: 6.* || 8.* || >= 10.*} - get-intrinsic@1.2.7: - resolution: {integrity: sha512-VW6Pxhsrk0KAOqs3WEd0klDiF/+V7gQOpAvY1jVU/LHmaD/kQO4523aiJuikX/QAKYiW6x8Jh+RJej1almdtCA==} + get-intrinsic@1.3.0: + resolution: {integrity: sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==} engines: {node: '>= 0.4'} get-nonce@1.0.1: @@ -5032,8 +5006,8 @@ packages: resolution: {integrity: sha512-5v6yZd4JK3eMI3FqqCouswVqwugaA9r4dNZB1wwcmrD02QkV5H0y7XBQW8QwQqEaZY1pM9aqORSORhJRdNK44Q==} engines: {node: '>=6.0'} - h3@1.15.0: - resolution: {integrity: sha512-OsjX4JW8J4XGgCgEcad20pepFQWnuKH+OwkCJjogF3C+9AZ1iYdtB4hX6vAb5DskBiu5ljEXqApINjR8CqoCMQ==} + h3@1.15.1: + resolution: {integrity: sha512-+ORaOBttdUm1E2Uu/obAyCguiI7MbBvsLTndc3gyK3zU+SYLoZXlyCP9Xgy0gikkGufFLTZXCXD6+4BsufnmHA==} has-flag@4.0.0: resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==} @@ -5061,8 +5035,8 @@ packages: hast-util-to-html@9.0.5: resolution: {integrity: sha512-OguPdidb+fbHQSU4Q4ZiLKnzWo8Wwsf5bZfbvu7//a9oTYoqD/fWpe96NuHkoS9h0ccGOTe0C4NGXdtS0iObOw==} - hast-util-to-jsx-runtime@2.3.3: - resolution: {integrity: sha512-pdpkP8YD4v+qMKn2lnKSiJvZvb3FunDmFYQvVOsoO08+eTNWdaWKPMrC5wwNICtU3dQWHhElj5Sf5jPEnv4qJg==} + hast-util-to-jsx-runtime@2.3.4: + resolution: {integrity: sha512-2GSifZSlBD35z6/+sp+btB333wHFPck/rrlKZMc9IOUJk6anHuQuqC/oNI80Pj717wo8JCPdXjjasVqQu3UH8Q==} hast-util-to-string@3.0.1: resolution: {integrity: sha512-XelQVTDWvqcl3axRfI0xSeoVKzyIFPwsAGSLIsKdJKQMXDYJS4WYrBNF/8J7RdhIcFI2BOHgAifggsvsxp/3+A==} @@ -5508,6 +5482,7 @@ packages: lodash.isequal@4.5.0: resolution: {integrity: sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ==} + deprecated: This package is deprecated. Use require('node:util').isDeepStrictEqual instead. lodash.merge@4.6.2: resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==} @@ -5963,9 +5938,6 @@ packages: ofetch@1.4.1: resolution: {integrity: sha512-QZj2DfGplQAr2oj9KzceK9Hwz6Whxazmn85yYeVuS3u9XTMOGMRx0kO95MQ+vLsj/S/NwBDMMLU5hpxvI6Tklw==} - ohash@1.1.4: - resolution: {integrity: sha512-FlDryZAahJmEF3VR3w1KogSEdWX3WhA5GPakFx4J81kEAiHyLMpdLLElS8n8dfNadMgAne/MywcvmogzscVt4g==} - on-headers@1.0.2: resolution: {integrity: sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA==} engines: {node: '>= 0.8'} @@ -6426,8 +6398,8 @@ packages: run-parallel@1.2.0: resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==} - rxjs@7.8.1: - resolution: {integrity: sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==} + rxjs@7.8.2: + resolution: {integrity: sha512-dhKf903U/PQZY6boNNtAGdWbG85WAbjT/1xYoZIC7FAY0yWapOBQVsVrDl58W86//e1VpMNBtRV4MaXfdMySFA==} sade@1.8.1: resolution: {integrity: sha512-xal3CZX1Xlo/k4ApwCFrHVACi9fBqJ7V+mwhBsuf/1IOKbBy098Fex+Wa/5QMubw09pSZ/u8EY8PWgevJsXp1A==} @@ -7142,8 +7114,8 @@ packages: wrappy@1.0.2: resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==} - ws@8.18.0: - resolution: {integrity: sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw==} + ws@8.18.1: + resolution: {integrity: sha512-RKW2aJZMXeMxVpnZ6bck+RswznaxmzdULiBr6KY7XkTnW8uvt0iT9H5DkHUChXrc+uurzwa0rVI16n/Xzjdz1w==} engines: {node: '>=10.0.0'} peerDependencies: bufferutil: ^4.0.1 @@ -8252,11 +8224,6 @@ snapshots: '@esbuild/win32-x64@0.25.0': optional: true - '@eslint-community/eslint-utils@4.4.1(eslint@9.20.1(jiti@2.4.2))': - dependencies: - eslint: 9.20.1(jiti@2.4.2) - eslint-visitor-keys: 3.4.3 - '@eslint-community/eslint-utils@4.4.1(eslint@9.21.0(jiti@2.4.2))': dependencies: eslint: 9.21.0(jiti@2.4.2) @@ -8264,7 +8231,7 @@ snapshots: '@eslint-community/regexpp@4.12.1': {} - '@eslint/compat@1.2.6(eslint@9.21.0(jiti@2.4.2))': + '@eslint/compat@1.2.7(eslint@9.21.0(jiti@2.4.2))': optionalDependencies: eslint: 9.21.0(jiti@2.4.2) @@ -8288,12 +8255,12 @@ snapshots: fast-glob: 3.3.3 find-up: 7.0.0 get-port-please: 3.1.2 - h3: 1.15.0 + h3: 1.15.1 mlly: 1.7.4 mrmime: 2.0.1 open: 10.1.0 picocolors: 1.1.1 - ws: 8.18.0 + ws: 8.18.1 transitivePeerDependencies: - bufferutil - supports-color @@ -8303,28 +8270,10 @@ snapshots: dependencies: '@types/json-schema': 7.0.15 - '@eslint/core@0.11.0': - dependencies: - '@types/json-schema': 7.0.15 - '@eslint/core@0.12.0': dependencies: '@types/json-schema': 7.0.15 - '@eslint/eslintrc@3.2.0': - dependencies: - ajv: 6.12.6 - debug: 4.4.0 - espree: 10.3.0 - globals: 14.0.0 - ignore: 5.3.2 - import-fresh: 3.3.1 - js-yaml: 4.1.0 - minimatch: 3.1.2 - strip-json-comments: 3.1.1 - transitivePeerDependencies: - - supports-color - '@eslint/eslintrc@3.3.0': dependencies: ajv: 6.12.6 @@ -8339,14 +8288,12 @@ snapshots: transitivePeerDependencies: - supports-color - '@eslint/js@9.20.0': {} - '@eslint/js@9.21.0': {} '@eslint/markdown@6.2.2': dependencies: '@eslint/core': 0.10.0 - '@eslint/plugin-kit': 0.2.6 + '@eslint/plugin-kit': 0.2.7 mdast-util-from-markdown: 2.0.2 mdast-util-gfm: 3.1.0 micromark-extension-gfm: 3.0.0 @@ -8355,11 +8302,6 @@ snapshots: '@eslint/object-schema@2.1.6': {} - '@eslint/plugin-kit@0.2.6': - dependencies: - '@eslint/core': 0.11.0 - levn: 0.4.1 - '@eslint/plugin-kit@0.2.7': dependencies: '@eslint/core': 0.12.0 @@ -8521,7 +8463,7 @@ snapshots: estree-util-is-identifier-name: 3.0.0 estree-util-scope: 1.0.0 estree-walker: 3.0.3 - hast-util-to-jsx-runtime: 2.3.3 + hast-util-to-jsx-runtime: 2.3.4 markdown-extensions: 2.0.0 recma-build-jsx: 1.0.0 recma-jsx: 1.0.0(acorn@8.14.0) @@ -9625,17 +9567,6 @@ snapshots: '@typescript-eslint/types': 8.25.0 '@typescript-eslint/visitor-keys': 8.25.0 - '@typescript-eslint/type-utils@8.25.0(eslint@9.20.1(jiti@2.4.2))(typescript@5.8.1-rc)': - dependencies: - '@typescript-eslint/typescript-estree': 8.25.0(typescript@5.8.1-rc) - '@typescript-eslint/utils': 8.25.0(eslint@9.20.1(jiti@2.4.2))(typescript@5.8.1-rc) - debug: 4.4.0 - eslint: 9.20.1(jiti@2.4.2) - ts-api-utils: 2.0.1(typescript@5.8.1-rc) - typescript: 5.8.1-rc - transitivePeerDependencies: - - supports-color - '@typescript-eslint/type-utils@8.25.0(eslint@9.21.0(jiti@2.4.2))(typescript@5.8.1-rc)': dependencies: '@typescript-eslint/typescript-estree': 8.25.0(typescript@5.8.1-rc) @@ -9708,17 +9639,6 @@ snapshots: - supports-color - typescript - '@typescript-eslint/utils@8.25.0(eslint@9.20.1(jiti@2.4.2))(typescript@5.8.1-rc)': - dependencies: - '@eslint-community/eslint-utils': 4.4.1(eslint@9.20.1(jiti@2.4.2)) - '@typescript-eslint/scope-manager': 8.25.0 - '@typescript-eslint/types': 8.25.0 - '@typescript-eslint/typescript-estree': 8.25.0(typescript@5.8.1-rc) - eslint: 9.20.1(jiti@2.4.2) - typescript: 5.8.1-rc - transitivePeerDependencies: - - supports-color - '@typescript-eslint/utils@8.25.0(eslint@9.21.0(jiti@2.4.2))(typescript@5.8.1-rc)': dependencies: '@eslint-community/eslint-utils': 4.4.1(eslint@9.21.0(jiti@2.4.2)) @@ -9994,7 +9914,7 @@ snapshots: browserslist@4.24.4: dependencies: caniuse-lite: 1.0.30001700 - electron-to-chromium: 1.5.102 + electron-to-chromium: 1.5.104 node-releases: 2.0.19 update-browserslist-db: 1.1.2(browserslist@4.24.4) @@ -10207,7 +10127,7 @@ snapshots: dependencies: chalk: 4.1.2 lodash: 4.17.21 - rxjs: 7.8.1 + rxjs: 7.8.2 shell-quote: 1.8.2 supports-color: 8.1.1 tree-kill: 1.2.2 @@ -10471,7 +10391,7 @@ snapshots: effect@3.3.2: {} - electron-to-chromium@1.5.102: {} + electron-to-chromium@1.5.104: {} emoji-regex-xs@1.0.0: {} @@ -10517,7 +10437,7 @@ snapshots: es-set-tostringtag@2.1.0: dependencies: es-errors: 1.3.0 - get-intrinsic: 1.2.7 + get-intrinsic: 1.3.0 has-tostringtag: 1.0.2 hasown: 2.0.2 @@ -10573,7 +10493,7 @@ snapshots: eslint-config-flat-gitignore@2.1.0(eslint@9.21.0(jiti@2.4.2)): dependencies: - '@eslint/compat': 1.2.6(eslint@9.21.0(jiti@2.4.2)) + '@eslint/compat': 1.2.7(eslint@9.21.0(jiti@2.4.2)) eslint: 9.21.0(jiti@2.4.2) eslint-import-resolver-node@0.3.9: @@ -10747,47 +10667,6 @@ snapshots: eslint-visitor-keys@4.2.0: {} - eslint@9.20.1(jiti@2.4.2): - dependencies: - '@eslint-community/eslint-utils': 4.4.1(eslint@9.20.1(jiti@2.4.2)) - '@eslint-community/regexpp': 4.12.1 - '@eslint/config-array': 0.19.2 - '@eslint/core': 0.11.0 - '@eslint/eslintrc': 3.2.0 - '@eslint/js': 9.20.0 - '@eslint/plugin-kit': 0.2.6 - '@humanfs/node': 0.16.6 - '@humanwhocodes/module-importer': 1.0.1 - '@humanwhocodes/retry': 0.4.2 - '@types/estree': 1.0.6 - '@types/json-schema': 7.0.15 - ajv: 6.12.6 - chalk: 4.1.2 - cross-spawn: 7.0.6 - debug: 4.4.0 - escape-string-regexp: 4.0.0 - eslint-scope: 8.2.0 - eslint-visitor-keys: 4.2.0 - espree: 10.3.0 - esquery: 1.6.0 - esutils: 2.0.3 - fast-deep-equal: 3.1.3 - file-entry-cache: 8.0.0 - find-up: 5.0.0 - glob-parent: 6.0.2 - ignore: 5.3.2 - imurmurhash: 0.1.4 - is-glob: 4.0.3 - json-stable-stringify-without-jsonify: 1.0.1 - lodash.merge: 4.6.2 - minimatch: 3.1.2 - natural-compare: 1.4.0 - optionator: 0.9.4 - optionalDependencies: - jiti: 2.4.2 - transitivePeerDependencies: - - supports-color - eslint@9.21.0(jiti@2.4.2): dependencies: '@eslint-community/eslint-utils': 4.4.1(eslint@9.21.0(jiti@2.4.2)) @@ -10994,7 +10873,7 @@ snapshots: follow-redirects@1.15.9: {} - foreground-child@3.3.0: + foreground-child@3.3.1: dependencies: cross-spawn: 7.0.6 signal-exit: 4.1.0 @@ -11031,7 +10910,7 @@ snapshots: '@shikijs/transformers': 3.0.0 github-slugger: 2.0.0 hast-util-to-estree: 3.1.2 - hast-util-to-jsx-runtime: 2.3.3 + hast-util-to-jsx-runtime: 2.3.4 image-size: 1.2.0 negotiator: 1.0.0 react-remove-scroll: 2.6.3(@types/react@19.0.10)(react@19.0.0) @@ -11101,7 +10980,7 @@ snapshots: fumadocs-typescript@3.0.3(typescript@5.8.1-rc): dependencies: fast-glob: 3.3.3 - hast-util-to-jsx-runtime: 2.3.3 + hast-util-to-jsx-runtime: 2.3.4 mdast-util-from-markdown: 2.0.2 mdast-util-gfm: 3.1.0 mdast-util-to-hast: 13.2.0 @@ -11147,7 +11026,7 @@ snapshots: get-caller-file@2.0.5: {} - get-intrinsic@1.2.7: + get-intrinsic@1.3.0: dependencies: call-bind-apply-helpers: 1.0.2 es-define-property: 1.0.1 @@ -11187,7 +11066,7 @@ snapshots: glob@10.4.5: dependencies: - foreground-child: 3.3.0 + foreground-child: 3.3.1 jackspeak: 3.4.3 minimatch: 9.0.5 minipass: 7.1.2 @@ -11242,7 +11121,7 @@ snapshots: section-matter: 1.0.0 strip-bom-string: 1.0.0 - h3@1.15.0: + h3@1.15.1: dependencies: cookie-es: 1.2.2 crossws: 0.3.4 @@ -11250,7 +11129,6 @@ snapshots: destr: 2.0.3 iron-webcrypto: 1.2.1 node-mock-http: 1.0.0 - ohash: 1.1.4 radix3: 1.1.2 ufo: 1.5.4 uncrypto: 0.1.3 @@ -11304,7 +11182,7 @@ snapshots: stringify-entities: 4.0.4 zwitch: 2.0.4 - hast-util-to-jsx-runtime@2.3.3: + hast-util-to-jsx-runtime@2.3.4: dependencies: '@types/estree': 1.0.6 '@types/hast': 3.0.4 @@ -11432,10 +11310,10 @@ snapshots: is-hexadecimal@2.0.1: {} - is-immutable-type@5.0.1(eslint@9.20.1(jiti@2.4.2))(typescript@5.8.1-rc): + is-immutable-type@5.0.1(eslint@9.21.0(jiti@2.4.2))(typescript@5.8.1-rc): dependencies: - '@typescript-eslint/type-utils': 8.25.0(eslint@9.20.1(jiti@2.4.2))(typescript@5.8.1-rc) - eslint: 9.20.1(jiti@2.4.2) + '@typescript-eslint/type-utils': 8.25.0(eslint@9.21.0(jiti@2.4.2))(typescript@5.8.1-rc) + eslint: 9.21.0(jiti@2.4.2) ts-api-utils: 2.0.1(typescript@5.8.1-rc) ts-declaration-location: 1.0.5(typescript@5.8.1-rc) typescript: 5.8.1-rc @@ -12442,8 +12320,6 @@ snapshots: node-fetch-native: 1.6.6 ufo: 1.5.4 - ohash@1.1.4: {} - on-headers@1.0.2: {} once@1.4.0: @@ -12987,7 +12863,7 @@ snapshots: dependencies: queue-microtask: 1.2.3 - rxjs@7.8.1: + rxjs@7.8.2: dependencies: tslib: 2.8.1 @@ -13771,7 +13647,7 @@ snapshots: wrappy@1.0.2: {} - ws@8.18.0: {} + ws@8.18.1: {} xdg-basedir@5.1.0: {}