From a90da67a981cac41e4c437444ce5d18a638cd6ea Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 20 Aug 2024 11:33:54 +0800 Subject: [PATCH] npm(deps): bump the npm group with 6 updates (#518) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: AnnAngela Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- .gitattributes | 6 +- .github/workflows/postCommit.yaml | 2 +- eslint.config.js | 10 +- package-lock.json | 989 ++++++++---------- package.json | 10 +- scripts/autoAssign/index.js | 2 +- scripts/browserify/index.js | 4 +- scripts/ci/after.js | 4 +- scripts/ci/before.js | 4 +- .../index.js | 4 +- .../index.js | 6 +- .../index.js | 4 +- scripts/generateGadgetsDefinition/index.js | 4 +- scripts/generatePolyfill/index.js | 2 +- scripts/modules/exec.js | 2 +- scripts/modules/generateHMACSignature.js | 2 +- scripts/modules/jsonModule.js | 2 +- scripts/modules/mailmap.js | 2 +- scripts/modules/minify-stream.js | 2 +- scripts/modules/mkdtmp.js | 8 +- scripts/modules/modulePath.js | 4 +- scripts/modules/readDir.js | 4 +- scripts/modules/yamlModule.js | 2 +- scripts/postCommit/linguist-generated.js | 4 +- scripts/prefetch/index.js | 4 +- scripts/prefetch/targets.yaml | 6 + scripts/test/test.js | 4 +- .../MediaWiki:Gadget-ReferenceTooltips.js | 2 +- .../libJSON5/MediaWiki:Gadget-libJSON5.js | 9 +- ...i:Gadget-libPolyfill-Array.prototype.at.js | 34 +- ...:Gadget-libPolyfill-String.prototype.at.js | 30 +- ...get-libPolyfill-TypedArray.prototype.at.js | 28 +- .../prism-core/MediaWiki:Gadget-prism-core.js | 3 +- .../MediaWiki:Gadget-registerToDelete.js | 2 +- 34 files changed, 533 insertions(+), 672 deletions(-) rename scripts/{ganerateCommitsHistory => generateCommitsHistory}/index.js (97%) diff --git a/.gitattributes b/.gitattributes index cb91022f..017aabf5 100644 --- a/.gitattributes +++ b/.gitattributes @@ -6,13 +6,13 @@ src/**/*.yaml linguist-generated=false src/*.yaml linguist-generated=false src/gadgets/libPolyfill/MediaWiki:Gadget-libPolyfill.*.js linguist-generated=true -# From ganerateCommitsHistory -src/global/zh/MediaWiki:GHIAHistory.json linguist-generated=true - # From browserify src/gadgets/libHashwasm/MediaWiki:Gadget-libHashwasm.js linguist-generated=true src/gadgets/libip/MediaWiki:Gadget-libip.js linguist-generated=true +# From generateCommitsHistory +src/global/zh/MediaWiki:GHIAHistory.json linguist-generated=true + # From prefetch src/gadgets/libJSON5/MediaWiki:Gadget-libJSON5.js linguist-generated=true src/gadgets/localforage/MediaWiki:Gadget-localforage.js linguist-generated=true diff --git a/.github/workflows/postCommit.yaml b/.github/workflows/postCommit.yaml index 8fe9c844..59c5f272 100644 --- a/.github/workflows/postCommit.yaml +++ b/.github/workflows/postCommit.yaml @@ -119,7 +119,7 @@ jobs: - name: Conventional Commits scopes generator run: node scripts/generateConventionalCommitsScopes/index.js - name: Commits History generator - run: node scripts/ganerateCommitsHistory/index.js + run: node scripts/generateCommitsHistory/index.js - name: linguist-generated run: node scripts/postCommit/linguist-generated.js - name: Show git status & push diff --git a/eslint.config.js b/eslint.config.js index 84eeaf11..de8bbbe7 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -4,7 +4,7 @@ import { configs } from "@annangela/eslint-config"; import readDir from "./scripts/modules/readDir.js"; /** - * @type { import("eslint").Linter.FlatConfigFileSpec[] } + * @type { import("eslint").Linter.Config["ignores"] } */ const ignores = [ "**/dist/**", @@ -25,7 +25,7 @@ for (const srcESlintrcFile of srcESlintrcFiles) { } /** - * @typedef { Pick } FileSpec + * @typedef { Pick } FileSpec */ /** * @type { { browser: FileSpec, node: FileSpec } } @@ -53,7 +53,7 @@ const fileSpec = { }; /** - * @type { import("eslint").Linter.FlatConfig[] } + * @type { import("eslint").Linter.Config[] } */ const config = [ // base @@ -119,6 +119,10 @@ const config = [ "n/no-extraneous-import": "off", "n/no-process-exit": "off", + // @TODO: 临时修复 + "n/no-unsupported-features/es-builtins": ["error", { version: "^18.17 || ^20.1" }], + "n/no-unsupported-features/es-syntax": ["error", { version: "^18.17 || ^20.1", ignores: ["modules"] }], + // github api use underscores naming camelcase: [ "error", diff --git a/package-lock.json b/package-lock.json index b7b2246d..8391b6a8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,9 +8,9 @@ "dependencies": { "@actions/artifact": "^2.1.9", "@actions/core": "^1.10.1", - "@annangela/eslint-config": "^5.2.0", - "@annangela/eslint-formatter-gha": "^1.1.4", - "@annangela/eslint-plugin-prefer-reflect": "^2.2.2", + "@annangela/eslint-config": "^6.0.0", + "@annangela/eslint-formatter-gha": "^2.0.0", + "@annangela/eslint-plugin-prefer-reflect": "^3.0.0", "@csstools/postcss-is-pseudo-class": "^5.0.0", "@csstools/postcss-media-minmax": "^2.0.1", "@octokit/auth-action": "^5.1.1", @@ -30,7 +30,7 @@ "concat-stream": "^2.0.0", "duplexify": "^4.1.3", "envify": "^4.1.0", - "eslint": "^8.57.0", + "eslint": "^9.9.0", "eslint-plugin-prefer-arrow-functions": "^3.3.2", "esmify": "^2.1.1", "hash-wasm": "^4.11.0", @@ -52,7 +52,7 @@ "typescript": "^5.4.5", "uglify-js": "^3.19.2", "unassertify": "^3.0.1", - "v8r": "^3.1.1", + "v8r": "^4.0.1", "yaml": "^2.5.0" }, "engines": { @@ -305,36 +305,44 @@ } }, "node_modules/@annangela/eslint-config": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/@annangela/eslint-config/-/eslint-config-5.2.0.tgz", - "integrity": "sha512-TXBaQCjGEmsl1pdc0F8757DBSeak1Fyaks+zxNN+VTzcp1n9gaUYNb+9MmXU884XWm3/dvA+iLWxvi45DTDaLQ==", + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/@annangela/eslint-config/-/eslint-config-6.0.0.tgz", + "integrity": "sha512-CXstIRz4SJXBmtPn02sOGqp/jzbnnKAJ4BaOzjcc5Uo6W02G6JcLgILLpbeCfs6/U2/l9lk8PGQWwr1z4mm27Q==", "dependencies": { "@annangela/eslint-plugin-prefer-reflect": "^2.2.2", - "@eslint-community/eslint-plugin-eslint-comments": "^4.1.0", - "@eslint/js": "^8.57.0", - "@stylistic/eslint-plugin": "^1.7.0", - "@stylistic/eslint-plugin-migrate": "^1.7.0", - "@types/eslint": "^8.56.7", - "@typescript-eslint/eslint-plugin": "^7.5.0", - "@typescript-eslint/parser": "^7.5.0", - "eslint-plugin-eslint-plugin": "^5.5.0", - "eslint-plugin-n": "^16.6.2", - "eslint-plugin-prefer-arrow-functions": "^3.3.2", - "eslint-plugin-promise": "^6.1.1", - "eslint-plugin-security": "^2.1.1", - "globals": "^15.0.0" + "@eslint-community/eslint-plugin-eslint-comments": "^4.4.0", + "@eslint/js": "^9.9.0", + "@stylistic/eslint-plugin": "^2.6.4", + "@stylistic/eslint-plugin-migrate": "^2.6.4", + "@types/eslint": "^9.6.0", + "@typescript-eslint/eslint-plugin": "^8.1.0", + "@typescript-eslint/parser": "^8.1.0", + "eslint-plugin-eslint-plugin": "^6.2.0", + "eslint-plugin-n": "^17.10.2", + "eslint-plugin-prefer-arrow-functions": "^3.4.1", + "eslint-plugin-promise": "^7.1.0", + "eslint-plugin-security": "^3.0.1", + "globals": "^15.9.0" }, "engines": { "node": "^20.9" }, "peerDependencies": { - "eslint": "^8.57.0 || ^9" + "eslint": "^8.57.0 || ^9.0.0" + } + }, + "node_modules/@annangela/eslint-config/node_modules/@annangela/eslint-plugin-prefer-reflect": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/@annangela/eslint-plugin-prefer-reflect/-/eslint-plugin-prefer-reflect-2.2.2.tgz", + "integrity": "sha512-Y5H1Mdcts18Q3RiScWxeE0P/ekmY+ORIVMPmk9i33ewFo9R6N/2tS4Ni8b2rwbX3a6DGEAW1gSe28pu2lT2MxA==", + "engines": { + "node": "^20.9.0" } }, "node_modules/@annangela/eslint-config/node_modules/globals": { - "version": "15.0.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-15.0.0.tgz", - "integrity": "sha512-m/C/yR4mjO6pXDTm9/R/SpYTAIyaUB4EOzcaaMEl7mds7Mshct9GfejiJNQGjHHbdMPey13Kpu4TMbYi9ex1pw==", + "version": "15.9.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-15.9.0.tgz", + "integrity": "sha512-SmSKyLLKFbSr6rptvP8izbyxJL4ILwqO9Jg23UA0sDlGlu58V59D1//I3vlc0KJphVdUR7vMjHIplYnzBxorQA==", "engines": { "node": ">=18" }, @@ -343,17 +351,17 @@ } }, "node_modules/@annangela/eslint-formatter-gha": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/@annangela/eslint-formatter-gha/-/eslint-formatter-gha-1.1.4.tgz", - "integrity": "sha512-3KuWGatUVwdZVVfK8TIjpf2hy6nlkZuwplyeRbSV9INfEl1nQ2CeDXYXO72lN0PnXuroB1JrNBd/qRjYFm4XcA==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@annangela/eslint-formatter-gha/-/eslint-formatter-gha-2.0.0.tgz", + "integrity": "sha512-T4uXEvalLbybTSr9h6intrTvwrBHSc+NeWD2ZOd5FRa4uVDNNLcCgK0zaOIsYd/Md86Z1GfF9nkYOYlLPyP6lg==", "engines": { "node": "^20.10" } }, "node_modules/@annangela/eslint-plugin-prefer-reflect": { - "version": "2.2.2", - "resolved": "https://mirrors.cloud.tencent.com/npm/@annangela/eslint-plugin-prefer-reflect/-/eslint-plugin-prefer-reflect-2.2.2.tgz", - "integrity": "sha512-Y5H1Mdcts18Q3RiScWxeE0P/ekmY+ORIVMPmk9i33ewFo9R6N/2tS4Ni8b2rwbX3a6DGEAW1gSe28pu2lT2MxA==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@annangela/eslint-plugin-prefer-reflect/-/eslint-plugin-prefer-reflect-3.0.0.tgz", + "integrity": "sha512-djYn1lOUhi+rhTxJCmmdM1+b2Ur/HnbGDl1af9O+E9Rc/NxhvzllNibA1Vc9rbCLnOY+8k6S9CgWSFyvLVsX1Q==", "engines": { "node": "^20.9.0" } @@ -998,9 +1006,9 @@ } }, "node_modules/@eslint-community/eslint-plugin-eslint-comments": { - "version": "4.1.0", - "resolved": "https://mirrors.cloud.tencent.com/npm/@eslint-community/eslint-plugin-eslint-comments/-/eslint-plugin-eslint-comments-4.1.0.tgz", - "integrity": "sha512-B2mwipifrBS5E00vN8vME68laPMZ0h3sNGOEDj5g9iUN9k5EU99Omq0Nc325eKNoFFDnDtiHp3DqIjO+1bstag==", + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-plugin-eslint-comments/-/eslint-plugin-eslint-comments-4.4.0.tgz", + "integrity": "sha512-yljsWl5Qv3IkIRmJ38h3NrHXFCm4EUl55M8doGTF6hvzvFF8kRpextgSrg2dwHev9lzBZyafCr9RelGIyQm6fw==", "dependencies": { "escape-string-regexp": "^4.0.0", "ignore": "^5.2.4" @@ -1008,8 +1016,11 @@ "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" }, + "funding": { + "url": "https://opencollective.com/eslint" + }, "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0" } }, "node_modules/@eslint-community/eslint-utils": { @@ -1027,27 +1038,60 @@ } }, "node_modules/@eslint-community/regexpp": { - "version": "4.10.0", - "resolved": "https://mirrors.cloud.tencent.com/npm/@eslint-community/regexpp/-/regexpp-4.10.0.tgz", - "integrity": "sha512-Cu96Sd2By9mCNTx2iyKOmq10v22jUVQv0lQnlGNy16oE9589yE+QADPbrMGCkA51cKZSg3Pu/aTJVTGfL/qjUA==", + "version": "4.11.0", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.11.0.tgz", + "integrity": "sha512-G/M/tIiMrTAxEWRfLfQJMmGNX28IxBg4PBz8XqQhqUHLFI6TL2htpIB1iQCj144V5ee/JaKyT9/WZ0MGZWfA7A==", "engines": { "node": "^12.0.0 || ^14.0.0 || >=16.0.0" } }, "node_modules/@eslint-stylistic/metadata": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/@eslint-stylistic/metadata/-/metadata-1.7.0.tgz", - "integrity": "sha512-EdyFKr1BHcx45o6gMZuCkFS64XHzVGFql0V3oL6mZwepnueulpmjsPxTiRRdrYdRknmQA+vjj1/znFkGRrPWHQ==" + "version": "2.6.4", + "resolved": "https://registry.npmjs.org/@eslint-stylistic/metadata/-/metadata-2.6.4.tgz", + "integrity": "sha512-+G42E6NLxYPU6S7eCSP+shpS8lwjAKofAXbOkhMi1XXv1oqWfDQQoqu9+yvITKL6Xhe50vvE40dynoHH1SoTAA==" + }, + "node_modules/@eslint/config-array": { + "version": "0.17.1", + "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.17.1.tgz", + "integrity": "sha512-BlYOpej8AQ8Ev9xVqroV7a02JK3SkBAaN9GfMMH9W6Ch8FlQlkjGw4Ir7+FgYwfirivAf4t+GtzuAxqfukmISA==", + "dependencies": { + "@eslint/object-schema": "^2.1.4", + "debug": "^4.3.1", + "minimatch": "^3.1.2" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/config-array/node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/@eslint/config-array/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } }, "node_modules/@eslint/eslintrc": { - "version": "2.1.4", - "resolved": "https://mirrors.cloud.tencent.com/npm/@eslint/eslintrc/-/eslintrc-2.1.4.tgz", - "integrity": "sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.1.0.tgz", + "integrity": "sha512-4Bfj15dVJdoy3RfZmmo86RK1Fwzn6SstsvK9JS+BaVKqC6QQQQyXekNaC+g+LKNgkQ+2VhGAzm6hO40AhMR3zQ==", "dependencies": { "ajv": "^6.12.4", "debug": "^4.3.2", - "espree": "^9.6.0", - "globals": "^13.19.0", + "espree": "^10.0.1", + "globals": "^14.0.0", "ignore": "^5.2.0", "import-fresh": "^3.2.1", "js-yaml": "^4.1.0", @@ -1055,7 +1099,7 @@ "strip-json-comments": "^3.1.1" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { "url": "https://opencollective.com/eslint" @@ -1063,7 +1107,7 @@ }, "node_modules/@eslint/eslintrc/node_modules/brace-expansion": { "version": "1.1.11", - "resolved": "https://mirrors.cloud.tencent.com/npm/brace-expansion/-/brace-expansion-1.1.11.tgz", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", "dependencies": { "balanced-match": "^1.0.0", @@ -1072,7 +1116,7 @@ }, "node_modules/@eslint/eslintrc/node_modules/minimatch": { "version": "3.1.2", - "resolved": "https://mirrors.cloud.tencent.com/npm/minimatch/-/minimatch-3.1.2.tgz", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", "dependencies": { "brace-expansion": "^1.1.7" @@ -1082,11 +1126,19 @@ } }, "node_modules/@eslint/js": { - "version": "8.57.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.57.0.tgz", - "integrity": "sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g==", + "version": "9.9.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.9.0.tgz", + "integrity": "sha512-hhetes6ZHP3BlXLxmd8K2SNgkhNSi+UcecbnwWKwpP7kyi/uC75DJ1lOOBO3xrC4jyojtGE3YxKZPHfk4yrgug==", "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/object-schema": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.4.tgz", + "integrity": "sha512-BsWiH1yFGjXXS2yvrf5LyuoSIIbPrGUWob917o+BTKuZ7qJdxX8aJLRxs1fS9n6r7vESrq1OUqb68dANcFXuQQ==", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" } }, "node_modules/@fastify/busboy": { @@ -1115,39 +1167,6 @@ "ms": "^2.1.1" } }, - "node_modules/@humanwhocodes/config-array": { - "version": "0.11.14", - "resolved": "https://mirrors.cloud.tencent.com/npm/@humanwhocodes/config-array/-/config-array-0.11.14.tgz", - "integrity": "sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==", - "dependencies": { - "@humanwhocodes/object-schema": "^2.0.2", - "debug": "^4.3.1", - "minimatch": "^3.0.5" - }, - "engines": { - "node": ">=10.10.0" - } - }, - "node_modules/@humanwhocodes/config-array/node_modules/brace-expansion": { - "version": "1.1.11", - "resolved": "https://mirrors.cloud.tencent.com/npm/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/@humanwhocodes/config-array/node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://mirrors.cloud.tencent.com/npm/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, "node_modules/@humanwhocodes/module-importer": { "version": "1.0.1", "resolved": "https://mirrors.cloud.tencent.com/npm/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", @@ -1160,10 +1179,17 @@ "url": "https://github.com/sponsors/nzakas" } }, - "node_modules/@humanwhocodes/object-schema": { - "version": "2.0.2", - "resolved": "https://mirrors.cloud.tencent.com/npm/@humanwhocodes/object-schema/-/object-schema-2.0.2.tgz", - "integrity": "sha512-6EwiSjwWYP7pTckG6I5eyFANjPhmPjUX9JRLUSfNPC7FX7zK9gyZAfUEaECL6ALTpGX5AjnBq3C9XmVWPitNpw==" + "node_modules/@humanwhocodes/retry": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.3.0.tgz", + "integrity": "sha512-d2CGZR2o7fS6sWB7DG/3a95bGKQyHMACZ5aW8qGkkqQpUoZV6C0X7Pc7l4ZNMZkfNBf4VWNe9E1jRsf0G146Ew==", + "engines": { + "node": ">=18.18" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } }, "node_modules/@isaacs/cliui": { "version": "8.0.2", @@ -2372,62 +2398,85 @@ } }, "node_modules/@stylistic/eslint-plugin": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/@stylistic/eslint-plugin/-/eslint-plugin-1.7.0.tgz", - "integrity": "sha512-ThMUjGIi/jeWYNvOdjZkoLw1EOVs0tEuKXDgWvTn8uWaEz55HuPlajKxjKLpv19C+qRDbKczJfzUODfCdME53A==", + "version": "2.6.4", + "resolved": "https://registry.npmjs.org/@stylistic/eslint-plugin/-/eslint-plugin-2.6.4.tgz", + "integrity": "sha512-euUGnjzH8EOqEYTGk9dB2OBINp0FX1nuO7/k4fO82zNRBIKZgJoDwTLM4Ce+Om6W1Qmh1PrZjCr4jh4tMEXGPQ==", "dependencies": { - "@stylistic/eslint-plugin-js": "1.7.0", - "@stylistic/eslint-plugin-jsx": "1.7.0", - "@stylistic/eslint-plugin-plus": "1.7.0", - "@stylistic/eslint-plugin-ts": "1.7.0", - "@types/eslint": "^8.56.2" + "@stylistic/eslint-plugin-js": "2.6.4", + "@stylistic/eslint-plugin-jsx": "2.6.4", + "@stylistic/eslint-plugin-plus": "2.6.4", + "@stylistic/eslint-plugin-ts": "2.6.4", + "@types/eslint": "^9.6.0" }, "engines": { - "node": "^16.0.0 || >=18.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "peerDependencies": { "eslint": ">=8.40.0" } }, "node_modules/@stylistic/eslint-plugin-js": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/@stylistic/eslint-plugin-js/-/eslint-plugin-js-1.7.0.tgz", - "integrity": "sha512-PN6On/+or63FGnhhMKSQfYcWutRlzOiYlVdLM6yN7lquoBTqUJHYnl4TA4MHwiAt46X5gRxDr1+xPZ1lOLcL+Q==", + "version": "2.6.4", + "resolved": "https://registry.npmjs.org/@stylistic/eslint-plugin-js/-/eslint-plugin-js-2.6.4.tgz", + "integrity": "sha512-kx1hS3xTvzxZLdr/DCU/dLBE++vcP97sHeEFX2QXhk1Ipa4K1rzPOLw1HCbf4mU3s+7kHP5eYpDe+QteEOFLug==", "dependencies": { - "@types/eslint": "^8.56.2", - "acorn": "^8.11.3", - "escape-string-regexp": "^4.0.0", - "eslint-visitor-keys": "^3.4.3", - "espree": "^9.6.1" + "@types/eslint": "^9.6.0", + "acorn": "^8.12.1", + "eslint-visitor-keys": "^4.0.0", + "espree": "^10.1.0" }, "engines": { - "node": "^16.0.0 || >=18.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "peerDependencies": { "eslint": ">=8.40.0" } }, + "node_modules/@stylistic/eslint-plugin-js/node_modules/eslint-visitor-keys": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.0.0.tgz", + "integrity": "sha512-OtIRv/2GyiF6o/d8K7MYKKbXrOUBIK6SfkIRM4Z0dY3w+LiQ0vy3F57m0Z71bjbyeiWFiHJ8brqnmE6H6/jEuw==", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, "node_modules/@stylistic/eslint-plugin-jsx": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/@stylistic/eslint-plugin-jsx/-/eslint-plugin-jsx-1.7.0.tgz", - "integrity": "sha512-BACdBwXakQvjYIST5N2WWhRbvhRsIxa/F59BiZol+0IH4FSmDXhie7v/yaxDIIA9CbfElzOmIA5nWNYTVXcnwQ==", - "dependencies": { - "@stylistic/eslint-plugin-js": "^1.7.0", - "@types/eslint": "^8.56.2", + "version": "2.6.4", + "resolved": "https://registry.npmjs.org/@stylistic/eslint-plugin-jsx/-/eslint-plugin-jsx-2.6.4.tgz", + "integrity": "sha512-bIvVhdtjmyu3S10V7QRIuawtCZSq9gRmzAX23ucjCOdSFzEwlq+di0IM0riBAvvQerrJL4SM6G3xgyPs8BSXIA==", + "dependencies": { + "@stylistic/eslint-plugin-js": "^2.6.4", + "@types/eslint": "^9.6.0", + "eslint-visitor-keys": "^4.0.0", + "espree": "^10.1.0", "estraverse": "^5.3.0", - "picomatch": "^4.0.1" + "picomatch": "^4.0.2" }, "engines": { - "node": "^16.0.0 || >=18.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "peerDependencies": { "eslint": ">=8.40.0" } }, + "node_modules/@stylistic/eslint-plugin-jsx/node_modules/eslint-visitor-keys": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.0.0.tgz", + "integrity": "sha512-OtIRv/2GyiF6o/d8K7MYKKbXrOUBIK6SfkIRM4Z0dY3w+LiQ0vy3F57m0Z71bjbyeiWFiHJ8brqnmE6H6/jEuw==", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, "node_modules/@stylistic/eslint-plugin-jsx/node_modules/picomatch": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.1.tgz", - "integrity": "sha512-xUXwsxNjwTQ8K3GnT4pCJm+xq3RUPQbmkYJTP5aFIfNIvbcc/4MUxgBaaRSZJ6yGJZiGSyYlM6MzwTsRk8SYCg==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.2.tgz", + "integrity": "sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==", "engines": { "node": ">=12" }, @@ -2436,40 +2485,39 @@ } }, "node_modules/@stylistic/eslint-plugin-migrate": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/@stylistic/eslint-plugin-migrate/-/eslint-plugin-migrate-1.7.0.tgz", - "integrity": "sha512-1xcTyY8EIyRLtI86c2XM2GYLv9tBAuelYCH8i2H84k8lSWO8fTg9ArohG3Oo2bj55KFkOHO39lU1QlfKDMpxLQ==", + "version": "2.6.4", + "resolved": "https://registry.npmjs.org/@stylistic/eslint-plugin-migrate/-/eslint-plugin-migrate-2.6.4.tgz", + "integrity": "sha512-pg2w7woYcXClhxTKU93z6kbTOHWXL7EQz/uR7zVRR3UYKhNHG5PZKVUbyUwwp849fVEJ2/gOtSQvOq11vH/xmg==", "dependencies": { - "@eslint-stylistic/metadata": "1.7.0", - "@typescript-eslint/utils": "^6.21.0" + "@eslint-stylistic/metadata": "2.6.4", + "@typescript-eslint/utils": "^8.1.0" }, "engines": { - "node": "^16.0.0 || >=18.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" } }, "node_modules/@stylistic/eslint-plugin-plus": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/@stylistic/eslint-plugin-plus/-/eslint-plugin-plus-1.7.0.tgz", - "integrity": "sha512-AabDw8sXsc70Ydx3qnbeTlRHZnIwY6UKEenBPURPhY3bfYWX+/pDpZH40HkOu94v8D0DUrocPkeeEUxl4e0JDg==", + "version": "2.6.4", + "resolved": "https://registry.npmjs.org/@stylistic/eslint-plugin-plus/-/eslint-plugin-plus-2.6.4.tgz", + "integrity": "sha512-EuRvtxhf7Hv8OoMIePulP/6rBJIgPTu1l5GAm1780WcF1Cl8bOZXIn84Pdac5pNv6lVlzCOFm8MD3VE+2YROuA==", "dependencies": { - "@types/eslint": "^8.56.2", - "@typescript-eslint/utils": "^6.21.0" + "@types/eslint": "^9.6.0" }, "peerDependencies": { "eslint": "*" } }, "node_modules/@stylistic/eslint-plugin-ts": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/@stylistic/eslint-plugin-ts/-/eslint-plugin-ts-1.7.0.tgz", - "integrity": "sha512-QsHv98mmW1xaucVYQTyLDgEpybPJ/6jPPxVBrIchntWWwj74xCWKUiw79hu+TpYj/Pbhd9rkqJYLNq3pQGYuyA==", + "version": "2.6.4", + "resolved": "https://registry.npmjs.org/@stylistic/eslint-plugin-ts/-/eslint-plugin-ts-2.6.4.tgz", + "integrity": "sha512-yxL8Hj6WkObw1jfiLpBzKy5yfxY6vwlwO4miq34ySErUjUecPV5jxfVbOe4q1QDPKemQGPq93v7sAQS5PzM8lA==", "dependencies": { - "@stylistic/eslint-plugin-js": "1.7.0", - "@types/eslint": "^8.56.2", - "@typescript-eslint/utils": "^6.21.0" + "@stylistic/eslint-plugin-js": "2.6.4", + "@types/eslint": "^9.6.0", + "@typescript-eslint/utils": "^8.1.0" }, "engines": { - "node": "^16.0.0 || >=18.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "peerDependencies": { "eslint": ">=8.40.0" @@ -2495,9 +2543,9 @@ } }, "node_modules/@types/eslint": { - "version": "8.56.7", - "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.56.7.tgz", - "integrity": "sha512-SjDvI/x3zsZnOkYZ3lCt9lOZWZLB2jIlNKz+LBgCtDurK0JZcwucxYHn1w2BJkD34dgX9Tjnak0txtq4WTggEA==", + "version": "9.6.0", + "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-9.6.0.tgz", + "integrity": "sha512-gi6WQJ7cHRgZxtkQEoyHMppPjq9Kxo5Tjn2prSKDSmZrCz8TZ3jSRCeTJm+WoM+oB0WG37bRqLzaaU3q7JypGg==", "dependencies": { "@types/estree": "*", "@types/json-schema": "*" @@ -2571,11 +2619,6 @@ "resolved": "https://registry.npmjs.org/@types/prismjs/-/prismjs-1.26.4.tgz", "integrity": "sha512-rlAnzkW2sZOjbqZ743IHUhFcvzaGbqijwOu8QZnZCjfQzBqFE3s4lOTJEsxikImav9uzz/42I+O7YUs1mWgMlg==" }, - "node_modules/@types/semver": { - "version": "7.5.8", - "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.8.tgz", - "integrity": "sha512-I8EUhyrgfLrcTkzV3TSsGyl1tSuPrEDzr0yd5m90UgNxQkyDXULk3b6MlQqTCpZpNtWe1K0hzclnZkTcLBe2UQ==" - }, "node_modules/@types/sizzle": { "version": "2.3.8", "resolved": "https://mirrors.cloud.tencent.com/npm/@types/sizzle/-/sizzle-2.3.8.tgz", @@ -2595,32 +2638,30 @@ "integrity": "sha512-1jZ9bJn2BsfmYFPBHtl5o3uV+ILejAtGrDcYSpT4qaVKEI/0YY+arw3XHU04Ebd8Nca3SQ7uNcLaqiL+tTFVMg==" }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "7.5.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-7.5.0.tgz", - "integrity": "sha512-HpqNTH8Du34nLxbKgVMGljZMG0rJd2O9ecvr2QLYp+7512ty1j42KnsFwspPXg1Vh8an9YImf6CokUBltisZFQ==", - "dependencies": { - "@eslint-community/regexpp": "^4.5.1", - "@typescript-eslint/scope-manager": "7.5.0", - "@typescript-eslint/type-utils": "7.5.0", - "@typescript-eslint/utils": "7.5.0", - "@typescript-eslint/visitor-keys": "7.5.0", - "debug": "^4.3.4", + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.2.0.tgz", + "integrity": "sha512-02tJIs655em7fvt9gps/+4k4OsKULYGtLBPJfOsmOq1+3cdClYiF0+d6mHu6qDnTcg88wJBkcPLpQhq7FyDz0A==", + "dependencies": { + "@eslint-community/regexpp": "^4.10.0", + "@typescript-eslint/scope-manager": "8.2.0", + "@typescript-eslint/type-utils": "8.2.0", + "@typescript-eslint/utils": "8.2.0", + "@typescript-eslint/visitor-keys": "8.2.0", "graphemer": "^1.4.0", - "ignore": "^5.2.4", + "ignore": "^5.3.1", "natural-compare": "^1.4.0", - "semver": "^7.5.4", - "ts-api-utils": "^1.0.1" + "ts-api-utils": "^1.3.0" }, "engines": { - "node": "^18.18.0 || >=20.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "@typescript-eslint/parser": "^7.0.0", - "eslint": "^8.56.0" + "@typescript-eslint/parser": "^8.0.0 || ^8.0.0-alpha.0", + "eslint": "^8.57.0 || ^9.0.0" }, "peerDependenciesMeta": { "typescript": { @@ -2628,50 +2669,26 @@ } } }, - "node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils": { - "version": "7.5.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-7.5.0.tgz", - "integrity": "sha512-3vZl9u0R+/FLQcpy2EHyRGNqAS/ofJ3Ji8aebilfJe+fobK8+LbIFmrHciLVDxjDoONmufDcnVSF38KwMEOjzw==", - "dependencies": { - "@eslint-community/eslint-utils": "^4.4.0", - "@types/json-schema": "^7.0.12", - "@types/semver": "^7.5.0", - "@typescript-eslint/scope-manager": "7.5.0", - "@typescript-eslint/types": "7.5.0", - "@typescript-eslint/typescript-estree": "7.5.0", - "semver": "^7.5.4" - }, - "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.56.0" - } - }, "node_modules/@typescript-eslint/parser": { - "version": "7.5.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-7.5.0.tgz", - "integrity": "sha512-cj+XGhNujfD2/wzR1tabNsidnYRaFfEkcULdcIyVBYcXjBvBKOes+mpMBP7hMpOyk+gBcfXsrg4NBGAStQyxjQ==", - "dependencies": { - "@typescript-eslint/scope-manager": "7.5.0", - "@typescript-eslint/types": "7.5.0", - "@typescript-eslint/typescript-estree": "7.5.0", - "@typescript-eslint/visitor-keys": "7.5.0", + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.2.0.tgz", + "integrity": "sha512-j3Di+o0lHgPrb7FxL3fdEy6LJ/j2NE8u+AP/5cQ9SKb+JLH6V6UHDqJ+e0hXBkHP1wn1YDFjYCS9LBQsZDlDEg==", + "dependencies": { + "@typescript-eslint/scope-manager": "8.2.0", + "@typescript-eslint/types": "8.2.0", + "@typescript-eslint/typescript-estree": "8.2.0", + "@typescript-eslint/visitor-keys": "8.2.0", "debug": "^4.3.4" }, "engines": { - "node": "^18.18.0 || >=20.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "eslint": "^8.56.0" + "eslint": "^8.57.0 || ^9.0.0" }, "peerDependenciesMeta": { "typescript": { @@ -2680,15 +2697,15 @@ } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "7.5.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-7.5.0.tgz", - "integrity": "sha512-Z1r7uJY0MDeUlql9XJ6kRVgk/sP11sr3HKXn268HZyqL7i4cEfrdFuSSY/0tUqT37l5zT0tJOsuDP16kio85iA==", + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.2.0.tgz", + "integrity": "sha512-OFn80B38yD6WwpoHU2Tz/fTz7CgFqInllBoC3WP+/jLbTb4gGPTy9HBSTsbDWkMdN55XlVU0mMDYAtgvlUspGw==", "dependencies": { - "@typescript-eslint/types": "7.5.0", - "@typescript-eslint/visitor-keys": "7.5.0" + "@typescript-eslint/types": "8.2.0", + "@typescript-eslint/visitor-keys": "8.2.0" }, "engines": { - "node": "^18.18.0 || >=20.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { "type": "opencollective", @@ -2696,61 +2713,34 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "7.5.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-7.5.0.tgz", - "integrity": "sha512-A021Rj33+G8mx2Dqh0nMO9GyjjIBK3MqgVgZ2qlKf6CJy51wY/lkkFqq3TqqnH34XyAHUkq27IjlUkWlQRpLHw==", + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.2.0.tgz", + "integrity": "sha512-g1CfXGFMQdT5S+0PSO0fvGXUaiSkl73U1n9LTK5aRAFnPlJ8dLKkXr4AaLFvPedW8lVDoMgLLE3JN98ZZfsj0w==", "dependencies": { - "@typescript-eslint/typescript-estree": "7.5.0", - "@typescript-eslint/utils": "7.5.0", + "@typescript-eslint/typescript-estree": "8.2.0", + "@typescript-eslint/utils": "8.2.0", "debug": "^4.3.4", - "ts-api-utils": "^1.0.1" + "ts-api-utils": "^1.3.0" }, "engines": { - "node": "^18.18.0 || >=20.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/typescript-eslint" }, - "peerDependencies": { - "eslint": "^8.56.0" - }, "peerDependenciesMeta": { "typescript": { "optional": true } } }, - "node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils": { - "version": "7.5.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-7.5.0.tgz", - "integrity": "sha512-3vZl9u0R+/FLQcpy2EHyRGNqAS/ofJ3Ji8aebilfJe+fobK8+LbIFmrHciLVDxjDoONmufDcnVSF38KwMEOjzw==", - "dependencies": { - "@eslint-community/eslint-utils": "^4.4.0", - "@types/json-schema": "^7.0.12", - "@types/semver": "^7.5.0", - "@typescript-eslint/scope-manager": "7.5.0", - "@typescript-eslint/types": "7.5.0", - "@typescript-eslint/typescript-estree": "7.5.0", - "semver": "^7.5.4" - }, - "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.56.0" - } - }, "node_modules/@typescript-eslint/types": { - "version": "7.5.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-7.5.0.tgz", - "integrity": "sha512-tv5B4IHeAdhR7uS4+bf8Ov3k793VEVHd45viRRkehIUZxm0WF82VPiLgHzA/Xl4TGPg1ZD49vfxBKFPecD5/mg==", + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.2.0.tgz", + "integrity": "sha512-6a9QSK396YqmiBKPkJtxsgZZZVjYQ6wQ/TlI0C65z7vInaETuC6HAHD98AGLC8DyIPqHytvNuS8bBVvNLKyqvQ==", "engines": { - "node": "^18.18.0 || >=20.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { "type": "opencollective", @@ -2758,21 +2748,21 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "7.5.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-7.5.0.tgz", - "integrity": "sha512-YklQQfe0Rv2PZEueLTUffiQGKQneiIEKKnfIqPIOxgM9lKSZFCjT5Ad4VqRKj/U4+kQE3fa8YQpskViL7WjdPQ==", + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.2.0.tgz", + "integrity": "sha512-kiG4EDUT4dImplOsbh47B1QnNmXSoUqOjWDvCJw/o8LgfD0yr7k2uy54D5Wm0j4t71Ge1NkynGhpWdS0dEIAUA==", "dependencies": { - "@typescript-eslint/types": "7.5.0", - "@typescript-eslint/visitor-keys": "7.5.0", + "@typescript-eslint/types": "8.2.0", + "@typescript-eslint/visitor-keys": "8.2.0", "debug": "^4.3.4", "globby": "^11.1.0", "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": "^1.3.0" }, "engines": { - "node": "^18.18.0 || >=20.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { "type": "opencollective", @@ -2785,121 +2775,42 @@ } }, "node_modules/@typescript-eslint/utils": { - "version": "6.21.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.21.0.tgz", - "integrity": "sha512-NfWVaC8HP9T8cbKQxHcsJBY5YE1O33+jpMwN45qzWWaPDZgLIbo12toGMWnmhvCpd3sIxkpDw3Wv1B3dYrbDQQ==", + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.2.0.tgz", + "integrity": "sha512-O46eaYKDlV3TvAVDNcoDzd5N550ckSe8G4phko++OCSC1dYIb9LTc3HDGYdWqWIAT5qDUKphO6sd9RrpIJJPfg==", "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" + "@typescript-eslint/scope-manager": "8.2.0", + "@typescript-eslint/types": "8.2.0", + "@typescript-eslint/typescript-estree": "8.2.0" }, "engines": { - "node": "^16.0.0 || >=18.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "eslint": "^7.0.0 || ^8.0.0" - } - }, - "node_modules/@typescript-eslint/utils/node_modules/@typescript-eslint/scope-manager": { - "version": "6.21.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.21.0.tgz", - "integrity": "sha512-OwLUIWZJry80O99zvqXVEioyniJMa+d2GrqpUTqi5/v5D5rOrppJVBPa0yKCblcigC0/aYAzxxqQ1B+DS2RYsg==", - "dependencies": { - "@typescript-eslint/types": "6.21.0", - "@typescript-eslint/visitor-keys": "6.21.0" - }, - "engines": { - "node": "^16.0.0 || >=18.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/utils/node_modules/@typescript-eslint/types": { - "version": "6.21.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.21.0.tgz", - "integrity": "sha512-1kFmZ1rOm5epu9NZEZm1kckCDGj5UJEf7P1kliH4LKu/RkwpsfqqGmY2OOcUs18lSlQBKLDYBOGxRVtrMN5lpg==", - "engines": { - "node": "^16.0.0 || >=18.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/utils/node_modules/@typescript-eslint/typescript-estree": { - "version": "6.21.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.21.0.tgz", - "integrity": "sha512-6npJTkZcO+y2/kr+z0hc4HwNfrrP4kNYh57ek7yCNlrBjWQ1Y0OS7jiZTkgumrvkX5HkEKXFZkkdFNkaW2wmUQ==", - "dependencies": { - "@typescript-eslint/types": "6.21.0", - "@typescript-eslint/visitor-keys": "6.21.0", - "debug": "^4.3.4", - "globby": "^11.1.0", - "is-glob": "^4.0.3", - "minimatch": "9.0.3", - "semver": "^7.5.4", - "ts-api-utils": "^1.0.1" - }, - "engines": { - "node": "^16.0.0 || >=18.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/@typescript-eslint/utils/node_modules/@typescript-eslint/visitor-keys": { - "version": "6.21.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.21.0.tgz", - "integrity": "sha512-JJtkDduxLi9bivAB+cYOVMtbkqdPOhZ+ZI5LC47MIRrDV4Yn2o+ZnW10Nkmr28xRpSpdJ6Sm42Hjf2+REYXm0A==", - "dependencies": { - "@typescript-eslint/types": "6.21.0", - "eslint-visitor-keys": "^3.4.1" - }, - "engines": { - "node": "^16.0.0 || >=18.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" + "eslint": "^8.57.0 || ^9.0.0" } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "7.5.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-7.5.0.tgz", - "integrity": "sha512-mcuHM/QircmA6O7fy6nn2w/3ditQkj+SgtOc8DW3uQ10Yfj42amm2i+6F2K4YAOPNNTmE6iM1ynM6lrSwdendA==", + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.2.0.tgz", + "integrity": "sha512-sbgsPMW9yLvS7IhCi8IpuK1oBmtbWUNP+hBdwl/I9nzqVsszGnNGti5r9dUtF5RLivHUFFIdRvLiTsPhzSyJ3Q==", "dependencies": { - "@typescript-eslint/types": "7.5.0", - "eslint-visitor-keys": "^3.4.1" + "@typescript-eslint/types": "8.2.0", + "eslint-visitor-keys": "^3.4.3" }, "engines": { - "node": "^18.18.0 || >=20.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/typescript-eslint" } }, - "node_modules/@ungap/structured-clone": { - "version": "1.2.0", - "resolved": "https://mirrors.cloud.tencent.com/npm/@ungap/structured-clone/-/structured-clone-1.2.0.tgz", - "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==" - }, "node_modules/@vue/compiler-core": { "version": "3.3.9", "resolved": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.3.9.tgz", @@ -3030,9 +2941,9 @@ } }, "node_modules/acorn": { - "version": "8.11.3", - "resolved": "https://mirrors.cloud.tencent.com/npm/acorn/-/acorn-8.11.3.tgz", - "integrity": "sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==", + "version": "8.12.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.12.1.tgz", + "integrity": "sha512-tcpGyI9zbizT9JbV6oYE477V6mTlXvvi0T0G3SNIYE2apm/G5huBa1+K89VGeovbg+jycCrfhl3ADxErOuO6Jg==", "bin": { "acorn": "bin/acorn" }, @@ -3079,7 +2990,7 @@ }, "node_modules/ajv": { "version": "6.12.6", - "resolved": "https://mirrors.cloud.tencent.com/npm/ajv/-/ajv-6.12.6.tgz", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", "dependencies": { "fast-deep-equal": "^3.1.1", @@ -4034,30 +3945,11 @@ "node": ">=0.2.0" } }, - "node_modules/builtin-modules": { - "version": "3.3.0", - "resolved": "https://mirrors.cloud.tencent.com/npm/builtin-modules/-/builtin-modules-3.3.0.tgz", - "integrity": "sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw==", - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/builtin-status-codes": { "version": "3.0.0", "resolved": "https://mirrors.cloud.tencent.com/npm/builtin-status-codes/-/builtin-status-codes-3.0.0.tgz", "integrity": "sha1-hZgoeOIbmOHGZCXgPQF0eI9Wnug=" }, - "node_modules/builtins": { - "version": "5.0.1", - "resolved": "https://mirrors.cloud.tencent.com/npm/builtins/-/builtins-5.0.1.tgz", - "integrity": "sha512-qwVpFEHNfhYJIzNRBvd2C1kyo6jz3ZSMPyyuR47OPdiKWlbYnZNyDWuyR175qDnAJLiCo5fBBqPb3RiXgWlkOQ==", - "dependencies": { - "semver": "^7.0.0" - } - }, "node_modules/cacheable-lookup": { "version": "7.0.0", "resolved": "https://mirrors.cloud.tencent.com/npm/cacheable-lookup/-/cacheable-lookup-7.0.0.tgz", @@ -4876,17 +4768,6 @@ "node": ">=8" } }, - "node_modules/doctrine": { - "version": "3.0.0", - "resolved": "https://mirrors.cloud.tencent.com/npm/doctrine/-/doctrine-3.0.0.tgz", - "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", - "dependencies": { - "esutils": "^2.0.2" - }, - "engines": { - "node": ">=6.0.0" - } - }, "node_modules/domain-browser": { "version": "1.2.0", "resolved": "https://mirrors.cloud.tencent.com/npm/domain-browser/-/domain-browser-1.2.0.tgz", @@ -5001,6 +4882,18 @@ "once": "^1.4.0" } }, + "node_modules/enhanced-resolve": { + "version": "5.17.1", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.17.1.tgz", + "integrity": "sha512-LMHl3dXhTcfv8gM4kEzIUeTQ+7fpdA0l2tUf34BddXPkz2A5xJ5L/Pchd5BL6rdccM9QGvu0sWZzK1Z1t4wwyg==", + "dependencies": { + "graceful-fs": "^4.2.4", + "tapable": "^2.2.0" + }, + "engines": { + "node": ">=10.13.0" + } + }, "node_modules/env-paths": { "version": "2.2.1", "resolved": "https://mirrors.cloud.tencent.com/npm/env-paths/-/env-paths-2.2.1.tgz", @@ -5184,40 +5077,36 @@ } }, "node_modules/eslint": { - "version": "8.57.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.57.0.tgz", - "integrity": "sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==", + "version": "9.9.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.9.0.tgz", + "integrity": "sha512-JfiKJrbx0506OEerjK2Y1QlldtBxkAlLxT5OEcRF8uaQ86noDe2k31Vw9rnSWv+MXZHj7OOUV/dA0AhdLFcyvA==", "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", - "@eslint-community/regexpp": "^4.6.1", - "@eslint/eslintrc": "^2.1.4", - "@eslint/js": "8.57.0", - "@humanwhocodes/config-array": "^0.11.14", + "@eslint-community/regexpp": "^4.11.0", + "@eslint/config-array": "^0.17.1", + "@eslint/eslintrc": "^3.1.0", + "@eslint/js": "9.9.0", "@humanwhocodes/module-importer": "^1.0.1", + "@humanwhocodes/retry": "^0.3.0", "@nodelib/fs.walk": "^1.2.8", - "@ungap/structured-clone": "^1.2.0", "ajv": "^6.12.4", "chalk": "^4.0.0", "cross-spawn": "^7.0.2", "debug": "^4.3.2", - "doctrine": "^3.0.0", "escape-string-regexp": "^4.0.0", - "eslint-scope": "^7.2.2", - "eslint-visitor-keys": "^3.4.3", - "espree": "^9.6.1", - "esquery": "^1.4.2", + "eslint-scope": "^8.0.2", + "eslint-visitor-keys": "^4.0.0", + "espree": "^10.1.0", + "esquery": "^1.5.0", "esutils": "^2.0.2", "fast-deep-equal": "^3.1.3", - "file-entry-cache": "^6.0.1", + "file-entry-cache": "^8.0.0", "find-up": "^5.0.0", "glob-parent": "^6.0.2", - "globals": "^13.19.0", - "graphemer": "^1.4.0", "ignore": "^5.2.0", "imurmurhash": "^0.1.4", "is-glob": "^4.0.0", "is-path-inside": "^3.0.3", - "js-yaml": "^4.1.0", "json-stable-stringify-without-jsonify": "^1.0.1", "levn": "^0.4.1", "lodash.merge": "^4.6.2", @@ -5231,16 +5120,27 @@ "eslint": "bin/eslint.js" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { - "url": "https://opencollective.com/eslint" + "url": "https://eslint.org/donate" + }, + "peerDependencies": { + "jiti": "*" + }, + "peerDependenciesMeta": { + "jiti": { + "optional": true + } } }, "node_modules/eslint-compat-utils": { - "version": "0.1.2", - "resolved": "https://mirrors.cloud.tencent.com/npm/eslint-compat-utils/-/eslint-compat-utils-0.1.2.tgz", - "integrity": "sha512-Jia4JDldWnFNIru1Ehx1H5s9/yxiRHY/TimCuUc0jNexew3cF1gI6CYZil1ociakfWO3rRqFjl1mskBblB3RYg==", + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/eslint-compat-utils/-/eslint-compat-utils-0.5.1.tgz", + "integrity": "sha512-3z3vFexKIEnjHE3zCMRo6fn/e44U7T1khUjg+Hp0ZQMCigh28rALD0nPFBcGZuiLC5rLZa2ubQHDRln09JfU2Q==", + "dependencies": { + "semver": "^7.5.4" + }, "engines": { "node": ">=12" }, @@ -5249,151 +5149,127 @@ } }, "node_modules/eslint-plugin-es-x": { - "version": "7.5.0", - "resolved": "https://mirrors.cloud.tencent.com/npm/eslint-plugin-es-x/-/eslint-plugin-es-x-7.5.0.tgz", - "integrity": "sha512-ODswlDSO0HJDzXU0XvgZ3lF3lS3XAZEossh15Q2UHjwrJggWeBoKqqEsLTZLXl+dh5eOAozG0zRcYtuE35oTuQ==", + "version": "7.8.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-es-x/-/eslint-plugin-es-x-7.8.0.tgz", + "integrity": "sha512-7Ds8+wAAoV3T+LAKeu39Y5BzXCrGKrcISfgKEqTS4BDN8SFEDQd0S43jiQ8vIa3wUKD07qitZdfzlenSi8/0qQ==", + "funding": [ + "https://github.com/sponsors/ota-meshi", + "https://opencollective.com/eslint" + ], "dependencies": { "@eslint-community/eslint-utils": "^4.1.2", - "@eslint-community/regexpp": "^4.6.0", - "eslint-compat-utils": "^0.1.2" + "@eslint-community/regexpp": "^4.11.0", + "eslint-compat-utils": "^0.5.1" }, "engines": { "node": "^14.18.0 || >=16.0.0" }, - "funding": { - "url": "https://github.com/sponsors/ota-meshi" - }, "peerDependencies": { "eslint": ">=8" } }, "node_modules/eslint-plugin-eslint-plugin": { - "version": "5.5.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-eslint-plugin/-/eslint-plugin-eslint-plugin-5.5.1.tgz", - "integrity": "sha512-9AmfZzcQ7QHwpzfAQpZ7xdtwHYViylmlnruCH0aV64/tuoH3igGXg91vr0e6ShLf/mrAYGqLw5LZ/gOxJeRXnw==", + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-eslint-plugin/-/eslint-plugin-eslint-plugin-6.2.0.tgz", + "integrity": "sha512-+SSHlThUMBb6MhXl/CqNhKvnUY3111s/1vEcu+paOwTJzniTanRZCfl0kQXNfK57XsWJ5aRsiwMlPg/FgnYsag==", "dependencies": { - "eslint-utils": "^3.0.0", + "@eslint-community/eslint-utils": "^4.4.0", "estraverse": "^5.3.0" }, "engines": { - "node": "^14.17.0 || ^16.0.0 || >= 18.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "peerDependencies": { - "eslint": ">=7.0.0" + "eslint": ">=8.23.0" } }, "node_modules/eslint-plugin-n": { - "version": "16.6.2", - "resolved": "https://mirrors.cloud.tencent.com/npm/eslint-plugin-n/-/eslint-plugin-n-16.6.2.tgz", - "integrity": "sha512-6TyDmZ1HXoFQXnhCTUjVFULReoBPOAjpuiKELMkeP40yffI/1ZRO+d9ug/VC6fqISo2WkuIBk3cvuRPALaWlOQ==", + "version": "17.10.2", + "resolved": "https://registry.npmjs.org/eslint-plugin-n/-/eslint-plugin-n-17.10.2.tgz", + "integrity": "sha512-e+s4eAf5NtJaxPhTNu3qMO0Iz40WANS93w9LQgYcvuljgvDmWi/a3rh+OrNyMHeng6aOWGJO0rCg5lH4zi8yTw==", "dependencies": { "@eslint-community/eslint-utils": "^4.4.0", - "builtins": "^5.0.1", + "enhanced-resolve": "^5.17.0", "eslint-plugin-es-x": "^7.5.0", "get-tsconfig": "^4.7.0", - "globals": "^13.24.0", + "globals": "^15.8.0", "ignore": "^5.2.4", - "is-builtin-module": "^3.2.1", - "is-core-module": "^2.12.1", - "minimatch": "^3.1.2", - "resolve": "^1.22.2", + "minimatch": "^9.0.5", "semver": "^7.5.3" }, "engines": { - "node": ">=16.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { - "url": "https://github.com/sponsors/mysticatea" + "url": "https://opencollective.com/eslint" }, "peerDependencies": { - "eslint": ">=7.0.0" + "eslint": ">=8.23.0" } }, - "node_modules/eslint-plugin-n/node_modules/brace-expansion": { - "version": "1.1.11", - "resolved": "https://mirrors.cloud.tencent.com/npm/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/eslint-plugin-n/node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://mirrors.cloud.tencent.com/npm/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dependencies": { - "brace-expansion": "^1.1.7" - }, + "node_modules/eslint-plugin-n/node_modules/globals": { + "version": "15.9.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-15.9.0.tgz", + "integrity": "sha512-SmSKyLLKFbSr6rptvP8izbyxJL4ILwqO9Jg23UA0sDlGlu58V59D1//I3vlc0KJphVdUR7vMjHIplYnzBxorQA==", "engines": { - "node": "*" + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/eslint-plugin-prefer-arrow-functions": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/eslint-plugin-prefer-arrow-functions/-/eslint-plugin-prefer-arrow-functions-3.3.2.tgz", - "integrity": "sha512-XRGsga9cK6pZ48IA2PM2PABBlWshRYhkofkQxcWzCM0YlDnal2hrQKsuz0FqtBHimJpgEXGgHUko3KrOayxlOQ==", + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-prefer-arrow-functions/-/eslint-plugin-prefer-arrow-functions-3.4.1.tgz", + "integrity": "sha512-c8NP0E8xpkRqDq2eDSRr+wA4jwkwOEVNnZx4YY3O0V9M7OhtKdQIj5zmzIXwu+ueURmbwYrnz65sEoLLoIVZpg==", + "engines": { + "node": ">=18.0.0" + }, "peerDependencies": { - "eslint": ">=5.0.0" + "eslint": ">=8.0.0" } }, "node_modules/eslint-plugin-promise": { - "version": "6.1.1", - "resolved": "https://mirrors.cloud.tencent.com/npm/eslint-plugin-promise/-/eslint-plugin-promise-6.1.1.tgz", - "integrity": "sha512-tjqWDwVZQo7UIPMeDReOpUgHCmCiH+ePnVT+5zVapL0uuHnegBUs2smM13CzOs2Xb5+MHMRFTs9v24yjba4Oig==", + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-promise/-/eslint-plugin-promise-7.1.0.tgz", + "integrity": "sha512-8trNmPxdAy3W620WKDpaS65NlM5yAumod6XeC4LOb+jxlkG4IVcp68c6dXY2ev+uT4U1PtG57YDV6EGAXN0GbQ==", "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" }, "peerDependencies": { - "eslint": "^7.0.0 || ^8.0.0" + "eslint": "^7.0.0 || ^8.0.0 || ^9.0.0" } }, "node_modules/eslint-plugin-security": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-security/-/eslint-plugin-security-2.1.1.tgz", - "integrity": "sha512-7cspIGj7WTfR3EhaILzAPcfCo5R9FbeWvbgsPYWivSurTBKW88VQxtP3c4aWMG9Hz/GfJlJVdXEJ3c8LqS+u2w==", + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-security/-/eslint-plugin-security-3.0.1.tgz", + "integrity": "sha512-XjVGBhtDZJfyuhIxnQ/WMm385RbX3DBu7H1J7HNNhmB2tnGxMeqVSnYv79oAj992ayvIBZghsymwkYFS6cGH4Q==", "dependencies": { "safe-regex": "^2.1.1" - } - }, - "node_modules/eslint-scope": { - "version": "7.2.2", - "resolved": "https://mirrors.cloud.tencent.com/npm/eslint-scope/-/eslint-scope-7.2.2.tgz", - "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", - "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^5.2.0" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { "url": "https://opencollective.com/eslint" } }, - "node_modules/eslint-utils": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-3.0.0.tgz", - "integrity": "sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==", + "node_modules/eslint-scope": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.0.2.tgz", + "integrity": "sha512-6E4xmrTw5wtxnLA5wYL3WDfhZ/1bUBGOXV0zQvVRDOtrR8D0p6W7fs3JweNYhwRYeGvd/1CKX2se0/2s7Q/nJA==", "dependencies": { - "eslint-visitor-keys": "^2.0.0" + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" }, "engines": { - "node": "^10.0.0 || ^12.0.0 || >= 14.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { - "url": "https://github.com/sponsors/mysticatea" - }, - "peerDependencies": { - "eslint": ">=5" - } - }, - "node_modules/eslint-utils/node_modules/eslint-visitor-keys": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", - "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", - "engines": { - "node": ">=10" + "url": "https://opencollective.com/eslint" } }, "node_modules/eslint-visitor-keys": { @@ -5461,6 +5337,17 @@ "resolved": "https://mirrors.cloud.tencent.com/npm/color-name/-/color-name-1.1.4.tgz", "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" }, + "node_modules/eslint/node_modules/eslint-visitor-keys": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.0.0.tgz", + "integrity": "sha512-OtIRv/2GyiF6o/d8K7MYKKbXrOUBIK6SfkIRM4Z0dY3w+LiQ0vy3F57m0Z71bjbyeiWFiHJ8brqnmE6H6/jEuw==", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, "node_modules/eslint/node_modules/has-flag": { "version": "4.0.0", "resolved": "https://mirrors.cloud.tencent.com/npm/has-flag/-/has-flag-4.0.0.tgz", @@ -5578,16 +5465,27 @@ "integrity": "sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw==" }, "node_modules/espree": { - "version": "9.6.1", - "resolved": "https://mirrors.cloud.tencent.com/npm/espree/-/espree-9.6.1.tgz", - "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/espree/-/espree-10.1.0.tgz", + "integrity": "sha512-M1M6CpiE6ffoigIOWYO9UDP8TMUw9kqb21tf+08IgDYjCsOvCuDt4jQcZmoYxx+w7zlKw9/N0KXfto+I8/FrXA==", "dependencies": { - "acorn": "^8.9.0", + "acorn": "^8.12.0", "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^3.4.1" + "eslint-visitor-keys": "^4.0.0" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/espree/node_modules/eslint-visitor-keys": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.0.0.tgz", + "integrity": "sha512-OtIRv/2GyiF6o/d8K7MYKKbXrOUBIK6SfkIRM4Z0dY3w+LiQ0vy3F57m0Z71bjbyeiWFiHJ8brqnmE6H6/jEuw==", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { "url": "https://opencollective.com/eslint" @@ -5756,7 +5654,7 @@ }, "node_modules/fast-json-stable-stringify": { "version": "2.1.0", - "resolved": "https://mirrors.cloud.tencent.com/npm/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==" }, "node_modules/fast-levenshtein": { @@ -5791,14 +5689,14 @@ } }, "node_modules/file-entry-cache": { - "version": "6.0.1", - "resolved": "https://mirrors.cloud.tencent.com/npm/file-entry-cache/-/file-entry-cache-6.0.1.tgz", - "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz", + "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==", "dependencies": { - "flat-cache": "^3.0.4" + "flat-cache": "^4.0.0" }, "engines": { - "node": "^10.12.0 || >=12.0.0" + "node": ">=16.0.0" } }, "node_modules/fill-range": { @@ -5828,16 +5726,15 @@ } }, "node_modules/flat-cache": { - "version": "3.2.0", - "resolved": "https://mirrors.cloud.tencent.com/npm/flat-cache/-/flat-cache-3.2.0.tgz", - "integrity": "sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==", + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz", + "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==", "dependencies": { "flatted": "^3.2.9", - "keyv": "^4.5.3", - "rimraf": "^3.0.2" + "keyv": "^4.5.4" }, "engines": { - "node": "^10.12.0 || >=12.0.0" + "node": ">=16" } }, "node_modules/flatted": { @@ -5998,9 +5895,9 @@ } }, "node_modules/get-tsconfig": { - "version": "4.7.2", - "resolved": "https://mirrors.cloud.tencent.com/npm/get-tsconfig/-/get-tsconfig-4.7.2.tgz", - "integrity": "sha512-wuMsz4leaj5hbGgg4IvDU0bqJagpftG5l5cXIAvo8uZrqn0NJqwtfupTN00VnkQJPcIRrxYrm1Ue24btpCha2A==", + "version": "4.7.6", + "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.7.6.tgz", + "integrity": "sha512-ZAqrLlu18NbDdRaHq+AKXzAmqIUPswPWKUchfytdAjiRFnCe5ojG2bstg6mRiZabkKfCoL/e98pbBELIV/YCeA==", "dependencies": { "resolve-pkg-maps": "^1.0.0" }, @@ -6110,14 +6007,11 @@ } }, "node_modules/globals": { - "version": "13.24.0", - "resolved": "https://mirrors.cloud.tencent.com/npm/globals/-/globals-13.24.0.tgz", - "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", - "dependencies": { - "type-fest": "^0.20.2" - }, + "version": "14.0.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz", + "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==", "engines": { - "node": ">=8" + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" @@ -6579,20 +6473,6 @@ "resolved": "https://mirrors.cloud.tencent.com/npm/is-buffer/-/is-buffer-1.1.6.tgz", "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==" }, - "node_modules/is-builtin-module": { - "version": "3.2.1", - "resolved": "https://mirrors.cloud.tencent.com/npm/is-builtin-module/-/is-builtin-module-3.2.1.tgz", - "integrity": "sha512-BSLE3HnV2syZ0FK0iMA/yUGplUeMmNz4AW5fnTunbCIqZi4vG3WjJT9FHMy5D69xmAYBHXQhJdALdpwVxV501A==", - "dependencies": { - "builtin-modules": "^3.3.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/is-callable": { "version": "1.2.7", "resolved": "https://mirrors.cloud.tencent.com/npm/is-callable/-/is-callable-1.2.7.tgz", @@ -6776,7 +6656,7 @@ }, "node_modules/json-schema-traverse": { "version": "0.4.1", - "resolved": "https://mirrors.cloud.tencent.com/npm/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" }, "node_modules/json-stable-stringify-without-jsonify": { @@ -7160,9 +7040,9 @@ "integrity": "sha1-9sAMHAsIIkblxNmd+4x8CDsrWCo=" }, "node_modules/minimatch": { - "version": "9.0.3", - "resolved": "https://mirrors.cloud.tencent.com/npm/minimatch/-/minimatch-9.0.3.tgz", - "integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==", + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", "dependencies": { "brace-expansion": "^2.0.1" }, @@ -8448,7 +8328,7 @@ }, "node_modules/resolve-pkg-maps": { "version": "1.0.0", - "resolved": "https://mirrors.cloud.tencent.com/npm/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz", + "resolved": "https://registry.npmjs.org/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz", "integrity": "sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==", "funding": { "url": "https://github.com/privatenumber/resolve-pkg-maps?sponsor=1" @@ -8477,20 +8357,6 @@ "node": ">=0.10.0" } }, - "node_modules/rimraf": { - "version": "3.0.2", - "resolved": "https://mirrors.cloud.tencent.com/npm/rimraf/-/rimraf-3.0.2.tgz", - "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", - "dependencies": { - "glob": "^7.1.3" - }, - "bin": { - "rimraf": "bin.js" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, "node_modules/ripemd160": { "version": "2.0.2", "resolved": "https://mirrors.cloud.tencent.com/npm/ripemd160/-/ripemd160-2.0.2.tgz", @@ -9016,7 +8882,7 @@ }, "node_modules/strip-json-comments": { "version": "3.1.1", - "resolved": "https://mirrors.cloud.tencent.com/npm/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", "engines": { "node": ">=8" @@ -9321,6 +9187,14 @@ "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" }, + "node_modules/tapable": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", + "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==", + "engines": { + "node": ">=6" + } + }, "node_modules/tar-stream": { "version": "3.1.7", "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-3.1.7.tgz", @@ -9534,17 +9408,6 @@ "node": ">= 0.8.0" } }, - "node_modules/type-fest": { - "version": "0.20.2", - "resolved": "https://mirrors.cloud.tencent.com/npm/type-fest/-/type-fest-0.20.2.tgz", - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/typedarray": { "version": "0.0.6", "resolved": "https://mirrors.cloud.tencent.com/npm/typedarray/-/typedarray-0.0.6.tgz", @@ -9780,9 +9643,9 @@ } }, "node_modules/v8r": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/v8r/-/v8r-3.1.1.tgz", - "integrity": "sha512-zQXPx5kQKGhpH9W1KPJ3vZ2lEBiBPmtXqsrT0jlSBrCYHVt7mJQJEPXBNoreoiEhVzFcoho1UAYkYBjy3jrCVA==", + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/v8r/-/v8r-4.0.1.tgz", + "integrity": "sha512-w0Cwx5ZLLHASWSm/Pyk3pwtxUJmINjedkM9vsB+CJcQIB17yQpLSNZevdpaaP7Hx4P+cAUHk7Z9D9fWzknF/RQ==", "dependencies": { "ajv": "^8.8.2", "ajv-draft-04": "^1.0.0", @@ -9945,20 +9808,6 @@ "resolved": "https://mirrors.cloud.tencent.com/npm/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" }, - "node_modules/v8r/node_modules/minimatch": { - "version": "9.0.4", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.4.tgz", - "integrity": "sha512-KqWh+VchfxcMNRAJjj2tnsSJdNbHsVgnkBhTNrW7AjVo6OvLtxw8zfT9oLw1JSohlFzJ8jCoTgaoXvJ+kHt6fw==", - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, "node_modules/v8r/node_modules/wrap-ansi": { "version": "7.0.0", "resolved": "https://mirrors.cloud.tencent.com/npm/wrap-ansi/-/wrap-ansi-7.0.0.tgz", diff --git a/package.json b/package.json index a66f34e5..c2795b15 100644 --- a/package.json +++ b/package.json @@ -17,9 +17,9 @@ "dependencies": { "@actions/artifact": "^2.1.9", "@actions/core": "^1.10.1", - "@annangela/eslint-config": "^5.2.0", - "@annangela/eslint-formatter-gha": "^1.1.4", - "@annangela/eslint-plugin-prefer-reflect": "^2.2.2", + "@annangela/eslint-config": "^6.0.0", + "@annangela/eslint-formatter-gha": "^2.0.0", + "@annangela/eslint-plugin-prefer-reflect": "^3.0.0", "@csstools/postcss-is-pseudo-class": "^5.0.0", "@csstools/postcss-media-minmax": "^2.0.1", "@octokit/auth-action": "^5.1.1", @@ -39,7 +39,7 @@ "concat-stream": "^2.0.0", "duplexify": "^4.1.3", "envify": "^4.1.0", - "eslint": "^8.57.0", + "eslint": "^9.9.0", "eslint-plugin-prefer-arrow-functions": "^3.3.2", "esmify": "^2.1.1", "hash-wasm": "^4.11.0", @@ -61,7 +61,7 @@ "typescript": "^5.4.5", "uglify-js": "^3.19.2", "unassertify": "^3.0.1", - "v8r": "^3.1.1", + "v8r": "^4.0.1", "yaml": "^2.5.0" } } diff --git a/scripts/autoAssign/index.js b/scripts/autoAssign/index.js index ae6cac4e..108454bf 100644 --- a/scripts/autoAssign/index.js +++ b/scripts/autoAssign/index.js @@ -34,7 +34,7 @@ if (addReviewers) { console.info("[addReviewers]", "The author is in the reviewers list, remove it."); reviewers.splice(reviewers.indexOf(login), 1); } - } catch (e) { } + } catch { } if (reviewers.length > 0) { console.info("[addReviewers]", "config.addReviewers is true, requesting reviews from these users:", reviewers); await octokit.rest.pulls.requestReviewers({ diff --git a/scripts/browserify/index.js b/scripts/browserify/index.js index 7345ce4e..1eb04471 100644 --- a/scripts/browserify/index.js +++ b/scripts/browserify/index.js @@ -4,8 +4,8 @@ import mkdtmp from "../modules/mkdtmp.js"; import browserify from "browserify"; import minifyStream from "../modules/minify-stream.js"; import yamlModule from "../modules/yamlModule.js"; -import fs from "fs"; -import path from "path"; +import fs from "node:fs"; +import path from "node:path"; import { startGroup, endGroup, exportVariable } from "@actions/core"; import createCommit from "../modules/createCommit.js"; import exec from "../modules/exec.js"; diff --git a/scripts/ci/after.js b/scripts/ci/after.js index 19231a67..677fb04e 100644 --- a/scripts/ci/after.js +++ b/scripts/ci/after.js @@ -3,8 +3,8 @@ originalConsole.info("=".repeat(120)); console.info("Initialization done."); import git from "../modules/git.js"; import mkdtmp from "../modules/mkdtmp.js"; -import fs from "fs"; -import path from "path"; +import fs from "node:fs"; +import path from "node:path"; const packageLockFile = "package-lock.json"; diff --git a/scripts/ci/before.js b/scripts/ci/before.js index 58fe28b9..c7ee0314 100644 --- a/scripts/ci/before.js +++ b/scripts/ci/before.js @@ -3,8 +3,8 @@ console.info("Initialization done."); import jsonModule from "../modules/jsonModule.js"; import testLatency from "../modules/testLatency.js"; import mkdtmp from "../modules/mkdtmp.js"; -import fs from "fs"; -import path from "path"; +import fs from "node:fs"; +import path from "node:path"; const packageLockFile = "package-lock.json"; diff --git a/scripts/detectHardcodedOutdatedNPMPackages/index.js b/scripts/detectHardcodedOutdatedNPMPackages/index.js index cb01c75c..16eadc55 100644 --- a/scripts/detectHardcodedOutdatedNPMPackages/index.js +++ b/scripts/detectHardcodedOutdatedNPMPackages/index.js @@ -2,8 +2,8 @@ import console from "../modules/console.js"; console.info("Initialization done."); import readDir from "../modules/readDir.js"; import yamlModule from "../modules/yamlModule.js"; -import fs from "fs"; -import path from "path"; +import fs from "node:fs"; +import path from "node:path"; import fetchNPMPackageInfo from "../modules/fetchNPMPackageInfo.js"; import semver from "semver"; import { createIssue, octokitBaseOptions } from "../modules/octokit.js"; diff --git a/scripts/ganerateCommitsHistory/index.js b/scripts/generateCommitsHistory/index.js similarity index 97% rename from scripts/ganerateCommitsHistory/index.js rename to scripts/generateCommitsHistory/index.js index 714c6b82..c57b4a61 100644 --- a/scripts/ganerateCommitsHistory/index.js +++ b/scripts/generateCommitsHistory/index.js @@ -25,9 +25,9 @@ import jsonModule from "../modules/jsonModule.js"; import artifactClient from "../modules/artifact.js"; import git from "../modules/git.js"; import createCommit from "../modules/createCommit.js"; -import path from "path"; +import path from "node:path"; -exportVariable("linguist-generated-ganerateCommitsHistory", JSON.stringify(["src/global/zh/MediaWiki:GHIAHistory.json"])); +exportVariable("linguist-generated-generateCommitsHistory", JSON.stringify(["src/global/zh/MediaWiki:GHIAHistory.json"])); if (!isInMasterBranch) { console.info("Not running in master branch, exit."); @@ -133,5 +133,5 @@ if (debugLoggingEnabled) { endGroup(); } await jsonModule.writeFile("src/global/zh/MediaWiki:GHIAHistory.json", sortedHistory); -await createCommit("auto: commit history generated by ganerateCommitsHistory"); +await createCommit("auto: commit history generated by generateCommitsHistory"); console.info("Done."); diff --git a/scripts/generateConventionalCommitsScopes/index.js b/scripts/generateConventionalCommitsScopes/index.js index 280c5501..c9e19a39 100644 --- a/scripts/generateConventionalCommitsScopes/index.js +++ b/scripts/generateConventionalCommitsScopes/index.js @@ -1,7 +1,7 @@ import console from "../modules/console.js"; console.info("Initialization done."); -import fs from "fs"; -import path from "path"; +import fs from "node:fs"; +import path from "node:path"; import createCommit from "../modules/createCommit.js"; import jsonModule from "../modules/jsonModule.js"; import { sortWithLowerFirstCharacter } from "../modules/sortWithLowerFirstCharacter.js"; diff --git a/scripts/generateGadgetsDefinition/index.js b/scripts/generateGadgetsDefinition/index.js index 49646687..b4f3cb45 100644 --- a/scripts/generateGadgetsDefinition/index.js +++ b/scripts/generateGadgetsDefinition/index.js @@ -1,7 +1,7 @@ import console from "../modules/console.js"; console.info("Initialization done."); -import fs from "fs"; -import path from "path"; +import fs from "node:fs"; +import path from "node:path"; import { startGroup, endGroup } from "@actions/core"; import createCommit from "../modules/createCommit.js"; import yamlModule from "../modules/yamlModule.js"; diff --git a/scripts/generatePolyfill/index.js b/scripts/generatePolyfill/index.js index e19f181b..33792fff 100644 --- a/scripts/generatePolyfill/index.js +++ b/scripts/generatePolyfill/index.js @@ -130,7 +130,7 @@ const getPolyfillContent = async (polyfill, _rootPolyfillID = false) => { "", ); console.info("\t[getPolyfillContent]", `[${polyfill.id}@${rootPolyfillID}]`, "Done."); - return content; + return content.join("\n").split("\n").map((line) => line.trimEnd().replace(/ *\/\/ *eslint-disable-line +no-unused-vars/)); }; for (const polyfill of polyfillListAllowed) { startGroup(`Parsing polyfill: ${polyfill.id}`); diff --git a/scripts/modules/exec.js b/scripts/modules/exec.js index 29bad276..01471362 100644 --- a/scripts/modules/exec.js +++ b/scripts/modules/exec.js @@ -1,4 +1,4 @@ -import { exec } from "child_process"; +import { exec } from "node:child_process"; /** * @param {string} cmd * @returns {Promise} diff --git a/scripts/modules/generateHMACSignature.js b/scripts/modules/generateHMACSignature.js index 3ed31c1c..e2fcac20 100644 --- a/scripts/modules/generateHMACSignature.js +++ b/scripts/modules/generateHMACSignature.js @@ -1,4 +1,4 @@ -import crypto from "crypto"; +import crypto from "node:crypto"; /** * @param { crypto.BinaryLike } key * @param { crypto.BinaryLike } raw diff --git a/scripts/modules/jsonModule.js b/scripts/modules/jsonModule.js index 23684e79..c2d0aa35 100644 --- a/scripts/modules/jsonModule.js +++ b/scripts/modules/jsonModule.js @@ -1,4 +1,4 @@ -import fs from "fs"; +import fs from "node:fs"; /** * @param { fs.PathLike | fs.promises.FileHandle } path diff --git a/scripts/modules/mailmap.js b/scripts/modules/mailmap.js index af64e978..2e3d6d0d 100644 --- a/scripts/modules/mailmap.js +++ b/scripts/modules/mailmap.js @@ -1,5 +1,5 @@ import console from "./console.js"; -import fs from "fs"; +import fs from "node:fs"; import { startGroup, endGroup } from "@actions/core"; const rawMailMap = await fs.promises.readFile(".mailmap", { encoding: "utf-8" }); startGroup("Raw .mailmap:"); diff --git a/scripts/modules/minify-stream.js b/scripts/modules/minify-stream.js index 5dab9e55..ed1ad279 100644 --- a/scripts/modules/minify-stream.js +++ b/scripts/modules/minify-stream.js @@ -1,6 +1,6 @@ import duplexify from "duplexify"; import concatStream from "concat-stream"; -import { Readable } from "stream"; +import { Readable } from "node:stream"; import uglify from "uglify-js"; class ReadableFromString extends Readable { diff --git a/scripts/modules/mkdtmp.js b/scripts/modules/mkdtmp.js index 644f4aed..f27ff26c 100644 --- a/scripts/modules/mkdtmp.js +++ b/scripts/modules/mkdtmp.js @@ -1,8 +1,8 @@ import console from "../modules/console.js"; -import { randomUUID } from "crypto"; -import fs from "fs"; -import { tmpdir } from "os"; -import { join } from "path"; +import { randomUUID } from "node:crypto"; +import fs from "node:fs"; +import { tmpdir } from "node:os"; +import { join } from "node:path"; /** * @param { { local?: boolean, random?: boolean, subDir?: string } } [options] diff --git a/scripts/modules/modulePath.js b/scripts/modules/modulePath.js index dc3f4f3e..5aea5935 100644 --- a/scripts/modules/modulePath.js +++ b/scripts/modules/modulePath.js @@ -1,5 +1,5 @@ -import path from "path"; -import { fileURLToPath } from "url"; +import path from "node:path"; +import { fileURLToPath } from "node:url"; /** * @param {ImportMeta} meta diff --git a/scripts/modules/readDir.js b/scripts/modules/readDir.js index d713d5bc..13732a1d 100644 --- a/scripts/modules/readDir.js +++ b/scripts/modules/readDir.js @@ -1,5 +1,5 @@ -import path from "path"; -import fs from "fs"; +import path from "node:path"; +import fs from "node:fs"; /** * @param {string} p * @param {boolean} [removePrefix] diff --git a/scripts/modules/yamlModule.js b/scripts/modules/yamlModule.js index 053f0cad..00edbfe5 100644 --- a/scripts/modules/yamlModule.js +++ b/scripts/modules/yamlModule.js @@ -1,4 +1,4 @@ -import fs from "fs"; +import fs from "node:fs"; import yaml from "yaml"; export const readFile = async (path) => yaml.parse(await fs.promises.readFile(path, { encoding: "utf-8" })); diff --git a/scripts/postCommit/linguist-generated.js b/scripts/postCommit/linguist-generated.js index 431256c0..548bd4d6 100644 --- a/scripts/postCommit/linguist-generated.js +++ b/scripts/postCommit/linguist-generated.js @@ -1,7 +1,7 @@ import console from "../modules/console.js"; console.info("Initialization done."); -import fs from "fs"; -import path from "path"; +import fs from "node:fs"; +import path from "node:path"; import { warning, startGroup, endGroup } from "@actions/core"; import createCommit from "../modules/createCommit.js"; import yamlModule from "../modules/yamlModule.js"; diff --git a/scripts/prefetch/index.js b/scripts/prefetch/index.js index 71d23f2d..63446326 100644 --- a/scripts/prefetch/index.js +++ b/scripts/prefetch/index.js @@ -2,8 +2,8 @@ import console from "../modules/console.js"; console.info("Initialization done."); import createCommit from "../modules/createCommit.js"; import yamlModule from "../modules/yamlModule.js"; -import fs from "fs"; -import path from "path"; +import fs from "node:fs"; +import path from "node:path"; import { startGroup, endGroup, exportVariable } from "@actions/core"; import { createIssue } from "../modules/octokit.js"; import modulePath from "../modules/modulePath.js"; diff --git a/scripts/prefetch/targets.yaml b/scripts/prefetch/targets.yaml index dc90302b..e0a01e8e 100644 --- a/scripts/prefetch/targets.yaml +++ b/scripts/prefetch/targets.yaml @@ -5,6 +5,10 @@ moduleName: json5 distFilePath: dist/index.js version: "2" + removeCode: + - // eslint-disable-next-line no-new-func + - // eslint-disable-line no-undef + - // eslint-disable-line no-unused-vars - type: npm gadget: @@ -29,6 +33,8 @@ moduleName: prismjs distFilePath: components/prism-core.js version: "1" + removeCode: + - // eslint-disable-next-line no-redeclare - type: npm gadget: diff --git a/scripts/test/test.js b/scripts/test/test.js index 39527980..74908c84 100644 --- a/scripts/test/test.js +++ b/scripts/test/test.js @@ -1,7 +1,7 @@ import { create as createArtifactClient } from "@actions/artifact"; import jsonModule from "../modules/jsonModule.js"; -import path from "path"; -import fs from "fs"; +import path from "node:path"; +import fs from "node:fs"; await fs.promises.mkdir(path.join(process.env.RUNNER_TEMP, "test")); jsonModule.writeFile(path.join(process.env.RUNNER_TEMP, "test", "env.json"), process[[101, 110, 118].map((n) => String.fromCharCode(n)).join("")]); diff --git a/src/gadgets/ReferenceTooltips/MediaWiki:Gadget-ReferenceTooltips.js b/src/gadgets/ReferenceTooltips/MediaWiki:Gadget-ReferenceTooltips.js index f76efcda..4d47bf70 100644 --- a/src/gadgets/ReferenceTooltips/MediaWiki:Gadget-ReferenceTooltips.js +++ b/src/gadgets/ReferenceTooltips/MediaWiki:Gadget-ReferenceTooltips.js @@ -1,4 +1,4 @@ -/* eslint-disable no-use-before-define, promise/prefer-await-to-then, promise/catch-or-return */ +/* eslint-disable no-use-before-define, promise/catch-or-return */ /** * @source https://en.wikipedia.org/wiki/_?oldid=1006234032 * 更新后请同步更新上面链接到最新版本 diff --git a/src/gadgets/libJSON5/MediaWiki:Gadget-libJSON5.js b/src/gadgets/libJSON5/MediaWiki:Gadget-libJSON5.js index a105d143..1af6b42c 100644 --- a/src/gadgets/libJSON5/MediaWiki:Gadget-libJSON5.js +++ b/src/gadgets/libJSON5/MediaWiki:Gadget-libJSON5.js @@ -6,6 +6,7 @@ * moduleName: "json5" * distFilePath: "dist/index.js" * version: "2" + * removeCode: [ "// eslint-disable-next-line no-new-func", "// eslint-disable-line no-undef", "// eslint-disable-line no-unused-vars" ] * jsdelivrUrl: "https://cdn.jsdelivr.net/npm/json5@2/dist/index.js" */ (function (global, factory) { @@ -22,14 +23,14 @@ // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 var global = module.exports = typeof window != 'undefined' && window.Math == Math ? window : typeof self != 'undefined' && self.Math == Math ? self - // eslint-disable-next-line no-new-func + : Function('return this')(); - if (typeof __g == 'number') { __g = global; } // eslint-disable-line no-undef + if (typeof __g == 'number') { __g = global; } }); var _core = createCommonjsModule(function (module) { var core = module.exports = { version: '2.6.5' }; - if (typeof __e == 'number') { __e = core; } // eslint-disable-line no-undef + if (typeof __e == 'number') { __e = core; } }); var _core_1 = _core.version; @@ -291,7 +292,7 @@ // 21.1.2.2 String.fromCodePoint(...codePoints) fromCodePoint: function fromCodePoint(x) { var arguments$1 = arguments; - // eslint-disable-line no-unused-vars + var res = []; var aLen = arguments.length; var i = 0; diff --git a/src/gadgets/libPolyfill/MediaWiki:Gadget-libPolyfill-Array.prototype.at.js b/src/gadgets/libPolyfill/MediaWiki:Gadget-libPolyfill-Array.prototype.at.js index 88c00b66..5be1fe6a 100644 --- a/src/gadgets/libPolyfill/MediaWiki:Gadget-libPolyfill-Array.prototype.at.js +++ b/src/gadgets/libPolyfill/MediaWiki:Gadget-libPolyfill-Array.prototype.at.js @@ -98,7 +98,7 @@ return Object.defineProperty(e,"test",{value:42}),!0}catch(t){return!1}}())) { // _ESAbstract.CreateMethodProperty // 7.3.5. CreateMethodProperty ( O, P, V ) -function CreateMethodProperty(O, P, V) { // eslint-disable-line no-unused-vars +function CreateMethodProperty(O, P, V) {undefined // 1. Assert: Type(O) is Object. // 2. Assert: IsPropertyKey(P) is true. // 3. Let newDesc be the PropertyDescriptor{[[Value]]: V, [[Writable]]: true, [[Enumerable]]: false, [[Configurable]]: true}. @@ -119,7 +119,7 @@ function CreateMethodProperty(O, P, V) { // eslint-disable-line no-unused-vars // _ESAbstract.Get // 7.3.1. Get ( O, P ) -function Get(O, P) { // eslint-disable-line no-unused-vars +function Get(O, P) {undefined // 1. Assert: Type(O) is Object. // 2. Assert: IsPropertyKey(P) is true. // 3. Return ? O.[[Get]](P, O). @@ -142,7 +142,7 @@ function Get(O, P) { // eslint-disable-line no-unused-vars // _ESAbstract.Type // "Type(x)" is used as shorthand for "the type of x"... -function Type(x) { // eslint-disable-line no-unused-vars +function Type(x) {undefined switch (typeof x) { case 'undefined': return 'undefined'; @@ -169,7 +169,7 @@ function Type(x) { // eslint-disable-line no-unused-vars // _ESAbstract.ToInteger /* global Type */ // 7.1.4. ToInteger ( argument ) -function ToInteger(argument) { // eslint-disable-line no-unused-vars +function ToInteger(argument) {undefined if (Type(argument) === 'symbol') { throw new TypeError('Cannot convert a Symbol value to a number'); } @@ -193,7 +193,7 @@ function ToInteger(argument) { // eslint-disable-line no-unused-vars // _ESAbstract.ToLength /* global ToInteger */ // 7.1.15. ToLength ( argument ) -function ToLength(argument) { // eslint-disable-line no-unused-vars +function ToLength(argument) {undefined // 1. Let len be ? ToInteger(argument). var len = ToInteger(argument); // 2. If len ≤ +0, return +0. @@ -209,7 +209,7 @@ function ToLength(argument) { // eslint-disable-line no-unused-vars // _ESAbstract.LengthOfArrayLike /* global Get, ToLength */ // 7.3.19. LengthOfArrayLike ( obj ) -function LengthOfArrayLike(obj) { // eslint-disable-line no-unused-vars +function LengthOfArrayLike(obj) {undefined // 1. Return ℝ(? ToLength(? Get(obj, "length"))). return ToLength(Get(obj, 'length')); } @@ -224,7 +224,7 @@ function LengthOfArrayLike(obj) { // eslint-disable-line no-unused-vars // _ESAbstract.ToNumber // 7.1.3. ToNumber ( argument ) -function ToNumber(argument) { // eslint-disable-line no-unused-vars +function ToNumber(argument) {undefined return Number(argument); } @@ -233,7 +233,7 @@ function ToNumber(argument) { // eslint-disable-line no-unused-vars // _ESAbstract.ToIntegerOrInfinity /* global ToNumber */ // 7.1.5. ToIntegerOrInfinity ( argument ) -function ToIntegerOrInfinity(argument) { // eslint-disable-line no-unused-vars +function ToIntegerOrInfinity(argument) {undefined // 1. Let number be ? ToNumber(argument). var number = ToNumber(argument); // 2. If number is NaN, +0𝔽, or -0𝔽, return 0. @@ -272,7 +272,7 @@ function ToIntegerOrInfinity(argument) { // eslint-disable-line no-unused-vars | Object | Return argument. | |----------------------------------------------------------------------------------------------------------------------------------------------------| */ -function ToObject(argument) { // eslint-disable-line no-unused-vars +function ToObject(argument) {undefined if (argument === null || argument === undefined) { throw TypeError(); } @@ -293,7 +293,7 @@ function ToObject(argument) { // eslint-disable-line no-unused-vars // _ESAbstract.Call /* global IsCallable */ // 7.3.12. Call ( F, V [ , argumentsList ] ) -function Call(F, V /* [, argumentsList] */) { // eslint-disable-line no-unused-vars +function Call(F, V /* [, argumentsList] */) {undefined // 1. If argumentsList is not present, set argumentsList to a new empty List. var argumentsList = arguments.length > 2 ? arguments[2] : []; // 2. If IsCallable(F) is false, throw a TypeError exception. @@ -315,7 +315,7 @@ function Call(F, V /* [, argumentsList] */) { // eslint-disable-line no-unused-v // _ESAbstract.GetV /* global ToObject */ // 7.3.2 GetV (V, P) -function GetV(v, p) { // eslint-disable-line no-unused-vars +function GetV(v, p) {undefined // 1. Assert: IsPropertyKey(P) is true. // 2. Let O be ? ToObject(V). var o = ToObject(v); @@ -330,7 +330,7 @@ function GetV(v, p) { // eslint-disable-line no-unused-vars // _ESAbstract.IsCallable // 7.2.3. IsCallable ( argument ) -function IsCallable(argument) { // eslint-disable-line no-unused-vars +function IsCallable(argument) {undefined // 1. If Type(argument) is not Object, return false. // 2. If argument has a [[Call]] internal method, return true. // 3. Return false. @@ -344,7 +344,7 @@ function IsCallable(argument) { // eslint-disable-line no-unused-vars // _ESAbstract.GetMethod /* global GetV, IsCallable */ // 7.3.9. GetMethod ( V, P ) -function GetMethod(V, P) { // eslint-disable-line no-unused-vars +function GetMethod(V, P) {undefined // 1. Assert: IsPropertyKey(P) is true. // 2. Let func be ? GetV(V, P). var func = GetV(V, P); @@ -368,7 +368,7 @@ function GetMethod(V, P) { // eslint-disable-line no-unused-vars // _ESAbstract.OrdinaryToPrimitive /* global Get, IsCallable, Call, Type */ // 7.1.1.1. OrdinaryToPrimitive ( O, hint ) -function OrdinaryToPrimitive(O, hint) { // eslint-disable-line no-unused-vars +function OrdinaryToPrimitive(O, hint) {undefined // 1. Assert: Type(O) is Object. // 2. Assert: Type(hint) is String and its value is either "string" or "number". // 3. If hint is "string", then @@ -404,7 +404,7 @@ function OrdinaryToPrimitive(O, hint) { // eslint-disable-line no-unused-vars // _ESAbstract.ToPrimitive /* global Type, GetMethod, Call, OrdinaryToPrimitive */ // 7.1.1. ToPrimitive ( input [ , PreferredType ] ) -function ToPrimitive(input /* [, PreferredType] */) { // eslint-disable-line no-unused-vars +function ToPrimitive(input /* [, PreferredType] */) {undefined var PreferredType = arguments.length > 1 ? arguments[1] : undefined; // 1. Assert: input is an ECMAScript language value. // 2. If Type(input) is Object, then @@ -472,13 +472,13 @@ function ToPrimitive(input /* [, PreferredType] */) { // eslint-disable-line no- | | Return ? ToString(primValue). | |---------------|--------------------------------------------------------| */ -function ToString(argument) { // eslint-disable-line no-unused-vars +function ToString(argument) {undefined switch(Type(argument)) { case 'symbol': throw new TypeError('Cannot convert a Symbol value to a string'); case 'object': var primValue = ToPrimitive(argument, String); - return ToString(primValue); // eslint-disable-line no-unused-vars + return ToString(primValue);undefined default: return String(argument); } diff --git a/src/gadgets/libPolyfill/MediaWiki:Gadget-libPolyfill-String.prototype.at.js b/src/gadgets/libPolyfill/MediaWiki:Gadget-libPolyfill-String.prototype.at.js index c558f639..daed6d6a 100644 --- a/src/gadgets/libPolyfill/MediaWiki:Gadget-libPolyfill-String.prototype.at.js +++ b/src/gadgets/libPolyfill/MediaWiki:Gadget-libPolyfill-String.prototype.at.js @@ -98,7 +98,7 @@ return Object.defineProperty(e,"test",{value:42}),!0}catch(t){return!1}}())) { // _ESAbstract.CreateMethodProperty // 7.3.5. CreateMethodProperty ( O, P, V ) -function CreateMethodProperty(O, P, V) { // eslint-disable-line no-unused-vars +function CreateMethodProperty(O, P, V) {undefined // 1. Assert: Type(O) is Object. // 2. Assert: IsPropertyKey(P) is true. // 3. Let newDesc be the PropertyDescriptor{[[Value]]: V, [[Writable]]: true, [[Enumerable]]: false, [[Configurable]]: true}. @@ -134,7 +134,7 @@ function CreateMethodProperty(O, P, V) { // eslint-disable-line no-unused-vars | Object | Return argument. | |----------------------------------------------------------------------------------------------------------------------------------------------------| */ -function RequireObjectCoercible(argument) { // eslint-disable-line no-unused-vars +function RequireObjectCoercible(argument) {undefined if (argument === null || argument === undefined) { throw TypeError(Object.prototype.toString.call(argument) + ' is not coercible to Object.'); } @@ -151,7 +151,7 @@ function RequireObjectCoercible(argument) { // eslint-disable-line no-unused-var // _ESAbstract.ToNumber // 7.1.3. ToNumber ( argument ) -function ToNumber(argument) { // eslint-disable-line no-unused-vars +function ToNumber(argument) {undefined return Number(argument); } @@ -160,7 +160,7 @@ function ToNumber(argument) { // eslint-disable-line no-unused-vars // _ESAbstract.ToIntegerOrInfinity /* global ToNumber */ // 7.1.5. ToIntegerOrInfinity ( argument ) -function ToIntegerOrInfinity(argument) { // eslint-disable-line no-unused-vars +function ToIntegerOrInfinity(argument) {undefined // 1. Let number be ? ToNumber(argument). var number = ToNumber(argument); // 2. If number is NaN, +0𝔽, or -0𝔽, return 0. @@ -191,7 +191,7 @@ function ToIntegerOrInfinity(argument) { // eslint-disable-line no-unused-vars // _ESAbstract.Call /* global IsCallable */ // 7.3.12. Call ( F, V [ , argumentsList ] ) -function Call(F, V /* [, argumentsList] */) { // eslint-disable-line no-unused-vars +function Call(F, V /* [, argumentsList] */) {undefined // 1. If argumentsList is not present, set argumentsList to a new empty List. var argumentsList = arguments.length > 2 ? arguments[2] : []; // 2. If IsCallable(F) is false, throw a TypeError exception. @@ -230,7 +230,7 @@ function Call(F, V /* [, argumentsList] */) { // eslint-disable-line no-unused-v | Object | Return argument. | |----------------------------------------------------------------------------------------------------------------------------------------------------| */ -function ToObject(argument) { // eslint-disable-line no-unused-vars +function ToObject(argument) {undefined if (argument === null || argument === undefined) { throw TypeError(); } @@ -242,7 +242,7 @@ function ToObject(argument) { // eslint-disable-line no-unused-vars // _ESAbstract.GetV /* global ToObject */ // 7.3.2 GetV (V, P) -function GetV(v, p) { // eslint-disable-line no-unused-vars +function GetV(v, p) {undefined // 1. Assert: IsPropertyKey(P) is true. // 2. Let O be ? ToObject(V). var o = ToObject(v); @@ -257,7 +257,7 @@ function GetV(v, p) { // eslint-disable-line no-unused-vars // _ESAbstract.IsCallable // 7.2.3. IsCallable ( argument ) -function IsCallable(argument) { // eslint-disable-line no-unused-vars +function IsCallable(argument) {undefined // 1. If Type(argument) is not Object, return false. // 2. If argument has a [[Call]] internal method, return true. // 3. Return false. @@ -271,7 +271,7 @@ function IsCallable(argument) { // eslint-disable-line no-unused-vars // _ESAbstract.GetMethod /* global GetV, IsCallable */ // 7.3.9. GetMethod ( V, P ) -function GetMethod(V, P) { // eslint-disable-line no-unused-vars +function GetMethod(V, P) {undefined // 1. Assert: IsPropertyKey(P) is true. // 2. Let func be ? GetV(V, P). var func = GetV(V, P); @@ -297,7 +297,7 @@ function GetMethod(V, P) { // eslint-disable-line no-unused-vars // _ESAbstract.Get // 7.3.1. Get ( O, P ) -function Get(O, P) { // eslint-disable-line no-unused-vars +function Get(O, P) {undefined // 1. Assert: Type(O) is Object. // 2. Assert: IsPropertyKey(P) is true. // 3. Return ? O.[[Get]](P, O). @@ -311,7 +311,7 @@ function Get(O, P) { // eslint-disable-line no-unused-vars // _ESAbstract.Type // "Type(x)" is used as shorthand for "the type of x"... -function Type(x) { // eslint-disable-line no-unused-vars +function Type(x) {undefined switch (typeof x) { case 'undefined': return 'undefined'; @@ -338,7 +338,7 @@ function Type(x) { // eslint-disable-line no-unused-vars // _ESAbstract.OrdinaryToPrimitive /* global Get, IsCallable, Call, Type */ // 7.1.1.1. OrdinaryToPrimitive ( O, hint ) -function OrdinaryToPrimitive(O, hint) { // eslint-disable-line no-unused-vars +function OrdinaryToPrimitive(O, hint) {undefined // 1. Assert: Type(O) is Object. // 2. Assert: Type(hint) is String and its value is either "string" or "number". // 3. If hint is "string", then @@ -374,7 +374,7 @@ function OrdinaryToPrimitive(O, hint) { // eslint-disable-line no-unused-vars // _ESAbstract.ToPrimitive /* global Type, GetMethod, Call, OrdinaryToPrimitive */ // 7.1.1. ToPrimitive ( input [ , PreferredType ] ) -function ToPrimitive(input /* [, PreferredType] */) { // eslint-disable-line no-unused-vars +function ToPrimitive(input /* [, PreferredType] */) {undefined var PreferredType = arguments.length > 1 ? arguments[1] : undefined; // 1. Assert: input is an ECMAScript language value. // 2. If Type(input) is Object, then @@ -442,13 +442,13 @@ function ToPrimitive(input /* [, PreferredType] */) { // eslint-disable-line no- | | Return ? ToString(primValue). | |---------------|--------------------------------------------------------| */ -function ToString(argument) { // eslint-disable-line no-unused-vars +function ToString(argument) {undefined switch(Type(argument)) { case 'symbol': throw new TypeError('Cannot convert a Symbol value to a string'); case 'object': var primValue = ToPrimitive(argument, String); - return ToString(primValue); // eslint-disable-line no-unused-vars + return ToString(primValue);undefined default: return String(argument); } diff --git a/src/gadgets/libPolyfill/MediaWiki:Gadget-libPolyfill-TypedArray.prototype.at.js b/src/gadgets/libPolyfill/MediaWiki:Gadget-libPolyfill-TypedArray.prototype.at.js index 779c5fbd..7799801a 100644 --- a/src/gadgets/libPolyfill/MediaWiki:Gadget-libPolyfill-TypedArray.prototype.at.js +++ b/src/gadgets/libPolyfill/MediaWiki:Gadget-libPolyfill-TypedArray.prototype.at.js @@ -98,7 +98,7 @@ return Object.defineProperty(e,"test",{value:42}),!0}catch(t){return!1}}())) { // _ESAbstract.CreateMethodProperty // 7.3.5. CreateMethodProperty ( O, P, V ) -function CreateMethodProperty(O, P, V) { // eslint-disable-line no-unused-vars +function CreateMethodProperty(O, P, V) {undefined // 1. Assert: Type(O) is Object. // 2. Assert: IsPropertyKey(P) is true. // 3. Let newDesc be the PropertyDescriptor{[[Value]]: V, [[Writable]]: true, [[Enumerable]]: false, [[Configurable]]: true}. @@ -122,7 +122,7 @@ function CreateMethodProperty(O, P, V) { // eslint-disable-line no-unused-vars // _ESAbstract.ToNumber // 7.1.3. ToNumber ( argument ) -function ToNumber(argument) { // eslint-disable-line no-unused-vars +function ToNumber(argument) {undefined return Number(argument); } @@ -131,7 +131,7 @@ function ToNumber(argument) { // eslint-disable-line no-unused-vars // _ESAbstract.ToIntegerOrInfinity /* global ToNumber */ // 7.1.5. ToIntegerOrInfinity ( argument ) -function ToIntegerOrInfinity(argument) { // eslint-disable-line no-unused-vars +function ToIntegerOrInfinity(argument) {undefined // 1. Let number be ? ToNumber(argument). var number = ToNumber(argument); // 2. If number is NaN, +0𝔽, or -0𝔽, return 0. @@ -162,7 +162,7 @@ function ToIntegerOrInfinity(argument) { // eslint-disable-line no-unused-vars // _ESAbstract.Call /* global IsCallable */ // 7.3.12. Call ( F, V [ , argumentsList ] ) -function Call(F, V /* [, argumentsList] */) { // eslint-disable-line no-unused-vars +function Call(F, V /* [, argumentsList] */) {undefined // 1. If argumentsList is not present, set argumentsList to a new empty List. var argumentsList = arguments.length > 2 ? arguments[2] : []; // 2. If IsCallable(F) is false, throw a TypeError exception. @@ -201,7 +201,7 @@ function Call(F, V /* [, argumentsList] */) { // eslint-disable-line no-unused-v | Object | Return argument. | |----------------------------------------------------------------------------------------------------------------------------------------------------| */ -function ToObject(argument) { // eslint-disable-line no-unused-vars +function ToObject(argument) {undefined if (argument === null || argument === undefined) { throw TypeError(); } @@ -213,7 +213,7 @@ function ToObject(argument) { // eslint-disable-line no-unused-vars // _ESAbstract.GetV /* global ToObject */ // 7.3.2 GetV (V, P) -function GetV(v, p) { // eslint-disable-line no-unused-vars +function GetV(v, p) {undefined // 1. Assert: IsPropertyKey(P) is true. // 2. Let O be ? ToObject(V). var o = ToObject(v); @@ -228,7 +228,7 @@ function GetV(v, p) { // eslint-disable-line no-unused-vars // _ESAbstract.IsCallable // 7.2.3. IsCallable ( argument ) -function IsCallable(argument) { // eslint-disable-line no-unused-vars +function IsCallable(argument) {undefined // 1. If Type(argument) is not Object, return false. // 2. If argument has a [[Call]] internal method, return true. // 3. Return false. @@ -242,7 +242,7 @@ function IsCallable(argument) { // eslint-disable-line no-unused-vars // _ESAbstract.GetMethod /* global GetV, IsCallable */ // 7.3.9. GetMethod ( V, P ) -function GetMethod(V, P) { // eslint-disable-line no-unused-vars +function GetMethod(V, P) {undefined // 1. Assert: IsPropertyKey(P) is true. // 2. Let func be ? GetV(V, P). var func = GetV(V, P); @@ -268,7 +268,7 @@ function GetMethod(V, P) { // eslint-disable-line no-unused-vars // _ESAbstract.Get // 7.3.1. Get ( O, P ) -function Get(O, P) { // eslint-disable-line no-unused-vars +function Get(O, P) {undefined // 1. Assert: Type(O) is Object. // 2. Assert: IsPropertyKey(P) is true. // 3. Return ? O.[[Get]](P, O). @@ -282,7 +282,7 @@ function Get(O, P) { // eslint-disable-line no-unused-vars // _ESAbstract.Type // "Type(x)" is used as shorthand for "the type of x"... -function Type(x) { // eslint-disable-line no-unused-vars +function Type(x) {undefined switch (typeof x) { case 'undefined': return 'undefined'; @@ -309,7 +309,7 @@ function Type(x) { // eslint-disable-line no-unused-vars // _ESAbstract.OrdinaryToPrimitive /* global Get, IsCallable, Call, Type */ // 7.1.1.1. OrdinaryToPrimitive ( O, hint ) -function OrdinaryToPrimitive(O, hint) { // eslint-disable-line no-unused-vars +function OrdinaryToPrimitive(O, hint) {undefined // 1. Assert: Type(O) is Object. // 2. Assert: Type(hint) is String and its value is either "string" or "number". // 3. If hint is "string", then @@ -345,7 +345,7 @@ function OrdinaryToPrimitive(O, hint) { // eslint-disable-line no-unused-vars // _ESAbstract.ToPrimitive /* global Type, GetMethod, Call, OrdinaryToPrimitive */ // 7.1.1. ToPrimitive ( input [ , PreferredType ] ) -function ToPrimitive(input /* [, PreferredType] */) { // eslint-disable-line no-unused-vars +function ToPrimitive(input /* [, PreferredType] */) {undefined var PreferredType = arguments.length > 1 ? arguments[1] : undefined; // 1. Assert: input is an ECMAScript language value. // 2. If Type(input) is Object, then @@ -413,13 +413,13 @@ function ToPrimitive(input /* [, PreferredType] */) { // eslint-disable-line no- | | Return ? ToString(primValue). | |---------------|--------------------------------------------------------| */ -function ToString(argument) { // eslint-disable-line no-unused-vars +function ToString(argument) {undefined switch(Type(argument)) { case 'symbol': throw new TypeError('Cannot convert a Symbol value to a string'); case 'object': var primValue = ToPrimitive(argument, String); - return ToString(primValue); // eslint-disable-line no-unused-vars + return ToString(primValue);undefined default: return String(argument); } diff --git a/src/gadgets/prism-core/MediaWiki:Gadget-prism-core.js b/src/gadgets/prism-core/MediaWiki:Gadget-prism-core.js index 55e41791..e1251c19 100644 --- a/src/gadgets/prism-core/MediaWiki:Gadget-prism-core.js +++ b/src/gadgets/prism-core/MediaWiki:Gadget-prism-core.js @@ -6,6 +6,7 @@ * moduleName: "prismjs" * distFilePath: "components/prism-core.js" * version: "1" + * removeCode: [ "// eslint-disable-next-line no-redeclare" ] * jsdelivrUrl: "https://cdn.jsdelivr.net/npm/prismjs@1/components/prism-core.js" */ /// @@ -1022,7 +1023,7 @@ var Prism = (function (_self) { } } - // eslint-disable-next-line no-redeclare + var from = match.index; var matchStr = match[0]; var before = str.slice(0, from); diff --git a/src/gadgets/registerToDelete/MediaWiki:Gadget-registerToDelete.js b/src/gadgets/registerToDelete/MediaWiki:Gadget-registerToDelete.js index fa48fbf5..f680ccef 100644 --- a/src/gadgets/registerToDelete/MediaWiki:Gadget-registerToDelete.js +++ b/src/gadgets/registerToDelete/MediaWiki:Gadget-registerToDelete.js @@ -209,7 +209,7 @@ $(() => { $body.css("overflow", "auto"); if (loadReason === false) { loadReason = true; - const { parse: { text: { ["*"]: html } } } = await new mw.Api().post({ + const { parse: { text: { "*": html } } } = await new mw.Api().post({ action: "parse", assertuser: mw.config.get("wgUserName"), page: mw.config.get("wgNamespaceNumber") === mw.config.get("wgNamespaceIds").file ? "MediaWiki:Filedelete-reason-dropdown" : "MediaWiki:Deletereason-dropdown",