diff --git a/.eslintignore b/.eslintignore deleted file mode 100644 index 55e2017..0000000 --- a/.eslintignore +++ /dev/null @@ -1,5 +0,0 @@ -/coverage -/dist -/node_modules -/test/fixtures -/types/**/* \ No newline at end of file diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index e8ccbff..0000000 --- a/.eslintrc.js +++ /dev/null @@ -1,7 +0,0 @@ -module.exports = { - root: true, - extends: ["@webpack-contrib/eslint-config-webpack", "prettier"], - rules: { - "import/no-namespace": "off", - }, -}; diff --git a/README.md b/README.md index 1b87cb3..dc82047 100644 --- a/README.md +++ b/README.md @@ -42,8 +42,8 @@ Then add the plugin to your `webpack` configuration. For example: **webpack.config.js** ```js -const MiniCssExtractPlugin = require("mini-css-extract-plugin"); const CssMinimizerPlugin = require("css-minimizer-webpack-plugin"); +const MiniCssExtractPlugin = require("mini-css-extract-plugin"); module.exports = { module: { @@ -296,15 +296,14 @@ module.exports = { minify: [ CssMinimizerPlugin.cssnanoMinify, CssMinimizerPlugin.cleanCssMinify, - async (data, inputMap, minimizerOptions) => { + async (data, inputMap, minimizerOptions) => // Custom minifier function - return { - code: `a{color: red}`, - map: `{"version": "3", ...}`, + ({ + code: "a{color: red}", + map: '{"version": "3", ...}', warnings: [], errors: [], - }; - }, + }), ], }), ], diff --git a/eslint.config.mjs b/eslint.config.mjs new file mode 100644 index 0000000..c227975 --- /dev/null +++ b/eslint.config.mjs @@ -0,0 +1,8 @@ +import { defineConfig } from "eslint/config"; +import configs from "eslint-config-webpack/configs.js"; + +export default defineConfig([ + { + extends: [configs["recommended-dirty"]], + }, +]); diff --git a/package-lock.json b/package-lock.json index 6c1b192..2d52e82 100644 --- a/package-lock.json +++ b/package-lock.json @@ -22,13 +22,14 @@ "@babel/preset-env": "^7.25.3", "@commitlint/cli": "^19.3.0", "@commitlint/config-conventional": "^19.2.2", + "@eslint/markdown": "^7.0.0", "@parcel/css": "^1.8.3", + "@stylistic/eslint-plugin": "^5.2.0", "@swc/css": "^0.0.28", "@types/clean-css": "^4.2.11", "@types/csso": "^5.0.4", "@types/node": "^20.14.9", "@types/serialize-javascript": "^5.0.4", - "@webpack-contrib/eslint-config-webpack": "^3.0.0", "babel-jest": "^29.7.0", "clean-css": "^5.3.3", "copy-webpack-plugin": "^9.1.0", @@ -40,9 +41,15 @@ "del": "^6.1.0", "del-cli": "^5.1.0", "esbuild": "^0.25.0", - "eslint": "^8.56.0", - "eslint-config-prettier": "^9.1.0", - "eslint-plugin-import": "^2.29.1", + "eslint": "^9.30.1", + "eslint-config-prettier": "^10.1.5", + "eslint-config-webpack": "^4.4.1", + "eslint-plugin-import": "^2.32.0", + "eslint-plugin-jest": "^29.0.1", + "eslint-plugin-jsdoc": "^51.4.1", + "eslint-plugin-n": "^17.21.0", + "eslint-plugin-prettier": "^5.5.3", + "eslint-plugin-unicorn": "^60.0.0", "husky": "^9.1.4", "jest": "^29.7.0", "lightningcss": "^1.25.1", @@ -50,7 +57,7 @@ "memfs": "^4.11.1", "mini-css-extract-plugin": "^2.9.0", "npm-run-all": "^4.1.5", - "prettier": "^3.3.3", + "prettier": "^3.6.2", "sass": "^1.77.8", "sass-loader": "^14.2.1", "standard-version": "^9.5.0", @@ -1079,6 +1086,16 @@ "@babel/core": "^7.0.0-0" } }, + "node_modules/@babel/plugin-transform-classes/node_modules/globals": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, "node_modules/@babel/plugin-transform-computed-properties": { "version": "7.24.7", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.24.7.tgz", @@ -1932,6 +1949,16 @@ "node": ">=6.9.0" } }, + "node_modules/@babel/traverse/node_modules/globals": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, "node_modules/@babel/types": { "version": "7.27.1", "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.27.1.tgz", @@ -3302,6 +3329,23 @@ "node": ">=18.0" } }, + "node_modules/@es-joy/jsdoccomment": { + "version": "0.52.0", + "resolved": "https://registry.npmjs.org/@es-joy/jsdoccomment/-/jsdoccomment-0.52.0.tgz", + "integrity": "sha512-BXuN7BII+8AyNtn57euU2Yxo9yA/KUDNzrpXyi3pfqKmBhhysR6ZWOebFh3vyPoqA3/j1SOvGgucElMGwlXing==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/estree": "^1.0.8", + "@typescript-eslint/types": "^8.34.1", + "comment-parser": "1.4.1", + "esquery": "^1.6.0", + "jsdoc-type-pratt-parser": "~4.1.0" + }, + "engines": { + "node": ">=20.11.0" + } + }, "node_modules/@esbuild/aix-ppc64": { "version": "0.25.0", "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.0.tgz", @@ -3728,39 +3772,83 @@ } }, "node_modules/@eslint-community/eslint-utils": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", - "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==", + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.7.0.tgz", + "integrity": "sha512-dyybb3AcajC7uha6CvhdVRJqaKyn7w2YKqKyAN37NKYgZT36w+iRb0Dymmc5qEJ549c/S31cMMSFd75bteCpCw==", "dev": true, + "license": "MIT", "dependencies": { - "eslint-visitor-keys": "^3.3.0" + "eslint-visitor-keys": "^3.4.3" }, "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" } }, "node_modules/@eslint-community/regexpp": { - "version": "4.10.0", - "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.10.0.tgz", - "integrity": "sha512-Cu96Sd2By9mCNTx2iyKOmq10v22jUVQv0lQnlGNy16oE9589yE+QADPbrMGCkA51cKZSg3Pu/aTJVTGfL/qjUA==", + "version": "4.12.1", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.1.tgz", + "integrity": "sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==", "dev": true, + "license": "MIT", "engines": { "node": "^12.0.0 || ^14.0.0 || >=16.0.0" } }, + "node_modules/@eslint/config-array": { + "version": "0.21.0", + "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.21.0.tgz", + "integrity": "sha512-ENIdc4iLu0d93HeYirvKmrzshzofPw6VkZRKQGe9Nv46ZnWUzcF1xV01dcvEg/1wXUR61OmmlSfyeyO7EvjLxQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@eslint/object-schema": "^2.1.6", + "debug": "^4.3.1", + "minimatch": "^3.1.2" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/config-helpers": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.3.0.tgz", + "integrity": "sha512-ViuymvFmcJi04qdZeDc2whTHryouGcDlaxPqarTD0ZE10ISpxGUVZGZDx4w01upyIynL3iu6IXH2bS1NhclQMw==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/core": { + "version": "0.14.0", + "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.14.0.tgz", + "integrity": "sha512-qIbV0/JZr7iSDjqAc60IqbLdsj9GDt16xQtWD+B78d/HAlvysGdZZ6rpJHGAc2T0FQx1X6thsSPdnoiGKdNtdg==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@types/json-schema": "^7.0.15" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, "node_modules/@eslint/eslintrc": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.4.tgz", - "integrity": "sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==", + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.1.tgz", + "integrity": "sha512-gtF186CXhIl1p4pJNGZw8Yc6RlshoePRvE0X91oPGb3vZ8pM3qOS9W9NGPat9LziaBV7XrJWGylNQXkGcnM3IQ==", "dev": true, + "license": "MIT", "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", @@ -3768,7 +3856,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" @@ -3779,6 +3867,7 @@ "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", "dev": true, + "license": "MIT", "dependencies": { "fast-deep-equal": "^3.1.1", "fast-json-stable-stringify": "^2.0.0", @@ -3794,18 +3883,17 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true + "dev": true, + "license": "Python-2.0" }, "node_modules/@eslint/eslintrc/node_modules/globals": { - "version": "13.24.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", - "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", + "version": "14.0.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz", + "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==", "dev": true, - "dependencies": { - "type-fest": "^0.20.2" - }, + "license": "MIT", "engines": { - "node": ">=8" + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" @@ -3816,6 +3904,7 @@ "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", "dev": true, + "license": "MIT", "dependencies": { "argparse": "^2.0.1" }, @@ -3827,41 +3916,118 @@ "version": "0.4.1", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true + "dev": true, + "license": "MIT" }, - "node_modules/@eslint/eslintrc/node_modules/type-fest": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "node_modules/@eslint/js": { + "version": "9.31.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.31.0.tgz", + "integrity": "sha512-LOm5OVt7D4qiKCqoiPbA7LWmI+tbw1VbTUowBcUMgQSuM6poJufkFkYDcQpo5KfgD39TnNySV26QjOh7VFpSyw==", "dev": true, + "license": "MIT", "engines": { - "node": ">=10" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://eslint.org/donate" } }, - "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==", + "node_modules/@eslint/markdown": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@eslint/markdown/-/markdown-7.0.0.tgz", + "integrity": "sha512-0WNH6pSFHNlWSlNaIFQP0sLHpMUJw1FaJtyqapvGqOt0ISRgTUkTLVT0hT/zekDA1QlP2TT8pwjPkqYTu2s8yg==", "dev": true, + "license": "MIT", + "workspaces": [ + "examples/*" + ], + "dependencies": { + "@eslint/core": "^0.14.0", + "@eslint/plugin-kit": "^0.3.1", + "github-slugger": "^2.0.0", + "mdast-util-from-markdown": "^2.0.2", + "mdast-util-frontmatter": "^2.0.1", + "mdast-util-gfm": "^3.0.0", + "micromark-extension-frontmatter": "^2.0.0", + "micromark-extension-gfm": "^3.0.0" + }, "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.6", + "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.6.tgz", + "integrity": "sha512-RBMg5FRL0I0gs51M/guSAj5/e14VQ4tpZnQNWwuDT66P14I43ItmPfIZRhO9fUVIPOAQXU47atlywZ/czoqFPA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" } }, - "node_modules/@humanwhocodes/config-array": { - "version": "0.11.14", - "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.14.tgz", - "integrity": "sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==", + "node_modules/@eslint/plugin-kit": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.3.3.tgz", + "integrity": "sha512-1+WqvgNMhmlAambTvT3KPtCl/Ibr68VldY2XY40SL1CE0ZXiakFR/cbTspaF5HsnpDMvcYYoJHfl4980NBjGag==", "dev": true, + "license": "Apache-2.0", "dependencies": { - "@humanwhocodes/object-schema": "^2.0.2", - "debug": "^4.3.1", - "minimatch": "^3.0.5" + "@eslint/core": "^0.15.1", + "levn": "^0.4.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/plugin-kit/node_modules/@eslint/core": { + "version": "0.15.1", + "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.15.1.tgz", + "integrity": "sha512-bkOp+iumZCCbt1K1CmWf0R9pM5yKpDv+ZXtvSyQpudrI9kuFLp+bM2WOPXImuD/ceQuaa8f5pj93Y7zyECIGNA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@types/json-schema": "^7.0.15" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@humanfs/core": { + "version": "0.19.1", + "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz", + "integrity": "sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=18.18.0" + } + }, + "node_modules/@humanfs/node": { + "version": "0.16.6", + "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.6.tgz", + "integrity": "sha512-YuI2ZHQL78Q5HbhDiBA1X4LmYdXCKCMQIfw0pw7piHJwyREFebJUvrQN4cMssyES6x+vfUbx1CIpaQUKYdQZOw==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@humanfs/core": "^0.19.1", + "@humanwhocodes/retry": "^0.3.0" }, "engines": { - "node": ">=10.10.0" + "node": ">=18.18.0" + } + }, + "node_modules/@humanfs/node/node_modules/@humanwhocodes/retry": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.3.1.tgz", + "integrity": "sha512-JBxkERygn7Bv/GbN5Rv8Ul6LVknS+5Bp6RgDC/O8gEBU/yeH5Ui5C/OlWrTb6qct7LjjfT6Re2NxB0ln0yYybA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=18.18" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" } }, "node_modules/@humanwhocodes/module-importer": { @@ -3877,11 +4043,19 @@ "url": "https://github.com/sponsors/nzakas" } }, - "node_modules/@humanwhocodes/object-schema": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.2.tgz", - "integrity": "sha512-6EwiSjwWYP7pTckG6I5eyFANjPhmPjUX9JRLUSfNPC7FX7zK9gyZAfUEaECL6ALTpGX5AjnBq3C9XmVWPitNpw==", - "dev": true + "node_modules/@humanwhocodes/retry": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.3.tgz", + "integrity": "sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=18.18" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } }, "node_modules/@hutson/parse-repository-url": { "version": "3.0.2", @@ -4893,6 +5067,26 @@ "url": "https://opencollective.com/parcel" } }, + "node_modules/@pkgr/core": { + "version": "0.2.9", + "resolved": "https://registry.npmjs.org/@pkgr/core/-/core-0.2.9.tgz", + "integrity": "sha512-QNqXyfVS2wm9hweSYD2O7F0G06uurj9kZ96TRQE5Y9hU7+tgdZwIkbAKc5Ocy1HxEY2kuDQa6cQ1WRs/O5LFKA==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^12.20.0 || ^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/pkgr" + } + }, + "node_modules/@rtsao/scc": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@rtsao/scc/-/scc-1.1.0.tgz", + "integrity": "sha512-zt6OdqaDoOnJ1ZYsCYGt9YmWzDXl4vQdKTyJev62gFhRGKdx7mcT54V9KIjg+d2wi9EXsPvAPKe7i7WjfVWB8g==", + "dev": true, + "license": "MIT" + }, "node_modules/@sinclair/typebox": { "version": "0.27.8", "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.8.tgz", @@ -4916,6 +5110,40 @@ "@sinonjs/commons": "^3.0.0" } }, + "node_modules/@stylistic/eslint-plugin": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/@stylistic/eslint-plugin/-/eslint-plugin-5.2.0.tgz", + "integrity": "sha512-RCEdbREv9EBiToUBQTlRhVYKG093I6ZnnQ990j08eJ6uRZh71DXkOnoxtTLfDQ6utVCVQzrhZFHZP0zfrfOIjA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/eslint-utils": "^4.7.0", + "@typescript-eslint/types": "^8.37.0", + "eslint-visitor-keys": "^4.2.1", + "espree": "^10.4.0", + "estraverse": "^5.3.0", + "picomatch": "^4.0.3" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "peerDependencies": { + "eslint": ">=9.0.0" + } + }, + "node_modules/@stylistic/eslint-plugin/node_modules/eslint-visitor-keys": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz", + "integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, "node_modules/@swc/css": { "version": "0.0.28", "resolved": "https://registry.npmjs.org/@swc/css/-/css-0.0.28.tgz", @@ -5215,11 +5443,22 @@ "@types/css-tree": "*" } }, + "node_modules/@types/debug": { + "version": "4.1.12", + "resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.12.tgz", + "integrity": "sha512-vIChWdVG3LG1SMxEvI/AK+FWJthlrqlTu7fbrlywTkkaONwk/UAGaULXRlf8vkzFBLVm0zkMdCquhL5aOjhXPQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/ms": "*" + } + }, "node_modules/@types/estree": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.5.tgz", - "integrity": "sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==", - "dev": true + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz", + "integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==", + "dev": true, + "license": "MIT" }, "node_modules/@types/graceful-fs": { "version": "4.1.9", @@ -5262,12 +5501,29 @@ "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==", "dev": true }, + "node_modules/@types/mdast": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-4.0.4.tgz", + "integrity": "sha512-kGaNbPh1k7AFzgpud/gMdvIm5xuECykRR+JnWKQno9TAXVa6WIVCGTPvYGekIDL4uwCZQSYbUxNBSb1aUo79oA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/unist": "*" + } + }, "node_modules/@types/minimist": { "version": "1.2.5", "resolved": "https://registry.npmjs.org/@types/minimist/-/minimist-1.2.5.tgz", "integrity": "sha512-hov8bUuiLiyFPGyFPE1lwWhmzYbirOXQNNo40+y3zow8aFVTeyn3VWL0VFFfdNddA8S4Vf0Tc062rzyNr7Paag==", "dev": true }, + "node_modules/@types/ms": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@types/ms/-/ms-2.1.0.tgz", + "integrity": "sha512-GsCCIZDE/p3i96vtEqx+7dBUGXrc7zeSK3wwPHIaRThS+9OhWIXRqzs4d6k1SVU8g91DrNRWxWUGhp5KXQb2VA==", + "dev": true, + "license": "MIT" + }, "node_modules/@types/node": { "version": "20.14.9", "resolved": "https://registry.npmjs.org/@types/node/-/node-20.14.9.tgz", @@ -5295,6 +5551,13 @@ "integrity": "sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==", "dev": true }, + "node_modules/@types/unist": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.3.tgz", + "integrity": "sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==", + "dev": true, + "license": "MIT" + }, "node_modules/@types/yargs": { "version": "17.0.32", "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.32.tgz", @@ -5308,77 +5571,265 @@ "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.3.tgz", "integrity": "sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==" }, - "node_modules/@ungap/structured-clone": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.0.tgz", - "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==", - "dev": true - }, - "node_modules/@webassemblyjs/ast": { - "version": "1.12.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.12.1.tgz", - "integrity": "sha512-EKfMUOPRRUTy5UII4qJDGPpqfwjOmZ5jeGFwid9mnoqIFK+e0vqoi1qH56JpmZSzEL53jKnNzScdmftJyG5xWg==", + "node_modules/@typescript-eslint/project-service": { + "version": "8.37.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.37.0.tgz", + "integrity": "sha512-BIUXYsbkl5A1aJDdYJCBAo8rCEbAvdquQ8AnLb6z5Lp1u3x5PNgSSx9A/zqYc++Xnr/0DVpls8iQ2cJs/izTXA==", "dev": true, + "license": "MIT", "dependencies": { - "@webassemblyjs/helper-numbers": "1.11.6", - "@webassemblyjs/helper-wasm-bytecode": "1.11.6" + "@typescript-eslint/tsconfig-utils": "^8.37.0", + "@typescript-eslint/types": "^8.37.0", + "debug": "^4.3.4" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <5.9.0" } }, - "node_modules/@webassemblyjs/floating-point-hex-parser": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.11.6.tgz", - "integrity": "sha512-ejAj9hfRJ2XMsNHk/v6Fu2dGS+i4UaXBXGemOfQ/JfQ6mdQg/WXtwleQRLLS4OvfDhv8rYnVwH27YJLMyYsxhw==", - "dev": true - }, - "node_modules/@webassemblyjs/helper-api-error": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.11.6.tgz", - "integrity": "sha512-o0YkoP4pVu4rN8aTJgAyj9hC2Sv5UlkzCHhxqWj8butaLvnpdc2jOwh4ewE6CX0txSfLn/UYaV/pheS2Txg//Q==", - "dev": true - }, - "node_modules/@webassemblyjs/helper-buffer": { - "version": "1.12.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.12.1.tgz", - "integrity": "sha512-nzJwQw99DNDKr9BVCOZcLuJJUlqkJh+kVzVl6Fmq/tI5ZtEyWT1KZMyOXltXLZJmDtvLCDgwsyrkohEtopTXCw==", - "dev": true - }, - "node_modules/@webassemblyjs/helper-numbers": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.11.6.tgz", - "integrity": "sha512-vUIhZ8LZoIWHBohiEObxVm6hwP034jwmc9kuq5GdHZH0wiLVLIPcMCdpJzG4C11cHoQ25TFIQj9kaVADVX7N3g==", + "node_modules/@typescript-eslint/scope-manager": { + "version": "8.37.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.37.0.tgz", + "integrity": "sha512-0vGq0yiU1gbjKob2q691ybTg9JX6ShiVXAAfm2jGf3q0hdP6/BruaFjL/ManAR/lj05AvYCH+5bbVo0VtzmjOA==", "dev": true, + "license": "MIT", "dependencies": { - "@webassemblyjs/floating-point-hex-parser": "1.11.6", - "@webassemblyjs/helper-api-error": "1.11.6", - "@xtuc/long": "4.2.2" + "@typescript-eslint/types": "8.37.0", + "@typescript-eslint/visitor-keys": "8.37.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" } }, - "node_modules/@webassemblyjs/helper-wasm-bytecode": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.11.6.tgz", - "integrity": "sha512-sFFHKwcmBprO9e7Icf0+gddyWYDViL8bpPjJJl0WHxCdETktXdmtWLGVzoHbqUcY4Be1LkNfwTmXOJUFZYSJdA==", - "dev": true - }, - "node_modules/@webassemblyjs/helper-wasm-section": { - "version": "1.12.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.12.1.tgz", - "integrity": "sha512-Jif4vfB6FJlUlSbgEMHUyk1j234GTNG9dBJ4XJdOySoj518Xj0oGsNi59cUQF4RRMS9ouBUxDDdyBVfPTypa5g==", + "node_modules/@typescript-eslint/tsconfig-utils": { + "version": "8.37.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.37.0.tgz", + "integrity": "sha512-1/YHvAVTimMM9mmlPvTec9NP4bobA1RkDbMydxG8omqwJJLEW/Iy2C4adsAESIXU3WGLXFHSZUU+C9EoFWl4Zg==", "dev": true, - "dependencies": { - "@webassemblyjs/ast": "1.12.1", - "@webassemblyjs/helper-buffer": "1.12.1", - "@webassemblyjs/helper-wasm-bytecode": "1.11.6", - "@webassemblyjs/wasm-gen": "1.12.1" + "license": "MIT", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <5.9.0" } }, - "node_modules/@webassemblyjs/ieee754": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.11.6.tgz", - "integrity": "sha512-LM4p2csPNvbij6U1f19v6WR56QZ8JcHg3QIJTlSwzFcmx6WSORicYj6I63f9yU1kEUtrpG+kjkiIAkevHpDXrg==", + "node_modules/@typescript-eslint/types": { + "version": "8.37.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.37.0.tgz", + "integrity": "sha512-ax0nv7PUF9NOVPs+lmQ7yIE7IQmAf8LGcXbMvHX5Gm+YJUYNAl340XkGnrimxZ0elXyoQJuN5sbg6C4evKA4SQ==", "dev": true, - "dependencies": { - "@xtuc/ieee754": "^1.2.0" - } + "license": "MIT", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/typescript-estree": { + "version": "8.37.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.37.0.tgz", + "integrity": "sha512-zuWDMDuzMRbQOM+bHyU4/slw27bAUEcKSKKs3hcv2aNnc/tvE/h7w60dwVw8vnal2Pub6RT1T7BI8tFZ1fE+yg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/project-service": "8.37.0", + "@typescript-eslint/tsconfig-utils": "8.37.0", + "@typescript-eslint/types": "8.37.0", + "@typescript-eslint/visitor-keys": "8.37.0", + "debug": "^4.3.4", + "fast-glob": "^3.3.2", + "is-glob": "^4.0.3", + "minimatch": "^9.0.4", + "semver": "^7.6.0", + "ts-api-utils": "^2.1.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <5.9.0" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz", + "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/semver": { + "version": "7.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz", + "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@typescript-eslint/utils": { + "version": "8.37.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.37.0.tgz", + "integrity": "sha512-TSFvkIW6gGjN2p6zbXo20FzCABbyUAuq6tBvNRGsKdsSQ6a7rnV6ADfZ7f4iI3lIiXc4F4WWvtUfDw9CJ9pO5A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/eslint-utils": "^4.7.0", + "@typescript-eslint/scope-manager": "8.37.0", + "@typescript-eslint/types": "8.37.0", + "@typescript-eslint/typescript-estree": "8.37.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <5.9.0" + } + }, + "node_modules/@typescript-eslint/visitor-keys": { + "version": "8.37.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.37.0.tgz", + "integrity": "sha512-YzfhzcTnZVPiLfP/oeKtDp2evwvHLMe0LOy7oe+hb9KKIumLNohYS9Hgp1ifwpu42YWxhZE8yieggz6JpqO/1w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "8.37.0", + "eslint-visitor-keys": "^4.2.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz", + "integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@webassemblyjs/ast": { + "version": "1.12.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.12.1.tgz", + "integrity": "sha512-EKfMUOPRRUTy5UII4qJDGPpqfwjOmZ5jeGFwid9mnoqIFK+e0vqoi1qH56JpmZSzEL53jKnNzScdmftJyG5xWg==", + "dev": true, + "dependencies": { + "@webassemblyjs/helper-numbers": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6" + } + }, + "node_modules/@webassemblyjs/floating-point-hex-parser": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.11.6.tgz", + "integrity": "sha512-ejAj9hfRJ2XMsNHk/v6Fu2dGS+i4UaXBXGemOfQ/JfQ6mdQg/WXtwleQRLLS4OvfDhv8rYnVwH27YJLMyYsxhw==", + "dev": true + }, + "node_modules/@webassemblyjs/helper-api-error": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.11.6.tgz", + "integrity": "sha512-o0YkoP4pVu4rN8aTJgAyj9hC2Sv5UlkzCHhxqWj8butaLvnpdc2jOwh4ewE6CX0txSfLn/UYaV/pheS2Txg//Q==", + "dev": true + }, + "node_modules/@webassemblyjs/helper-buffer": { + "version": "1.12.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.12.1.tgz", + "integrity": "sha512-nzJwQw99DNDKr9BVCOZcLuJJUlqkJh+kVzVl6Fmq/tI5ZtEyWT1KZMyOXltXLZJmDtvLCDgwsyrkohEtopTXCw==", + "dev": true + }, + "node_modules/@webassemblyjs/helper-numbers": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.11.6.tgz", + "integrity": "sha512-vUIhZ8LZoIWHBohiEObxVm6hwP034jwmc9kuq5GdHZH0wiLVLIPcMCdpJzG4C11cHoQ25TFIQj9kaVADVX7N3g==", + "dev": true, + "dependencies": { + "@webassemblyjs/floating-point-hex-parser": "1.11.6", + "@webassemblyjs/helper-api-error": "1.11.6", + "@xtuc/long": "4.2.2" + } + }, + "node_modules/@webassemblyjs/helper-wasm-bytecode": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.11.6.tgz", + "integrity": "sha512-sFFHKwcmBprO9e7Icf0+gddyWYDViL8bpPjJJl0WHxCdETktXdmtWLGVzoHbqUcY4Be1LkNfwTmXOJUFZYSJdA==", + "dev": true + }, + "node_modules/@webassemblyjs/helper-wasm-section": { + "version": "1.12.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.12.1.tgz", + "integrity": "sha512-Jif4vfB6FJlUlSbgEMHUyk1j234GTNG9dBJ4XJdOySoj518Xj0oGsNi59cUQF4RRMS9ouBUxDDdyBVfPTypa5g==", + "dev": true, + "dependencies": { + "@webassemblyjs/ast": "1.12.1", + "@webassemblyjs/helper-buffer": "1.12.1", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6", + "@webassemblyjs/wasm-gen": "1.12.1" + } + }, + "node_modules/@webassemblyjs/ieee754": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.11.6.tgz", + "integrity": "sha512-LM4p2csPNvbij6U1f19v6WR56QZ8JcHg3QIJTlSwzFcmx6WSORicYj6I63f9yU1kEUtrpG+kjkiIAkevHpDXrg==", + "dev": true, + "dependencies": { + "@xtuc/ieee754": "^1.2.0" + } }, "node_modules/@webassemblyjs/leb128": { "version": "1.11.6", @@ -5460,18 +5911,6 @@ "@xtuc/long": "4.2.2" } }, - "node_modules/@webpack-contrib/eslint-config-webpack": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@webpack-contrib/eslint-config-webpack/-/eslint-config-webpack-3.0.0.tgz", - "integrity": "sha512-3f0dwuTZ1JZpnoGQ6tAKBWluZKZZBXr1ADoaOAbPiW0OvSN7o0wXFLGyfw6J+fW756xIkZLZ8JDYP5zInIRvBA==", - "dev": true, - "engines": { - "node": ">= 6.9.0 || >= 8.9.0" - }, - "peerDependencies": { - "eslint": ">= 5.0.0" - } - }, "node_modules/@xtuc/ieee754": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz", @@ -5485,10 +5924,11 @@ "dev": true }, "node_modules/acorn": { - "version": "8.11.3", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.3.tgz", - "integrity": "sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==", + "version": "8.15.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz", + "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==", "dev": true, + "license": "MIT", "bin": { "acorn": "bin/acorn" }, @@ -5511,6 +5951,7 @@ "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", "dev": true, + "license": "MIT", "peerDependencies": { "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" } @@ -5628,6 +6069,29 @@ "node": ">= 8" } }, + "node_modules/anymatch/node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/are-docs-informative": { + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/are-docs-informative/-/are-docs-informative-0.0.2.tgz", + "integrity": "sha512-ixiS0nLNNG5jNQzgZJNoUpBKdo9yTYZMGJ+QgT2jmjR7G7+QHRCc4v6LQ3NgE7EBJq+o0ams3waJwkrlBom8Ig==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=14" + } + }, "node_modules/argparse": { "version": "1.0.10", "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", @@ -5638,13 +6102,14 @@ } }, "node_modules/array-buffer-byte-length": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.1.tgz", - "integrity": "sha512-ahC5W1xgou+KTXix4sAO8Ki12Q+jf4i0+tmk3sC+zgcynshkHxzpXdImBehiUYKKKDwvfFiJl1tZt6ewscS1Mg==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.2.tgz", + "integrity": "sha512-LHE+8BuR7RYGDKvnrmcuSq3tDcKv9OFEXQt/HpbZhY7V6h0zlUXutnAD82GiFx9rdieCMjkvtcsPqBwgUl1Iiw==", "dev": true, + "license": "MIT", "dependencies": { - "call-bind": "^1.0.5", - "is-array-buffer": "^3.0.4" + "call-bound": "^1.0.3", + "is-array-buffer": "^3.0.5" }, "engines": { "node": ">= 0.4" @@ -5660,16 +6125,20 @@ "dev": true }, "node_modules/array-includes": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.7.tgz", - "integrity": "sha512-dlcsNBIiWhPkHdOEEKnehA+RNUWDc4UqFtnIXU4uuYDPtA4LDkr7qip2p0VvFAEXNDr0yWZ9PJyIRiGjRLQzwQ==", + "version": "3.1.9", + "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.9.tgz", + "integrity": "sha512-FmeCCAenzH0KH381SPT5FZmiA/TmpndpcaShhfgEN9eCVjnFBqq3l1xrI42y8+PPLI6hypzou4GXw00WHmPBLQ==", "dev": true, + "license": "MIT", "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "es-abstract": "^1.22.1", - "get-intrinsic": "^1.2.1", - "is-string": "^1.0.7" + "call-bind": "^1.0.8", + "call-bound": "^1.0.4", + "define-properties": "^1.2.1", + "es-abstract": "^1.24.0", + "es-object-atoms": "^1.1.1", + "get-intrinsic": "^1.3.0", + "is-string": "^1.1.1", + "math-intrinsics": "^1.1.0" }, "engines": { "node": ">= 0.4" @@ -5694,36 +6163,20 @@ "node": ">=8" } }, - "node_modules/array.prototype.filter": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/array.prototype.filter/-/array.prototype.filter-1.0.3.tgz", - "integrity": "sha512-VizNcj/RGJiUyQBgzwxzE5oHdeuXY5hSbbmKMlphj1cy1Vl7Pn2asCGbSrru6hSQjmCzqTBPVWAF/whmEOVHbw==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "es-abstract": "^1.22.1", - "es-array-method-boxes-properly": "^1.0.0", - "is-string": "^1.0.7" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/array.prototype.findlastindex": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/array.prototype.findlastindex/-/array.prototype.findlastindex-1.2.4.tgz", - "integrity": "sha512-hzvSHUshSpCflDR1QMUBLHGHP1VIEBegT4pix9H/Z92Xw3ySoy6c2qh7lJWTJnRJ8JCZ9bJNCgTyYaJGcJu6xQ==", + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/array.prototype.findlastindex/-/array.prototype.findlastindex-1.2.6.tgz", + "integrity": "sha512-F/TKATkzseUExPlfvmwQKGITM3DGTK+vkAsCZoDc5daVygbJBnjEUCbgkAvVFsgfXfX4YIqZ/27G3k3tdXrTxQ==", "dev": true, + "license": "MIT", "dependencies": { - "call-bind": "^1.0.5", + "call-bind": "^1.0.8", + "call-bound": "^1.0.4", "define-properties": "^1.2.1", - "es-abstract": "^1.22.3", + "es-abstract": "^1.23.9", "es-errors": "^1.3.0", - "es-shim-unscopables": "^1.0.2" + "es-object-atoms": "^1.1.1", + "es-shim-unscopables": "^1.1.0" }, "engines": { "node": ">= 0.4" @@ -5733,15 +6186,16 @@ } }, "node_modules/array.prototype.flat": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.2.tgz", - "integrity": "sha512-djYB+Zx2vLewY8RWlNCUdHjDXs2XOgm602S9E7P/UpHgfeHL00cRiIF+IN/G/aUJ7kGPb6yO/ErDI5V2s8iycA==", + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.3.tgz", + "integrity": "sha512-rwG/ja1neyLqCuGZ5YYrznA62D4mZXg0i1cIskIUKSiqF3Cje9/wXAls9B9s1Wa2fomMsIv8czB8jZcPmxCXFg==", "dev": true, + "license": "MIT", "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "es-abstract": "^1.22.1", - "es-shim-unscopables": "^1.0.0" + "call-bind": "^1.0.8", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.5", + "es-shim-unscopables": "^1.0.2" }, "engines": { "node": ">= 0.4" @@ -5751,15 +6205,16 @@ } }, "node_modules/array.prototype.flatmap": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.2.tgz", - "integrity": "sha512-Ewyx0c9PmpcsByhSW4r+9zDU7sGjFc86qf/kKtuSCRdhfbk0SNLLkaT5qvcHnRGgc5NP/ly/y+qkXkqONX54CQ==", + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.3.tgz", + "integrity": "sha512-Y7Wt51eKJSyi80hFrJCePGGNo5ktJCslFuboqJsbf57CCPcm5zztluPlc4/aD8sWsKvlwatezpV4U1efk8kpjg==", "dev": true, + "license": "MIT", "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "es-abstract": "^1.22.1", - "es-shim-unscopables": "^1.0.0" + "call-bind": "^1.0.8", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.5", + "es-shim-unscopables": "^1.0.2" }, "engines": { "node": ">= 0.4" @@ -5769,19 +6224,19 @@ } }, "node_modules/arraybuffer.prototype.slice": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.3.tgz", - "integrity": "sha512-bMxMKAjg13EBSVscxTaYA4mRc5t1UAXa2kXiGTNfZ079HIWXEkKmkgFrh/nJqamaLSrXO5H4WFFkPEaLJWbs3A==", + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.4.tgz", + "integrity": "sha512-BNoCY6SXXPQ7gF2opIP4GBE+Xw7U+pHMYKuzjgCN3GwiaIR09UUeKfheyIry77QtrCBlC0KK0q5/TER/tYh3PQ==", "dev": true, + "license": "MIT", "dependencies": { "array-buffer-byte-length": "^1.0.1", - "call-bind": "^1.0.5", + "call-bind": "^1.0.8", "define-properties": "^1.2.1", - "es-abstract": "^1.22.3", - "es-errors": "^1.2.1", - "get-intrinsic": "^1.2.3", - "is-array-buffer": "^3.0.4", - "is-shared-array-buffer": "^1.0.2" + "es-abstract": "^1.23.5", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.6", + "is-array-buffer": "^3.0.4" }, "engines": { "node": ">= 0.4" @@ -5799,11 +6254,22 @@ "node": ">=0.10.0" } }, + "node_modules/async-function": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/async-function/-/async-function-1.0.0.tgz", + "integrity": "sha512-hsU18Ae8CDTR6Kgu9DYf0EbCr/a5iGL0rytQDobUcdpYOKokk8LEjVphnXkDkgpi0wYVsqrXuP0bZxJaTqdgoA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, "node_modules/available-typed-arrays": { "version": "1.0.7", "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz", "integrity": "sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==", "dev": true, + "license": "MIT", "dependencies": { "possible-typed-array-names": "^1.0.0" }, @@ -6045,10 +6511,11 @@ "license": "ISC" }, "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==", + "version": "1.1.12", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz", + "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", "dev": true, + "license": "MIT", "dependencies": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -6068,9 +6535,9 @@ } }, "node_modules/browserslist": { - "version": "4.23.3", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.23.3.tgz", - "integrity": "sha512-btwCFJVjI4YWDNfau8RhZ+B1Q/VLoUITrm3RlP6y1tYGWIOa+InuYiRGXUBXo8nA1qKmHMyLB/iVQg5TT4eFoA==", + "version": "4.25.1", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.25.1.tgz", + "integrity": "sha512-KGj0KoOMXLpSNkkEI6Z6mShmQy0bc1I+T7K9N81k4WWMrfz+6fQ6es80B/YLAeRoKvjYE1YSHHOW1qe9xIVzHw==", "funding": [ { "type": "opencollective", @@ -6087,10 +6554,10 @@ ], "license": "MIT", "dependencies": { - "caniuse-lite": "^1.0.30001646", - "electron-to-chromium": "^1.5.4", - "node-releases": "^2.0.18", - "update-browserslist-db": "^1.1.0" + "caniuse-lite": "^1.0.30001726", + "electron-to-chromium": "^1.5.173", + "node-releases": "^2.0.19", + "update-browserslist-db": "^1.1.3" }, "bin": { "browserslist": "cli.js" @@ -6114,17 +6581,30 @@ "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", "dev": true }, + "node_modules/builtin-modules": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-5.0.0.tgz", + "integrity": "sha512-bkXY9WsVpY7CvMhKSR6pZilZu9Ln5WDrKVBUXf2S443etkmEO4V58heTecXcUIsNsi4Rx8JUO4NfX1IcQl4deg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18.20" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/call-bind": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.7.tgz", - "integrity": "sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==", + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.8.tgz", + "integrity": "sha512-oKlSFMcMwpUg2ednkhQ454wfWiU/ul3CkJe/PEHcTKuiX6RpbehUiFMXu13HalGZxfUwCQzZG747YXBn1im9ww==", "dev": true, + "license": "MIT", "dependencies": { + "call-bind-apply-helpers": "^1.0.0", "es-define-property": "^1.0.0", - "es-errors": "^1.3.0", - "function-bind": "^1.1.2", "get-intrinsic": "^1.2.4", - "set-function-length": "^1.2.1" + "set-function-length": "^1.2.2" }, "engines": { "node": ">= 0.4" @@ -6133,22 +6613,53 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/callsites": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "node_modules/call-bind-apply-helpers": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", + "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "function-bind": "^1.1.2" + }, "engines": { - "node": ">=6" + "node": ">= 0.4" } }, - "node_modules/camelcase": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", - "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "node_modules/call-bound": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz", + "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", "dev": true, + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "get-intrinsic": "^1.3.0" + }, "engines": { - "node": ">=6" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true, + "engines": { + "node": ">=6" } }, "node_modules/camelcase-keys": { @@ -6181,9 +6692,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001649", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001649.tgz", - "integrity": "sha512-fJegqZZ0ZX8HOWr6rcafGr72+xcgJKI9oWfDW5DrD7ExUtgZC7a7R7ZYmZqplh7XDocFdGeIFn7roAxhOeYrPQ==", + "version": "1.0.30001727", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001727.tgz", + "integrity": "sha512-pB68nIHmbN6L/4C6MH1DokyR3bYqFwjaSs/sWDHGj4CTcFtQUQMuJftVwWkXq7mNWOybD3KhUv3oWHoGxgP14Q==", "funding": [ { "type": "opencollective", @@ -6200,6 +6711,17 @@ ], "license": "CC-BY-4.0" }, + "node_modules/ccount": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/ccount/-/ccount-2.0.1.tgz", + "integrity": "sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==", + "dev": true, + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, "node_modules/chalk": { "version": "2.4.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", @@ -6241,6 +6763,13 @@ "url": "https://github.com/chalk/chalk?sponsor=1" } }, + "node_modules/change-case": { + "version": "5.4.4", + "resolved": "https://registry.npmjs.org/change-case/-/change-case-5.4.4.tgz", + "integrity": "sha512-HRQyTk2/YPEkt9TnUPbOpr64Uw3KOicFWPVBb+xiHvd6eBx/qPr9xqfBFDT8P2vWsvvz4jbEkfDe71W3VyNu2w==", + "dev": true, + "license": "MIT" + }, "node_modules/char-regex": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz", @@ -6250,6 +6779,17 @@ "node": ">=10" } }, + "node_modules/character-entities": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/character-entities/-/character-entities-2.0.2.tgz", + "integrity": "sha512-shx7oQ0Awen/BRIdkjkvz54PnEEI/EjwXDSIZp86/KKdbafHh1Df/RYGBhn4hbe2+uKC9FnT5UCEdyPz3ai9hQ==", + "dev": true, + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, "node_modules/chokidar": { "version": "3.6.0", "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", @@ -6315,6 +6855,19 @@ "node": ">= 10.0" } }, + "node_modules/clean-regexp": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/clean-regexp/-/clean-regexp-1.0.0.tgz", + "integrity": "sha512-GfisEZEJvzKrmGWkvfhgzcz/BllN1USeqD2V6tg14OAOgaCD2Z/PUEuxnAZ/nPvmaHRG7a8y77p1T/IRQ4D1Hw==", + "dev": true, + "license": "MIT", + "dependencies": { + "escape-string-regexp": "^1.0.5" + }, + "engines": { + "node": ">=4" + } + }, "node_modules/clean-stack": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz", @@ -6559,6 +7112,16 @@ "node": ">= 6" } }, + "node_modules/comment-parser": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/comment-parser/-/comment-parser-1.4.1.tgz", + "integrity": "sha512-buhp5kePrmda3vhc5B9t7pUQXAb2Tnd0qgpkIhPhkHXxJpiPJ11H0ZEU0oBpJ2QztSbzG/ZxMj/CHsYJqRHmyg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 12.0.0" + } + }, "node_modules/compare-func": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/compare-func/-/compare-func-2.0.0.tgz", @@ -7761,13 +8324,13 @@ } }, "node_modules/core-js-compat": { - "version": "3.38.0", - "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.38.0.tgz", - "integrity": "sha512-75LAicdLa4OJVwFxFbQR3NdnZjNgX6ILpVcVzcC4T2smerB5lELMrJQQQoWV6TiuC/vlaFqgU2tKQx9w5s0e0A==", + "version": "3.44.0", + "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.44.0.tgz", + "integrity": "sha512-JepmAj2zfl6ogy34qfWtcE7nHKAJnKsQFRn++scjVS2bZFllwptzw61BZcZFYBPpUznLfAvh0LGhxKppk04ClA==", "dev": true, "license": "MIT", "dependencies": { - "browserslist": "^4.23.3" + "browserslist": "^4.25.1" }, "funding": { "type": "opencollective", @@ -8437,6 +9000,60 @@ "node": ">=8" } }, + "node_modules/data-view-buffer": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/data-view-buffer/-/data-view-buffer-1.0.2.tgz", + "integrity": "sha512-EmKO5V3OLXh1rtK2wgXRansaK1/mtVdTUEiEI0W8RkvgT05kfxaH29PliLnpLP73yYO6142Q72QNa8Wx/A5CqQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3", + "es-errors": "^1.3.0", + "is-data-view": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/data-view-byte-length": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/data-view-byte-length/-/data-view-byte-length-1.0.2.tgz", + "integrity": "sha512-tuhGbE6CfTM9+5ANGf+oQb72Ky/0+s3xKUpHvShfiz2RxMFgFPjsXuRLBVMtvMs15awe45SRb83D6wH4ew6wlQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3", + "es-errors": "^1.3.0", + "is-data-view": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/inspect-js" + } + }, + "node_modules/data-view-byte-offset": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/data-view-byte-offset/-/data-view-byte-offset-1.0.1.tgz", + "integrity": "sha512-BS8PfmtDGnrgYdOonGZQdLZslWIeCGFP9tpan0hi1Co2Zr2NKADsvGYA8XxuG/4UWgJ6Cjtv+YJnB6MM69QGlQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "is-data-view": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/dateformat": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/dateformat/-/dateformat-3.0.3.tgz", @@ -8498,6 +9115,20 @@ "node": ">=0.10.0" } }, + "node_modules/decode-named-character-reference": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/decode-named-character-reference/-/decode-named-character-reference-1.2.0.tgz", + "integrity": "sha512-c6fcElNV6ShtZXmsgNgFFV5tVX2PaV4g+MOAkb8eXHvn6sryJBrZa9r0zV6+dtTyoCKxtDy5tyQ5ZwQuidtd+Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "character-entities": "^2.0.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, "node_modules/dedent": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/dedent/-/dedent-1.5.1.tgz", @@ -8998,6 +9629,16 @@ "node": ">=8" } }, + "node_modules/dequal": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz", + "integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, "node_modules/detect-indent": { "version": "6.1.0", "resolved": "https://registry.npmjs.org/detect-indent/-/detect-indent-6.1.0.tgz", @@ -9028,6 +9669,20 @@ "node": ">=8" } }, + "node_modules/devlop": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/devlop/-/devlop-1.1.0.tgz", + "integrity": "sha512-RWmIqhcFf1lRYBvNmr7qTNuyCt/7/ns2jbpp1+PalgE/rDQcBT0fioSMUpJ93irlUhC5hrg4cYqe6U+0ImW0rA==", + "dev": true, + "license": "MIT", + "dependencies": { + "dequal": "^2.0.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, "node_modules/diff-sequences": { "version": "29.6.3", "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.6.3.tgz", @@ -9049,18 +9704,6 @@ "node": ">=8" } }, - "node_modules/doctrine": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", - "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", - "dev": true, - "dependencies": { - "esutils": "^2.0.2" - }, - "engines": { - "node": ">=6.0.0" - } - }, "node_modules/dom-serializer": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-2.0.0.tgz", @@ -9202,10 +9845,25 @@ "node": ">=4" } }, + "node_modules/dunder-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", + "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.1", + "es-errors": "^1.3.0", + "gopd": "^1.2.0" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/electron-to-chromium": { - "version": "1.5.4", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.4.tgz", - "integrity": "sha512-orzA81VqLyIGUEA77YkVA1D+N+nNfl2isJVjjmOyrlxuooZ19ynb+dOlaDTqd/idKRS9lDCSBmtzM+kyCsMnkA==", + "version": "1.5.187", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.187.tgz", + "integrity": "sha512-cl5Jc9I0KGUoOoSbxvTywTa40uspGJt/BDBoDLoxJRSBpWh4FFXBsjNRHfQrONsV/OoEjDfHUmZQa2d6Ze4YgA==", "license": "ISC" }, "node_modules/emittery": { @@ -9284,52 +9942,66 @@ } }, "node_modules/es-abstract": { - "version": "1.22.4", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.22.4.tgz", - "integrity": "sha512-vZYJlk2u6qHYxBOTjAeg7qUxHdNfih64Uu2J8QqWgXZ2cri0ZpJAkzDUK/q593+mvKwlxyaxr6F1Q+3LKoQRgg==", + "version": "1.24.0", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.24.0.tgz", + "integrity": "sha512-WSzPgsdLtTcQwm4CROfS5ju2Wa1QQcVeT37jFjYzdFz1r9ahadC8B8/a4qxJxM+09F18iumCdRmlr96ZYkQvEg==", "dev": true, + "license": "MIT", "dependencies": { - "array-buffer-byte-length": "^1.0.1", - "arraybuffer.prototype.slice": "^1.0.3", - "available-typed-arrays": "^1.0.6", - "call-bind": "^1.0.7", - "es-define-property": "^1.0.0", + "array-buffer-byte-length": "^1.0.2", + "arraybuffer.prototype.slice": "^1.0.4", + "available-typed-arrays": "^1.0.7", + "call-bind": "^1.0.8", + "call-bound": "^1.0.4", + "data-view-buffer": "^1.0.2", + "data-view-byte-length": "^1.0.2", + "data-view-byte-offset": "^1.0.1", + "es-define-property": "^1.0.1", "es-errors": "^1.3.0", - "es-set-tostringtag": "^2.0.2", - "es-to-primitive": "^1.2.1", - "function.prototype.name": "^1.1.6", - "get-intrinsic": "^1.2.4", - "get-symbol-description": "^1.0.2", - "globalthis": "^1.0.3", - "gopd": "^1.0.1", + "es-object-atoms": "^1.1.1", + "es-set-tostringtag": "^2.1.0", + "es-to-primitive": "^1.3.0", + "function.prototype.name": "^1.1.8", + "get-intrinsic": "^1.3.0", + "get-proto": "^1.0.1", + "get-symbol-description": "^1.1.0", + "globalthis": "^1.0.4", + "gopd": "^1.2.0", "has-property-descriptors": "^1.0.2", - "has-proto": "^1.0.1", - "has-symbols": "^1.0.3", - "hasown": "^2.0.1", - "internal-slot": "^1.0.7", - "is-array-buffer": "^3.0.4", + "has-proto": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "internal-slot": "^1.1.0", + "is-array-buffer": "^3.0.5", "is-callable": "^1.2.7", - "is-negative-zero": "^2.0.2", - "is-regex": "^1.1.4", - "is-shared-array-buffer": "^1.0.2", - "is-string": "^1.0.7", - "is-typed-array": "^1.1.13", - "is-weakref": "^1.0.2", - "object-inspect": "^1.13.1", + "is-data-view": "^1.0.2", + "is-negative-zero": "^2.0.3", + "is-regex": "^1.2.1", + "is-set": "^2.0.3", + "is-shared-array-buffer": "^1.0.4", + "is-string": "^1.1.1", + "is-typed-array": "^1.1.15", + "is-weakref": "^1.1.1", + "math-intrinsics": "^1.1.0", + "object-inspect": "^1.13.4", "object-keys": "^1.1.1", - "object.assign": "^4.1.5", - "regexp.prototype.flags": "^1.5.2", - "safe-array-concat": "^1.1.0", - "safe-regex-test": "^1.0.3", - "string.prototype.trim": "^1.2.8", - "string.prototype.trimend": "^1.0.7", - "string.prototype.trimstart": "^1.0.7", - "typed-array-buffer": "^1.0.1", - "typed-array-byte-length": "^1.0.0", - "typed-array-byte-offset": "^1.0.0", - "typed-array-length": "^1.0.4", - "unbox-primitive": "^1.0.2", - "which-typed-array": "^1.1.14" + "object.assign": "^4.1.7", + "own-keys": "^1.0.1", + "regexp.prototype.flags": "^1.5.4", + "safe-array-concat": "^1.1.3", + "safe-push-apply": "^1.0.0", + "safe-regex-test": "^1.1.0", + "set-proto": "^1.0.0", + "stop-iteration-iterator": "^1.1.0", + "string.prototype.trim": "^1.2.10", + "string.prototype.trimend": "^1.0.9", + "string.prototype.trimstart": "^1.0.8", + "typed-array-buffer": "^1.0.3", + "typed-array-byte-length": "^1.0.3", + "typed-array-byte-offset": "^1.0.4", + "typed-array-length": "^1.0.7", + "unbox-primitive": "^1.1.0", + "which-typed-array": "^1.1.19" }, "engines": { "node": ">= 0.4" @@ -9338,20 +10010,12 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/es-array-method-boxes-properly": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/es-array-method-boxes-properly/-/es-array-method-boxes-properly-1.0.0.tgz", - "integrity": "sha512-wd6JXUmyHmt8T5a2xreUwKcGPq6f1f+WwIJkijUqiGcJz1qqnZgP6XIK+QyIWU5lT7imeNxUll48bziG+TSYcA==", - "dev": true - }, "node_modules/es-define-property": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.0.tgz", - "integrity": "sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ==", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", + "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", "dev": true, - "dependencies": { - "get-intrinsic": "^1.2.4" - }, + "license": "MIT", "engines": { "node": ">= 0.4" } @@ -9371,38 +10035,58 @@ "integrity": "sha512-cXLGjP0c4T3flZJKQSuziYoq7MlT+rnvfZjfp7h+I7K9BNX54kP9nyWvdbwjQ4u1iWbOL4u96fgeZLToQlZC7w==", "dev": true }, + "node_modules/es-object-atoms": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", + "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/es-set-tostringtag": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.3.tgz", - "integrity": "sha512-3T8uNMC3OQTHkFUsFq8r/BwAXLHvU/9O9mE0fBc/MY5iq/8H7ncvO947LmYA6ldWw9Uh8Yhf25zu6n7nML5QWQ==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz", + "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==", "dev": true, + "license": "MIT", "dependencies": { - "get-intrinsic": "^1.2.4", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.6", "has-tostringtag": "^1.0.2", - "hasown": "^2.0.1" + "hasown": "^2.0.2" }, "engines": { "node": ">= 0.4" } }, "node_modules/es-shim-unscopables": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.0.2.tgz", - "integrity": "sha512-J3yBRXCzDu4ULnQwxyToo/OjdMx6akgVC7K6few0a7F/0wLtmKKN7I73AH5T2836UuXRqN7Qg+IIUw/+YJksRw==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.1.0.tgz", + "integrity": "sha512-d9T8ucsEhh8Bi1woXCf+TIKDIROLG5WCkxg8geBCbvk22kzwC5G2OnXVMO6FUsvQlgUUXQ2itephWDLqDzbeCw==", "dev": true, + "license": "MIT", "dependencies": { - "hasown": "^2.0.0" + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" } }, "node_modules/es-to-primitive": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", - "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.3.0.tgz", + "integrity": "sha512-w+5mJ3GuFL+NjVtJlvydShqE1eN3h3PbI7/5LAsYJP/2qtuMXjfL2LpHSRqo4b4eSF5K/DH1JXKUAHSB2UW50g==", "dev": true, + "license": "MIT", "dependencies": { - "is-callable": "^1.1.4", - "is-date-object": "^1.0.1", - "is-symbol": "^1.0.2" + "is-callable": "^1.2.7", + "is-date-object": "^1.0.5", + "is-symbol": "^1.0.4" }, "engines": { "node": ">= 0.4" @@ -9453,9 +10137,10 @@ } }, "node_modules/escalade": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.2.tgz", - "integrity": "sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA==", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", + "license": "MIT", "engines": { "node": ">=6" } @@ -9470,147 +10155,293 @@ } }, "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.31.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.31.0.tgz", + "integrity": "sha512-QldCVh/ztyKJJZLr4jXNUByx3gR+TDYZCRXEktiZoUR3PGy4qCmSbkxcIle8GEwGpb5JBZazlaJ/CxLidXdEbQ==", "dev": true, + "license": "MIT", "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.12.1", + "@eslint/config-array": "^0.21.0", + "@eslint/config-helpers": "^0.3.0", + "@eslint/core": "^0.15.0", + "@eslint/eslintrc": "^3.3.1", + "@eslint/js": "9.31.0", + "@eslint/plugin-kit": "^0.3.1", + "@humanfs/node": "^0.16.6", "@humanwhocodes/module-importer": "^1.0.1", - "@nodelib/fs.walk": "^1.2.8", - "@ungap/structured-clone": "^1.2.0", + "@humanwhocodes/retry": "^0.4.2", + "@types/estree": "^1.0.6", + "@types/json-schema": "^7.0.15", "ajv": "^6.12.4", "chalk": "^4.0.0", - "cross-spawn": "^7.0.2", + "cross-spawn": "^7.0.6", "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.4.0", + "eslint-visitor-keys": "^4.2.1", + "espree": "^10.4.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", "minimatch": "^3.1.2", "natural-compare": "^1.4.0", - "optionator": "^0.9.3", - "strip-ansi": "^6.0.1", - "text-table": "^0.2.0" + "optionator": "^0.9.3" }, "bin": { "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-config-prettier": { - "version": "9.1.0", - "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-9.1.0.tgz", - "integrity": "sha512-NSWl5BFQWEPi1j4TjVNItzYV7dZXZ+wP6I6ZhrBGpChQhZRUaElihE9uRRkcbRnNb76UMKDF3r+WTmNcGPKsqw==", + "node_modules/eslint-compat-utils": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/eslint-compat-utils/-/eslint-compat-utils-0.5.1.tgz", + "integrity": "sha512-3z3vFexKIEnjHE3zCMRo6fn/e44U7T1khUjg+Hp0ZQMCigh28rALD0nPFBcGZuiLC5rLZa2ubQHDRln09JfU2Q==", "dev": true, - "bin": { - "eslint-config-prettier": "bin/cli.js" + "license": "MIT", + "dependencies": { + "semver": "^7.5.4" + }, + "engines": { + "node": ">=12" }, "peerDependencies": { - "eslint": ">=7.0.0" + "eslint": ">=6.0.0" } }, - "node_modules/eslint-import-resolver-node": { - "version": "0.3.9", - "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.9.tgz", - "integrity": "sha512-WFj2isz22JahUv+B788TlO3N6zL3nNJGU8CcZbPZvVEkBPaJdCV4vy5wyghty5ROFbCRnm132v8BScu5/1BQ8g==", + "node_modules/eslint-compat-utils/node_modules/semver": { + "version": "7.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz", + "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", "dev": true, - "dependencies": { - "debug": "^3.2.7", - "is-core-module": "^2.13.0", - "resolve": "^1.22.4" + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" } }, - "node_modules/eslint-import-resolver-node/node_modules/debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "node_modules/eslint-config-prettier": { + "version": "10.1.8", + "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-10.1.8.tgz", + "integrity": "sha512-82GZUjRS0p/jganf6q1rEO25VSoHH0hKPCTrgillPjdI/3bgBhAE1QzHrHTizjpRvy6pGAvKjDJtk2pF9NDq8w==", "dev": true, - "dependencies": { - "ms": "^2.1.1" + "license": "MIT", + "bin": { + "eslint-config-prettier": "bin/cli.js" + }, + "funding": { + "url": "https://opencollective.com/eslint-config-prettier" + }, + "peerDependencies": { + "eslint": ">=7.0.0" } }, - "node_modules/eslint-module-utils": { - "version": "2.8.1", - "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.8.1.tgz", - "integrity": "sha512-rXDXR3h7cs7dy9RNpUlQf80nX31XWJEyGq1tRMo+6GsO5VmTe4UTwtmonAD4ZkAsrfMVDA2wlGJ3790Ys+D49Q==", + "node_modules/eslint-config-webpack": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/eslint-config-webpack/-/eslint-config-webpack-4.4.1.tgz", + "integrity": "sha512-IPerJYT5ErPUbrVUCNVQF5RmCUrnA1Am8D1wJufetmEu4hsZXzigy4wP6uroLv8s9GBpiEPM5NZ0PHmao4tUMw==", "dev": true, + "license": "MIT", "dependencies": { - "debug": "^3.2.7" + "detect-indent": "^7.0.1", + "jsonc-eslint-parser": "^2.4.0", + "semver": "^7.7.2", + "sort-package-json": "^3.3.1" }, "engines": { - "node": ">=4" + "node": ">= 18.20.0" + }, + "peerDependencies": { + "@eslint/js": ">= 9.28.0", + "@eslint/markdown": ">= 6.5.0", + "@stylistic/eslint-plugin": ">= 4.4.1", + "eslint": ">= 9.28.0", + "eslint-config-prettier": "^10.1.5", + "eslint-plugin-import": ">= 2.31.0", + "eslint-plugin-jest": ">= 28.12.0", + "eslint-plugin-jsdoc": ">= 50.7.1", + "eslint-plugin-n": ">= 17.19.0", + "eslint-plugin-prettier": ">= 5.4.1", + "eslint-plugin-react": ">= 7.37.5", + "eslint-plugin-unicorn": ">= 59.0.1", + "globals": ">= 16.2.0", + "prettier": ">= 3.5.3", + "typescript": ">= 5.0.0", + "typescript-eslint": ">= 8.34.0" }, "peerDependenciesMeta": { - "eslint": { + "@eslint/markdown": { "optional": true - } - } - }, - "node_modules/eslint-module-utils/node_modules/debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dev": true, + }, + "eslint-plugin-jest": { + "optional": true + }, + "eslint-plugin-jsdoc": { + "optional": true + }, + "eslint-plugin-n": { + "optional": true + }, + "eslint-plugin-react": { + "optional": true + }, + "typescript": { + "optional": true + }, + "typescript-eslint": { + "optional": true + } + } + }, + "node_modules/eslint-config-webpack/node_modules/detect-indent": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/detect-indent/-/detect-indent-7.0.1.tgz", + "integrity": "sha512-Mc7QhQ8s+cLrnUfU/Ji94vG/r8M26m8f++vyres4ZoojaRDpZ1eSIh/EpzLNwlWuvzSZ3UbDFspjFvTDXe6e/g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12.20" + } + }, + "node_modules/eslint-config-webpack/node_modules/semver": { + "version": "7.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz", + "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/eslint-import-resolver-node": { + "version": "0.3.9", + "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.9.tgz", + "integrity": "sha512-WFj2isz22JahUv+B788TlO3N6zL3nNJGU8CcZbPZvVEkBPaJdCV4vy5wyghty5ROFbCRnm132v8BScu5/1BQ8g==", + "dev": true, + "dependencies": { + "debug": "^3.2.7", + "is-core-module": "^2.13.0", + "resolve": "^1.22.4" + } + }, + "node_modules/eslint-import-resolver-node/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/eslint-module-utils": { + "version": "2.12.1", + "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.12.1.tgz", + "integrity": "sha512-L8jSWTze7K2mTg0vos/RuLRS5soomksDPoJLXIslC7c8Wmut3bx7CPpJijDcBZtxQ5lrbUdM+s0OlNbz0DCDNw==", + "dev": true, + "license": "MIT", + "dependencies": { + "debug": "^3.2.7" + }, + "engines": { + "node": ">=4" + }, + "peerDependenciesMeta": { + "eslint": { + "optional": true + } + } + }, + "node_modules/eslint-module-utils/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "license": "MIT", "dependencies": { "ms": "^2.1.1" } }, + "node_modules/eslint-plugin-es-x": { + "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==", + "dev": true, + "funding": [ + "https://github.com/sponsors/ota-meshi", + "https://opencollective.com/eslint" + ], + "license": "MIT", + "dependencies": { + "@eslint-community/eslint-utils": "^4.1.2", + "@eslint-community/regexpp": "^4.11.0", + "eslint-compat-utils": "^0.5.1" + }, + "engines": { + "node": "^14.18.0 || >=16.0.0" + }, + "peerDependencies": { + "eslint": ">=8" + } + }, "node_modules/eslint-plugin-import": { - "version": "2.29.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.29.1.tgz", - "integrity": "sha512-BbPC0cuExzhiMo4Ff1BTVwHpjjv28C5R+btTOGaCRC7UEz801up0JadwkeSk5Ued6TG34uaczuVuH6qyy5YUxw==", + "version": "2.32.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.32.0.tgz", + "integrity": "sha512-whOE1HFo/qJDyX4SnXzP4N6zOWn79WhnCUY/iDR0mPfQZO8wcYE4JClzI2oZrhBnnMUCBCHZhO6VQyoBU95mZA==", "dev": true, + "license": "MIT", "dependencies": { - "array-includes": "^3.1.7", - "array.prototype.findlastindex": "^1.2.3", - "array.prototype.flat": "^1.3.2", - "array.prototype.flatmap": "^1.3.2", + "@rtsao/scc": "^1.1.0", + "array-includes": "^3.1.9", + "array.prototype.findlastindex": "^1.2.6", + "array.prototype.flat": "^1.3.3", + "array.prototype.flatmap": "^1.3.3", "debug": "^3.2.7", "doctrine": "^2.1.0", "eslint-import-resolver-node": "^0.3.9", - "eslint-module-utils": "^2.8.0", - "hasown": "^2.0.0", - "is-core-module": "^2.13.1", + "eslint-module-utils": "^2.12.1", + "hasown": "^2.0.2", + "is-core-module": "^2.16.1", "is-glob": "^4.0.3", "minimatch": "^3.1.2", - "object.fromentries": "^2.0.7", - "object.groupby": "^1.0.1", - "object.values": "^1.1.7", + "object.fromentries": "^2.0.8", + "object.groupby": "^1.0.3", + "object.values": "^1.2.1", "semver": "^6.3.1", + "string.prototype.trimend": "^1.0.9", "tsconfig-paths": "^3.15.0" }, "engines": { "node": ">=4" }, "peerDependencies": { - "eslint": "^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8" + "eslint": "^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8 || ^9" } }, "node_modules/eslint-plugin-import/node_modules/debug": { @@ -9634,400 +10465,740 @@ "node": ">=0.10.0" } }, - "node_modules/eslint-scope": { - "version": "7.2.2", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz", - "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", + "node_modules/eslint-plugin-jest": { + "version": "29.0.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-jest/-/eslint-plugin-jest-29.0.1.tgz", + "integrity": "sha512-EE44T0OSMCeXhDrrdsbKAhprobKkPtJTbQz5yEktysNpHeDZTAL1SfDTNKmcFfJkY6yrQLtTKZALrD3j/Gpmiw==", "dev": true, + "license": "MIT", "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^5.2.0" + "@typescript-eslint/utils": "^8.0.0" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^20.12.0 || ^22.0.0 || >=24.0.0" }, - "funding": { - "url": "https://opencollective.com/eslint" + "peerDependencies": { + "@typescript-eslint/eslint-plugin": "^8.0.0", + "eslint": "^8.57.0 || ^9.0.0", + "jest": "*" + }, + "peerDependenciesMeta": { + "@typescript-eslint/eslint-plugin": { + "optional": true + }, + "jest": { + "optional": true + } } }, - "node_modules/eslint-visitor-keys": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", - "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", + "node_modules/eslint-plugin-jsdoc": { + "version": "51.4.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-jsdoc/-/eslint-plugin-jsdoc-51.4.1.tgz", + "integrity": "sha512-y4CA9OkachG8v5nAtrwvcvjIbdcKgSyS6U//IfQr4FZFFyeBFwZFf/tfSsMr46mWDJgidZjBTqoCRlXywfFBMg==", "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "@es-joy/jsdoccomment": "~0.52.0", + "are-docs-informative": "^0.0.2", + "comment-parser": "1.4.1", + "debug": "^4.4.1", + "escape-string-regexp": "^4.0.0", + "espree": "^10.4.0", + "esquery": "^1.6.0", + "parse-imports-exports": "^0.2.4", + "semver": "^7.7.2", + "spdx-expression-parse": "^4.0.0" + }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": ">=20.11.0" }, - "funding": { - "url": "https://opencollective.com/eslint" + "peerDependencies": { + "eslint": "^7.0.0 || ^8.0.0 || ^9.0.0" } }, - "node_modules/eslint/node_modules/ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "node_modules/eslint-plugin-jsdoc/node_modules/debug": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.1.tgz", + "integrity": "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==", "dev": true, + "license": "MIT", "dependencies": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" + "ms": "^2.1.3" }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } } }, - "node_modules/eslint/node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "node_modules/eslint-plugin-jsdoc/node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", "dev": true, + "license": "MIT", "engines": { - "node": ">=8" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/eslint/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "node_modules/eslint-plugin-jsdoc/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", "dev": true, - "dependencies": { - "color-convert": "^2.0.1" + "license": "MIT" + }, + "node_modules/eslint-plugin-jsdoc/node_modules/semver": { + "version": "7.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz", + "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" }, "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" + "node": ">=10" } }, - "node_modules/eslint/node_modules/argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true + "node_modules/eslint-plugin-jsdoc/node_modules/spdx-expression-parse": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-4.0.0.tgz", + "integrity": "sha512-Clya5JIij/7C6bRR22+tnGXbc4VKlibKSVj2iHvVeX5iMW7s1SIQlqu699JkODJJIhh/pUu8L0/VLh8xflD+LQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "spdx-exceptions": "^2.1.0", + "spdx-license-ids": "^3.0.0" + } }, - "node_modules/eslint/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "node_modules/eslint-plugin-n": { + "version": "17.21.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-n/-/eslint-plugin-n-17.21.0.tgz", + "integrity": "sha512-1+iZ8We4ZlwVMtb/DcHG3y5/bZOdazIpa/4TySo22MLKdwrLcfrX0hbadnCvykSQCCmkAnWmIP8jZVb2AAq29A==", "dev": true, + "license": "MIT", "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" + "@eslint-community/eslint-utils": "^4.5.0", + "enhanced-resolve": "^5.17.1", + "eslint-plugin-es-x": "^7.8.0", + "get-tsconfig": "^4.8.1", + "globals": "^15.11.0", + "ignore": "^5.3.2", + "minimatch": "^9.0.5", + "semver": "^7.6.3", + "ts-declaration-location": "^1.0.6" }, "engines": { - "node": ">=10" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" + "url": "https://opencollective.com/eslint" + }, + "peerDependencies": { + "eslint": ">=8.23.0" } }, - "node_modules/eslint/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "node_modules/eslint-plugin-n/node_modules/brace-expansion": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz", + "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==", "dev": true, + "license": "MIT", "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" + "balanced-match": "^1.0.0" } }, - "node_modules/eslint/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/eslint/node_modules/escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "node_modules/eslint-plugin-n/node_modules/globals": { + "version": "15.15.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-15.15.0.tgz", + "integrity": "sha512-7ACyT3wmyp3I61S4fG682L0VA2RGD9otkqGJIwNUMF1SWUombIIk+af1unuDYgMm082aHYwD+mzJvv9Iu8dsgg==", "dev": true, + "license": "MIT", "engines": { - "node": ">=10" + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/eslint/node_modules/file-entry-cache": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", - "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", + "node_modules/eslint-plugin-n/node_modules/minimatch": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", "dev": true, + "license": "ISC", "dependencies": { - "flat-cache": "^3.0.4" + "brace-expansion": "^2.0.1" }, "engines": { - "node": "^10.12.0 || >=12.0.0" + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/eslint/node_modules/flat-cache": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.2.0.tgz", - "integrity": "sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==", + "node_modules/eslint-plugin-n/node_modules/semver": { + "version": "7.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz", + "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", "dev": true, - "dependencies": { - "flatted": "^3.2.9", - "keyv": "^4.5.3", - "rimraf": "^3.0.2" + "license": "ISC", + "bin": { + "semver": "bin/semver.js" }, "engines": { - "node": "^10.12.0 || >=12.0.0" + "node": ">=10" } }, - "node_modules/eslint/node_modules/glob-parent": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", - "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "node_modules/eslint-plugin-prettier": { + "version": "5.5.3", + "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-5.5.3.tgz", + "integrity": "sha512-NAdMYww51ehKfDyDhv59/eIItUVzU0Io9H2E8nHNGKEeeqlnci+1gCvrHib6EmZdf6GxF+LCV5K7UC65Ezvw7w==", "dev": true, + "license": "MIT", "dependencies": { - "is-glob": "^4.0.3" + "prettier-linter-helpers": "^1.0.0", + "synckit": "^0.11.7" }, "engines": { - "node": ">=10.13.0" + "node": "^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint-plugin-prettier" + }, + "peerDependencies": { + "@types/eslint": ">=8.0.0", + "eslint": ">=8.0.0", + "eslint-config-prettier": ">= 7.0.0 <10.0.0 || >=10.1.0", + "prettier": ">=3.0.0" + }, + "peerDependenciesMeta": { + "@types/eslint": { + "optional": true + }, + "eslint-config-prettier": { + "optional": true + } } }, - "node_modules/eslint/node_modules/globals": { - "version": "13.24.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", - "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", + "node_modules/eslint-plugin-unicorn": { + "version": "60.0.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-unicorn/-/eslint-plugin-unicorn-60.0.0.tgz", + "integrity": "sha512-QUzTefvP8stfSXsqKQ+vBQSEsXIlAiCduS/V1Em+FKgL9c21U/IIm20/e3MFy1jyCf14tHAhqC1sX8OTy6VUCg==", "dev": true, + "license": "MIT", "dependencies": { - "type-fest": "^0.20.2" + "@babel/helper-validator-identifier": "^7.27.1", + "@eslint-community/eslint-utils": "^4.7.0", + "@eslint/plugin-kit": "^0.3.3", + "change-case": "^5.4.4", + "ci-info": "^4.3.0", + "clean-regexp": "^1.0.0", + "core-js-compat": "^3.44.0", + "esquery": "^1.6.0", + "find-up-simple": "^1.0.1", + "globals": "^16.3.0", + "indent-string": "^5.0.0", + "is-builtin-module": "^5.0.0", + "jsesc": "^3.1.0", + "pluralize": "^8.0.0", + "regexp-tree": "^0.1.27", + "regjsparser": "^0.12.0", + "semver": "^7.7.2", + "strip-indent": "^4.0.0" }, "engines": { - "node": ">=8" + "node": "^20.10.0 || >=21.0.0" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://github.com/sindresorhus/eslint-plugin-unicorn?sponsor=1" + }, + "peerDependencies": { + "eslint": ">=9.29.0" } }, - "node_modules/eslint/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "node_modules/eslint-plugin-unicorn/node_modules/ci-info": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-4.3.0.tgz", + "integrity": "sha512-l+2bNRMiQgcfILUi33labAZYIWlH1kWDp+ecNo5iisRKrbm0xcRyCww71/YU0Fkw0mAFpz9bJayXPjey6vkmaQ==", "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/eslint/node_modules/js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/sibiraj-s" + } + ], + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/eslint-plugin-unicorn/node_modules/indent-string": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-5.0.0.tgz", + "integrity": "sha512-m6FAo/spmsW2Ab2fU35JTYwtOKa2yAwXSwgjSv1TJzh4Mh7mC3lzAOVLBprb72XsTrgkEIsl7YrFNAiDiRhIGg==", "dev": true, - "dependencies": { - "argparse": "^2.0.1" + "license": "MIT", + "engines": { + "node": ">=12" }, - "bin": { - "js-yaml": "bin/js-yaml.js" + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/eslint/node_modules/json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true - }, - "node_modules/eslint/node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "node_modules/eslint-plugin-unicorn/node_modules/jsesc": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", + "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", "dev": true, - "dependencies": { - "ansi-regex": "^5.0.1" + "license": "MIT", + "bin": { + "jsesc": "bin/jsesc" }, "engines": { - "node": ">=8" + "node": ">=6" } }, - "node_modules/eslint/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "node_modules/eslint-plugin-unicorn/node_modules/regjsparser": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.12.0.tgz", + "integrity": "sha512-cnE+y8bz4NhMjISKbgeVJtqNbtf5QpjZP+Bslo+UqkIt9QPnX9q095eiRRASJG1/tz6dlNr6Z5NsBiWYokp6EQ==", "dev": true, + "license": "BSD-2-Clause", "dependencies": { - "has-flag": "^4.0.0" + "jsesc": "~3.0.2" + }, + "bin": { + "regjsparser": "bin/parser" + } + }, + "node_modules/eslint-plugin-unicorn/node_modules/regjsparser/node_modules/jsesc": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.0.2.tgz", + "integrity": "sha512-xKqzzWXDttJuOcawBt4KnKHHIf5oQ/Cxax+0PWFG+DFDgHNAdi+TXECADI+RYiFUMmx8792xsMbbgXj4CwnP4g==", + "dev": true, + "license": "MIT", + "bin": { + "jsesc": "bin/jsesc" }, "engines": { - "node": ">=8" + "node": ">=6" } }, - "node_modules/eslint/node_modules/type-fest": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "node_modules/eslint-plugin-unicorn/node_modules/semver": { + "version": "7.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz", + "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, "engines": { "node": ">=10" + } + }, + "node_modules/eslint-plugin-unicorn/node_modules/strip-indent": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-4.0.0.tgz", + "integrity": "sha512-mnVSV2l+Zv6BLpSD/8V87CW/y9EmmbYzGCIavsnsI6/nwn26DwffM/yztm30Z/I2DY9wdS3vXVCMnHDgZaVNoA==", + "dev": true, + "license": "MIT", + "dependencies": { + "min-indent": "^1.0.1" + }, + "engines": { + "node": ">=12" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/espree": { - "version": "9.6.1", - "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", - "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", + "node_modules/eslint-scope": { + "version": "8.4.0", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.4.0.tgz", + "integrity": "sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg==", "dev": true, + "license": "BSD-2-Clause", "dependencies": { - "acorn": "^8.9.0", - "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^3.4.1" + "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/esprima": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", "dev": true, - "bin": { - "esparse": "bin/esparse.js", - "esvalidate": "bin/esvalidate.js" - }, "engines": { - "node": ">=4" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" } }, - "node_modules/esquery": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz", - "integrity": "sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==", + "node_modules/eslint/node_modules/@eslint/core": { + "version": "0.15.1", + "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.15.1.tgz", + "integrity": "sha512-bkOp+iumZCCbt1K1CmWf0R9pM5yKpDv+ZXtvSyQpudrI9kuFLp+bM2WOPXImuD/ceQuaa8f5pj93Y7zyECIGNA==", "dev": true, + "license": "Apache-2.0", "dependencies": { - "estraverse": "^5.1.0" + "@types/json-schema": "^7.0.15" }, "engines": { - "node": ">=0.10" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" } }, - "node_modules/esrecurse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", - "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "node_modules/eslint/node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", "dev": true, "dependencies": { - "estraverse": "^5.2.0" + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" }, - "engines": { - "node": ">=4.0" + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" } }, - "node_modules/estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "node_modules/eslint/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, "engines": { - "node": ">=4.0" + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "node_modules/eslint/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, "engines": { - "node": ">=0.10.0" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/eventemitter3": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.1.tgz", - "integrity": "sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA==", - "dev": true, - "license": "MIT" - }, - "node_modules/events": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", - "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", + "node_modules/eslint/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, "engines": { - "node": ">=0.8.x" + "node": ">=7.0.0" } }, - "node_modules/execa": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", - "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", + "node_modules/eslint/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/eslint/node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", "dev": true, - "dependencies": { - "cross-spawn": "^7.0.3", - "get-stream": "^6.0.0", - "human-signals": "^2.1.0", - "is-stream": "^2.0.0", - "merge-stream": "^2.0.0", - "npm-run-path": "^4.0.1", - "onetime": "^5.1.2", - "signal-exit": "^3.0.3", - "strip-final-newline": "^2.0.0" - }, "engines": { "node": ">=10" }, "funding": { - "url": "https://github.com/sindresorhus/execa?sponsor=1" + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/exit": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", - "integrity": "sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==", + "node_modules/eslint/node_modules/eslint-visitor-keys": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz", + "integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==", "dev": true, + "license": "Apache-2.0", "engines": { - "node": ">= 0.8.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" } }, - "node_modules/expect": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/expect/-/expect-29.7.0.tgz", - "integrity": "sha512-2Zks0hf1VLFYI1kbh0I5jP3KHHyCHpkfyHBzsSXRFgl/Bg9mWYfMW8oD+PdMPlEwy5HNsR9JutYy6pMeOh61nw==", + "node_modules/eslint/node_modules/file-entry-cache": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz", + "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==", "dev": true, + "license": "MIT", "dependencies": { - "@jest/expect-utils": "^29.7.0", - "jest-get-type": "^29.6.3", - "jest-matcher-utils": "^29.7.0", - "jest-message-util": "^29.7.0", - "jest-util": "^29.7.0" + "flat-cache": "^4.0.0" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": ">=16.0.0" } }, - "node_modules/fast-deep-equal": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" - }, - "node_modules/fast-equals": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/fast-equals/-/fast-equals-5.0.1.tgz", - "integrity": "sha512-WF1Wi8PwwSY7/6Kx0vKXtw8RwuSGoM1bvDaJbu7MxDlR1vovZjIAKrnzyrThgAjm6JDTu0fVgWXDlMGspodfoQ==", + "node_modules/eslint/node_modules/flat-cache": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz", + "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==", "dev": true, "license": "MIT", + "dependencies": { + "flatted": "^3.2.9", + "keyv": "^4.5.4" + }, "engines": { - "node": ">=6.0.0" + "node": ">=16" } }, - "node_modules/fast-glob": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.2.tgz", - "integrity": "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==", + "node_modules/eslint/node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", "dev": true, "dependencies": { - "@nodelib/fs.stat": "^2.0.2", + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/eslint/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/eslint/node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, + "node_modules/eslint/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/espree": { + "version": "10.4.0", + "resolved": "https://registry.npmjs.org/espree/-/espree-10.4.0.tgz", + "integrity": "sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "acorn": "^8.15.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^4.2.1" + }, + "engines": { + "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.2.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz", + "integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true, + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/esquery": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.6.0.tgz", + "integrity": "sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "estraverse": "^5.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/eventemitter3": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.1.tgz", + "integrity": "sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA==", + "dev": true, + "license": "MIT" + }, + "node_modules/events": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", + "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", + "dev": true, + "engines": { + "node": ">=0.8.x" + } + }, + "node_modules/execa": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", + "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", + "dev": true, + "dependencies": { + "cross-spawn": "^7.0.3", + "get-stream": "^6.0.0", + "human-signals": "^2.1.0", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.1", + "onetime": "^5.1.2", + "signal-exit": "^3.0.3", + "strip-final-newline": "^2.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" + } + }, + "node_modules/exit": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", + "integrity": "sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==", + "dev": true, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/expect": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/expect/-/expect-29.7.0.tgz", + "integrity": "sha512-2Zks0hf1VLFYI1kbh0I5jP3KHHyCHpkfyHBzsSXRFgl/Bg9mWYfMW8oD+PdMPlEwy5HNsR9JutYy6pMeOh61nw==", + "dev": true, + "dependencies": { + "@jest/expect-utils": "^29.7.0", + "jest-get-type": "^29.6.3", + "jest-matcher-utils": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" + }, + "node_modules/fast-diff": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.3.0.tgz", + "integrity": "sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw==", + "dev": true, + "license": "Apache-2.0" + }, + "node_modules/fast-equals": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/fast-equals/-/fast-equals-5.0.1.tgz", + "integrity": "sha512-WF1Wi8PwwSY7/6Kx0vKXtw8RwuSGoM1bvDaJbu7MxDlR1vovZjIAKrnzyrThgAjm6JDTu0fVgWXDlMGspodfoQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/fast-glob": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.2.tgz", + "integrity": "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==", + "dev": true, + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", "@nodelib/fs.walk": "^1.2.3", "glob-parent": "^5.1.2", "merge2": "^1.3.0", @@ -10058,6 +11229,20 @@ "reusify": "^1.0.4" } }, + "node_modules/fault": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/fault/-/fault-2.0.1.tgz", + "integrity": "sha512-WtySTkS4OKev5JtpHXnib4Gxiurzh5NCGvWrFaZ34m6JehfTUhKZvn9njTfw48t6JumVQOmrKqpmGcdwxnhqBQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "format": "^0.2.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, "node_modules/fb-watchman": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.2.tgz", @@ -10067,6 +11252,21 @@ "bser": "2.1.1" } }, + "node_modules/fdir": { + "version": "6.4.6", + "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.4.6.tgz", + "integrity": "sha512-hiFoqpyZcfNm1yc4u8oWCf9A2c4D3QjCrks3zmoVKVxpQRzmPNar1hUJcBG2RQHvEVGDN+Jm81ZheVLAQMK6+w==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "picomatch": "^3 || ^4" + }, + "peerDependenciesMeta": { + "picomatch": { + "optional": true + } + } + }, "node_modules/figures": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/figures/-/figures-3.2.0.tgz", @@ -10125,9 +11325,9 @@ } }, "node_modules/find-up-simple": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/find-up-simple/-/find-up-simple-1.0.0.tgz", - "integrity": "sha512-q7Us7kcjj2VMePAa02hDAF6d+MzsdsAWEwYyOpwUtlerRBkOEPBCRZrAV4XfcSN8fHAgaD0hP7miwoay6DCprw==", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/find-up-simple/-/find-up-simple-1.0.1.tgz", + "integrity": "sha512-afd4O7zpqHeRyg4PfDQsXmlDe2PfdHtJt6Akt8jOWaApLOZk5JXs6VMR29lz03pRe9mpykrRCYIYxaJYcfpncQ==", "dev": true, "license": "MIT", "engines": { @@ -10158,12 +11358,28 @@ "dev": true }, "node_modules/for-each": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", - "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.5.tgz", + "integrity": "sha512-dKx12eRCVIzqCxFGplyFKJMPvLEWgmNtUrpTiJIR5u97zEhRG8ySrtboPHZXx7daLxQVrl643cTzbab2tkQjxg==", "dev": true, + "license": "MIT", "dependencies": { - "is-callable": "^1.1.3" + "is-callable": "^1.2.7" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/format": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/format/-/format-0.2.2.tgz", + "integrity": "sha512-wzsgA6WOq+09wrU1tsJ09udeR/YZRaeArL9e1wPbFg3GG2yDnC2ldKpxs4xunpFF9DgqCqOIra3bc1HWrJ37Ww==", + "dev": true, + "engines": { + "node": ">=0.4.x" } }, "node_modules/fs-readdir-recursive": { @@ -10202,15 +11418,18 @@ } }, "node_modules/function.prototype.name": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.6.tgz", - "integrity": "sha512-Z5kx79swU5P27WEayXM1tBi5Ze/lbIyiNgU3qyXUOf9b2rgXYyF9Dy9Cx+IQv/Lc8WCG6L82zwUPpSS9hGehIg==", + "version": "1.1.8", + "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.8.tgz", + "integrity": "sha512-e5iwyodOHhbMr/yNrc7fDYG4qlbIvI5gajyzPnb5TCwyhjApznQh1BMFou9b30SevY43gCJKXycoCBjMbsuW0Q==", "dev": true, + "license": "MIT", "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "es-abstract": "^1.22.1", - "functions-have-names": "^1.2.3" + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", + "define-properties": "^1.2.1", + "functions-have-names": "^1.2.3", + "hasown": "^2.0.2", + "is-callable": "^1.2.7" }, "engines": { "node": ">= 0.4" @@ -10224,6 +11443,7 @@ "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", "dev": true, + "license": "MIT", "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -10270,16 +11490,22 @@ } }, "node_modules/get-intrinsic": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.4.tgz", - "integrity": "sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", + "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", "dev": true, + "license": "MIT", "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "es-define-property": "^1.0.1", "es-errors": "^1.3.0", + "es-object-atoms": "^1.1.1", "function-bind": "^1.1.2", - "has-proto": "^1.0.1", - "has-symbols": "^1.0.3", - "hasown": "^2.0.0" + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "math-intrinsics": "^1.1.0" }, "engines": { "node": ">= 0.4" @@ -10529,6 +11755,20 @@ "node": ">=10" } }, + "node_modules/get-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", + "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", + "dev": true, + "license": "MIT", + "dependencies": { + "dunder-proto": "^1.0.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/get-stdin": { "version": "9.0.0", "resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-9.0.0.tgz", @@ -10554,14 +11794,15 @@ } }, "node_modules/get-symbol-description": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.2.tgz", - "integrity": "sha512-g0QYk1dZBxGwk+Ngc+ltRH2IBp2f7zBkBMBJZCDerh6EhlhSR6+9irMCuT/09zD6qkarHUSn529sK/yL4S27mg==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.1.0.tgz", + "integrity": "sha512-w9UMqWwJxHNOvoNzSJ2oPF5wvYcvP7jUvYzhp67yEhTi17ZDBBC1z9pTdGuzjD+EFIqLSYRweZjqfiPzQ06Ebg==", "dev": true, + "license": "MIT", "dependencies": { - "call-bind": "^1.0.5", + "call-bound": "^1.0.3", "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.4" + "get-intrinsic": "^1.2.6" }, "engines": { "node": ">= 0.4" @@ -10570,13 +11811,36 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/git-raw-commits": { - "version": "2.0.11", - "resolved": "https://registry.npmjs.org/git-raw-commits/-/git-raw-commits-2.0.11.tgz", - "integrity": "sha512-VnctFhw+xfj8Va1xtfEqCUD2XDrbAPSJx+hSrE5K7fGdjZruW7XV+QOrN7LF/RJyvspRiD2I0asWsxFp0ya26A==", + "node_modules/get-tsconfig": { + "version": "4.10.1", + "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.10.1.tgz", + "integrity": "sha512-auHyJ4AgMz7vgS8Hp3N6HXSmlMdUyhSUrfBF16w153rxtLIEOE+HGqaBppczZvnHLqQJfiHotCYpNhl0lUROFQ==", "dev": true, + "license": "MIT", "dependencies": { - "dargs": "^7.0.0", + "resolve-pkg-maps": "^1.0.0" + }, + "funding": { + "url": "https://github.com/privatenumber/get-tsconfig?sponsor=1" + } + }, + "node_modules/git-hooks-list": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/git-hooks-list/-/git-hooks-list-4.1.1.tgz", + "integrity": "sha512-cmP497iLq54AZnv4YRAEMnEyQ1eIn4tGKbmswqwmFV4GBnAqE8NLtWxxdXa++AalfgL5EBH4IxTPyquEuGY/jA==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/fisker/git-hooks-list?sponsor=1" + } + }, + "node_modules/git-raw-commits": { + "version": "2.0.11", + "resolved": "https://registry.npmjs.org/git-raw-commits/-/git-raw-commits-2.0.11.tgz", + "integrity": "sha512-VnctFhw+xfj8Va1xtfEqCUD2XDrbAPSJx+hSrE5K7fGdjZruW7XV+QOrN7LF/RJyvspRiD2I0asWsxFp0ya26A==", + "dev": true, + "dependencies": { + "dargs": "^7.0.0", "lodash": "^4.17.15", "meow": "^8.0.0", "split2": "^3.0.0", @@ -11121,6 +12385,13 @@ "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==", "dev": true }, + "node_modules/github-slugger": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/github-slugger/-/github-slugger-2.0.0.tgz", + "integrity": "sha512-IaOQ9puYtjrkq7Y0Ygl9KDZnrf/aiUJYUpVf89y8kyaxbRG7Y1SrX/jaumrv81vc61+kiMempujsM3Yw7w5qcw==", + "dev": true, + "license": "ISC" + }, "node_modules/glob": { "version": "7.2.3", "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", @@ -11175,22 +12446,27 @@ } }, "node_modules/globals": { - "version": "11.12.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", - "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", + "version": "16.3.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-16.3.0.tgz", + "integrity": "sha512-bqWEnJ1Nt3neqx2q5SFfGS8r/ahumIakg3HcwtNlrVlwXIeNumWn/c7Pn/wKzGhf6SaW6H6uWXLqC30STCMchQ==", "dev": true, "license": "MIT", "engines": { - "node": ">=4" + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/globalthis": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.3.tgz", - "integrity": "sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==", + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.4.tgz", + "integrity": "sha512-DpLKbNU4WylpxJykQujfCcwYWiV/Jhm50Goo0wrVILAv5jOr9d+H+UR3PhSCD2rCCEIg0uc+G+muBTwD54JhDQ==", "dev": true, + "license": "MIT", "dependencies": { - "define-properties": "^1.1.3" + "define-properties": "^1.2.1", + "gopd": "^1.0.1" }, "engines": { "node": ">= 0.4" @@ -11229,12 +12505,13 @@ } }, "node_modules/gopd": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", - "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", + "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", "dev": true, - "dependencies": { - "get-intrinsic": "^1.1.3" + "license": "MIT", + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -11245,12 +12522,6 @@ "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==" }, - "node_modules/graphemer": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", - "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", - "dev": true - }, "node_modules/handlebars": { "version": "4.7.8", "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.7.8.tgz", @@ -11282,10 +12553,14 @@ } }, "node_modules/has-bigints": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz", - "integrity": "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.1.0.tgz", + "integrity": "sha512-R3pbpkcIqv2Pm3dUwgjclDRVmWpTJW2DcMzcIhEXEx1oh/CEMObMm3KLmRJOdvhM7o4uQBnwr8pzRK2sJWIqfg==", "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -11322,10 +12597,14 @@ } }, "node_modules/has-proto": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.3.tgz", - "integrity": "sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q==", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.2.0.tgz", + "integrity": "sha512-KIL7eQPfHQRC8+XluaIw7BHUwwqL19bQn4hzNgdr+1wXoU0KKj6rufu47lhY7KbJR2C6T6+PfyN0Ea7wkSS+qQ==", "dev": true, + "license": "MIT", + "dependencies": { + "dunder-proto": "^1.0.0" + }, "engines": { "node": ">= 0.4" }, @@ -11334,10 +12613,11 @@ } }, "node_modules/has-symbols": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", - "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", + "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.4" }, @@ -11350,6 +12630,7 @@ "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", "dev": true, + "license": "MIT", "dependencies": { "has-symbols": "^1.0.3" }, @@ -11361,10 +12642,11 @@ } }, "node_modules/hasown": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.1.tgz", - "integrity": "sha512-1/th4MHjnwncwXsIW6QMzlvYL9kG5e/CpVvLRZe4XPa8TOUNbCELqmvhDmnkNsAjwaG4+I8gJJL0JBvTTLO9qA==", + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", "dev": true, + "license": "MIT", "dependencies": { "function-bind": "^1.1.2" }, @@ -11431,10 +12713,11 @@ } }, "node_modules/ignore": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.1.tgz", - "integrity": "sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw==", + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", + "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", "dev": true, + "license": "MIT", "engines": { "node": ">= 4" } @@ -11556,27 +12839,30 @@ } }, "node_modules/internal-slot": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.7.tgz", - "integrity": "sha512-NGnrKwXzSms2qUUih/ILZ5JBqNTSa1+ZmP6flaIp6KmSElgE9qdndzS3cqjrDovwFdmwsGsLdeFgB6suw+1e9g==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.1.0.tgz", + "integrity": "sha512-4gd7VpWNQNB4UKKCFFVcp1AVv+FMOgs9NKzjHKusc8jTMhd5eL1NqQqOpE0KzMds804/yHlglp3uxgluOqAPLw==", "dev": true, + "license": "MIT", "dependencies": { "es-errors": "^1.3.0", - "hasown": "^2.0.0", - "side-channel": "^1.0.4" + "hasown": "^2.0.2", + "side-channel": "^1.1.0" }, "engines": { "node": ">= 0.4" } }, "node_modules/is-array-buffer": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.4.tgz", - "integrity": "sha512-wcjaerHw0ydZwfhiKbXJWLDY8A7yV7KhjQOpb83hGgGfId/aQa4TOvwyzn2PuswW2gPCYEL/nEAiSVpdOj1lXw==", + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.5.tgz", + "integrity": "sha512-DDfANUiiG2wC1qawP66qlTugJeL5HyzMpfr8lLK+jMQirGzNod0B12cFB/9q838Ru27sBwfw78/rdoU7RERz6A==", "dev": true, + "license": "MIT", "dependencies": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.2.1" + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", + "get-intrinsic": "^1.2.6" }, "engines": { "node": ">= 0.4" @@ -11591,13 +12877,37 @@ "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", "dev": true }, + "node_modules/is-async-function": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-async-function/-/is-async-function-2.1.1.tgz", + "integrity": "sha512-9dgM/cZBnNvjzaMYHVoxxfPj2QXt22Ev7SuuPrs+xav0ukGB0S6d4ydZdEiM48kLx5kDV+QBPrpVnFyefL8kkQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "async-function": "^1.0.0", + "call-bound": "^1.0.3", + "get-proto": "^1.0.1", + "has-tostringtag": "^1.0.2", + "safe-regex-test": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/is-bigint": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", - "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.1.0.tgz", + "integrity": "sha512-n4ZT37wG78iz03xPRKJrHTdZbe3IicyucEtdRsV5yglwc3GyUfbAfpSeD0FJ41NbUNSt5wbhqfp1fS+BgnvDFQ==", "dev": true, + "license": "MIT", "dependencies": { - "has-bigints": "^1.0.1" + "has-bigints": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -11616,13 +12926,14 @@ } }, "node_modules/is-boolean-object": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz", - "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==", + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.2.2.tgz", + "integrity": "sha512-wa56o2/ElJMYqjCjGkXri7it5FbebW5usLw/nPmCMs5DeZ7eziSYZhSmPRn0txqeW4LnAmQQU7FgqLpsEFKM4A==", "dev": true, + "license": "MIT", "dependencies": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" + "call-bound": "^1.0.3", + "has-tostringtag": "^1.0.2" }, "engines": { "node": ">= 0.4" @@ -11631,11 +12942,28 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/is-builtin-module": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/is-builtin-module/-/is-builtin-module-5.0.0.tgz", + "integrity": "sha512-f4RqJKBUe5rQkJ2eJEJBXSticB3hGbN9j0yxxMQFqIW89Jp9WYFtzfTcRlstDKVUTRzSOTLKRfO9vIztenwtxA==", + "dev": true, + "license": "MIT", + "dependencies": { + "builtin-modules": "^5.0.0" + }, + "engines": { + "node": ">=18.20" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/is-callable": { "version": "1.2.7", "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.4" }, @@ -11644,24 +12972,48 @@ } }, "node_modules/is-core-module": { - "version": "2.13.1", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.13.1.tgz", - "integrity": "sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw==", + "version": "2.16.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz", + "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==", + "dev": true, + "license": "MIT", + "dependencies": { + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-data-view": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-data-view/-/is-data-view-1.0.2.tgz", + "integrity": "sha512-RKtWF8pGmS87i2D6gqQu/l7EYRlVdfzemCJN/P3UOs//x1QE7mfhvzHIApBTRf7axvT6DMGwSwBXYCT0nfB9xw==", "dev": true, + "license": "MIT", "dependencies": { - "hasown": "^2.0.0" + "call-bound": "^1.0.2", + "get-intrinsic": "^1.2.6", + "is-typed-array": "^1.1.13" + }, + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" } }, "node_modules/is-date-object": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz", - "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.1.0.tgz", + "integrity": "sha512-PwwhEakHVKTdRNVOw+/Gyh0+MzlCl4R6qKvkhuvLtPMggI1WAHt9sOwZxQLSGpUaDnrdyDsomoRgNnCfKNSXXg==", "dev": true, + "license": "MIT", "dependencies": { - "has-tostringtag": "^1.0.0" + "call-bound": "^1.0.2", + "has-tostringtag": "^1.0.2" }, "engines": { "node": ">= 0.4" @@ -11679,6 +13031,22 @@ "node": ">=0.10.0" } }, + "node_modules/is-finalizationregistry": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-finalizationregistry/-/is-finalizationregistry-1.1.1.tgz", + "integrity": "sha512-1pC6N8qWJbWoPtEjgcL2xyhQOP491EQjeUo3qTKcmV8YSDDJrOepfG8pcC7h/QgnQHYSv0mJ3Z/ZWxmatVrysg==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/is-fullwidth-code-point": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-4.0.0.tgz", @@ -11701,6 +13069,25 @@ "node": ">=6" } }, + "node_modules/is-generator-function": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.1.0.tgz", + "integrity": "sha512-nPUB5km40q9e8UfN/Zc24eLlzdSf9OfKByBw9CIdw4H1giPMeA0OIJvbchsCu4npfI2QcMVBsGEBHKZ7wLTWmQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3", + "get-proto": "^1.0.0", + "has-tostringtag": "^1.0.2", + "safe-regex-test": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/is-glob": { "version": "4.0.3", "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", @@ -11713,6 +13100,19 @@ "node": ">=0.10.0" } }, + "node_modules/is-map": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/is-map/-/is-map-2.0.3.tgz", + "integrity": "sha512-1Qed0/Hr2m+YqxnM09CjA2d/i6YZNfF6R2oRAOj36eUdS6qIV/huPJNSEpKbupewFs+ZsJlxsjjPbc0/afW6Lw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/is-negative-zero": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.3.tgz", @@ -11736,12 +13136,14 @@ } }, "node_modules/is-number-object": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz", - "integrity": "sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.1.1.tgz", + "integrity": "sha512-lZhclumE1G6VYD8VHe35wFaIif+CTy5SJIi5+3y4psDgWu4wPDoBhF8NxUOinEc7pHgiTsT6MaBb92rKhhD+Xw==", "dev": true, + "license": "MIT", "dependencies": { - "has-tostringtag": "^1.0.0" + "call-bound": "^1.0.3", + "has-tostringtag": "^1.0.2" }, "engines": { "node": ">= 0.4" @@ -11787,14 +13189,30 @@ } }, "node_modules/is-regex": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", - "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.2.1.tgz", + "integrity": "sha512-MjYsKHO5O7mCsmRGxWcLWheFqN9DJ/2TmngvjKXihe6efViPqc274+Fx/4fYj/r03+ESvBdTXK0V6tA3rgez1g==", "dev": true, + "license": "MIT", "dependencies": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" + "call-bound": "^1.0.2", + "gopd": "^1.2.0", + "has-tostringtag": "^1.0.2", + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-set": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/is-set/-/is-set-2.0.3.tgz", + "integrity": "sha512-iPAjerrse27/ygGLxw+EBR9agv9Y6uLeYVJMu+QNCoouJ1/1ri0mGrcWpfCqFZuzzx3WjtwxG098X+n4OuRkPg==", + "dev": true, + "license": "MIT", "engines": { "node": ">= 0.4" }, @@ -11803,12 +13221,13 @@ } }, "node_modules/is-shared-array-buffer": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.3.tgz", - "integrity": "sha512-nA2hv5XIhLR3uVzDDfCIknerhx8XUKnstuOERPNNIinXG7v9u+ohXF67vxm4TPTEPU6lm61ZkwP3c9PCB97rhg==", + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.4.tgz", + "integrity": "sha512-ISWac8drv4ZGfwKl5slpHG9OwPNty4jOWPRIhBpxOoD+hqITiwuipOQ2bNthAzwA3B4fIjO4Nln74N0S9byq8A==", "dev": true, + "license": "MIT", "dependencies": { - "call-bind": "^1.0.7" + "call-bound": "^1.0.3" }, "engines": { "node": ">= 0.4" @@ -11830,12 +13249,14 @@ } }, "node_modules/is-string": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", - "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.1.1.tgz", + "integrity": "sha512-BtEeSsoaQjlSPBemMQIrY1MY0uM6vnS1g5fmufYOtnxLGUZM2178PKbhsk7Ffv58IX+ZtcvoGwccYsh0PglkAA==", "dev": true, + "license": "MIT", "dependencies": { - "has-tostringtag": "^1.0.0" + "call-bound": "^1.0.3", + "has-tostringtag": "^1.0.2" }, "engines": { "node": ">= 0.4" @@ -11845,12 +13266,15 @@ } }, "node_modules/is-symbol": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz", - "integrity": "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.1.1.tgz", + "integrity": "sha512-9gGx6GTtCQM73BgmHQXfDmLtfjjTUDSyoxTCbp5WtoixAhfgsDirWIcVQ/IHpvI5Vgd5i/J5F7B9cN/WlVbC/w==", "dev": true, + "license": "MIT", "dependencies": { - "has-symbols": "^1.0.2" + "call-bound": "^1.0.2", + "has-symbols": "^1.1.0", + "safe-regex-test": "^1.1.0" }, "engines": { "node": ">= 0.4" @@ -11872,13 +13296,27 @@ } }, "node_modules/is-typed-array": { - "version": "1.1.13", - "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.13.tgz", - "integrity": "sha512-uZ25/bUAlUY5fR4OKT4rZQEBrzQWYV9ZJYGGsUmEJ6thodVJ1HX64ePQ6Z0qPWP+m+Uq6e9UugrE38jeYsDSMw==", + "version": "1.1.15", + "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.15.tgz", + "integrity": "sha512-p3EcsicXjit7SaskXHs1hA91QxgTw46Fv6EFKKGS5DRFLD8yKnohjF3hxoju94b/OcMZoQukzpPpBE9uLVKzgQ==", "dev": true, + "license": "MIT", "dependencies": { - "which-typed-array": "^1.1.14" + "which-typed-array": "^1.1.16" + }, + "engines": { + "node": ">= 0.4" }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-weakmap": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/is-weakmap/-/is-weakmap-2.0.2.tgz", + "integrity": "sha512-K5pXYOm9wqY1RgjpL3YTkF39tni1XajUIkawTLUo9EZEVUFga5gSQJF8nNS7ZwJQ02y+1YCNYcMh+HIf1ZqE+w==", + "dev": true, + "license": "MIT", "engines": { "node": ">= 0.4" }, @@ -11887,12 +13325,33 @@ } }, "node_modules/is-weakref": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", - "integrity": "sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.1.1.tgz", + "integrity": "sha512-6i9mGWSlqzNMEqpCp93KwRS1uUOodk2OJ6b+sq7ZPDSy2WuI5NFIxp/254TytR8ftefexkWn5xNiHUNpPOfSew==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-weakset": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-weakset/-/is-weakset-2.0.4.tgz", + "integrity": "sha512-mfcwb6IzQyOKTs84CQMrOwW4gQcaTOAWJ0zzJCl2WSPDrWk/OzDaImWFH3djXhb24g4eudZfLRozAvPGw4d9hQ==", "dev": true, + "license": "MIT", "dependencies": { - "call-bind": "^1.0.2" + "call-bound": "^1.0.3", + "get-intrinsic": "^1.2.6" + }, + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -11902,7 +13361,8 @@ "version": "2.0.5", "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/isexe": { "version": "2.0.0", @@ -13422,6 +14882,18 @@ "node": ">=8" } }, + "node_modules/jest-util/node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "license": "MIT", + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, "node_modules/jest-util/node_modules/supports-color": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", @@ -13685,6 +15157,16 @@ "js-yaml": "bin/js-yaml.js" } }, + "node_modules/jsdoc-type-pratt-parser": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/jsdoc-type-pratt-parser/-/jsdoc-type-pratt-parser-4.1.0.tgz", + "integrity": "sha512-Hicd6JK5Njt2QB6XYFS7ok9e37O8AYk3jTcppG4YVQnYjOemymvTcmc7OWsmq/Qqj5TdRFO5/x/tIPmBeRtGHg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12.0.0" + } + }, "node_modules/jsesc": { "version": "2.5.2", "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", @@ -13744,29 +15226,79 @@ "node": ">=6" } }, - "node_modules/jsonparse": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/jsonparse/-/jsonparse-1.3.1.tgz", - "integrity": "sha512-POQXvpdL69+CluYsillJ7SUhKvytYjW9vG/GKpnf+xP8UWgYEM/RaMzHHofbALDiKbbP1W8UEYmgGl39WkPZsg==", - "dev": true, - "engines": [ - "node >= 0.2.0" - ] - }, - "node_modules/JSONStream": { - "version": "1.3.5", - "resolved": "https://registry.npmjs.org/JSONStream/-/JSONStream-1.3.5.tgz", - "integrity": "sha512-E+iruNOY8VV9s4JEbe1aNEm6MiszPRr/UfcHMz0TQh1BXSxHK+ASV1R6W4HpjBhSeS+54PIsAMCBmwD06LLsqQ==", + "node_modules/jsonc-eslint-parser": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/jsonc-eslint-parser/-/jsonc-eslint-parser-2.4.0.tgz", + "integrity": "sha512-WYDyuc/uFcGp6YtM2H0uKmUwieOuzeE/5YocFJLnLfclZ4inf3mRn8ZVy1s7Hxji7Jxm6Ss8gqpexD/GlKoGgg==", "dev": true, + "license": "MIT", "dependencies": { - "jsonparse": "^1.2.0", - "through": ">=2.2.7 <3" - }, - "bin": { - "JSONStream": "bin.js" + "acorn": "^8.5.0", + "eslint-visitor-keys": "^3.0.0", + "espree": "^9.0.0", + "semver": "^7.3.5" }, "engines": { - "node": "*" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/ota-meshi" + } + }, + "node_modules/jsonc-eslint-parser/node_modules/espree": { + "version": "9.6.1", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", + "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "acorn": "^8.9.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^3.4.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/jsonc-eslint-parser/node_modules/semver": { + "version": "7.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz", + "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jsonparse": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/jsonparse/-/jsonparse-1.3.1.tgz", + "integrity": "sha512-POQXvpdL69+CluYsillJ7SUhKvytYjW9vG/GKpnf+xP8UWgYEM/RaMzHHofbALDiKbbP1W8UEYmgGl39WkPZsg==", + "dev": true, + "engines": [ + "node >= 0.2.0" + ] + }, + "node_modules/JSONStream": { + "version": "1.3.5", + "resolved": "https://registry.npmjs.org/JSONStream/-/JSONStream-1.3.5.tgz", + "integrity": "sha512-E+iruNOY8VV9s4JEbe1aNEm6MiszPRr/UfcHMz0TQh1BXSxHK+ASV1R6W4HpjBhSeS+54PIsAMCBmwD06LLsqQ==", + "dev": true, + "dependencies": { + "jsonparse": "^1.2.0", + "through": ">=2.2.7 <3" + }, + "bin": { + "JSONStream": "bin.js" + }, + "engines": { + "node": "*" } }, "node_modules/keyv": { @@ -14484,6 +16016,17 @@ "url": "https://github.com/chalk/slice-ansi?sponsor=1" } }, + "node_modules/longest-streak": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/longest-streak/-/longest-streak-3.1.0.tgz", + "integrity": "sha512-9Ri+o0JYgehTaVBBDoMqIl8GXtbWg711O3srftcHhZ0dqnETqLaoIK0x17fUw9rFSlK/0NlsKe0Ahhyl5pXE2g==", + "dev": true, + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, "node_modules/lru-cache": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", @@ -14536,6 +16079,272 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/markdown-table": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/markdown-table/-/markdown-table-3.0.4.tgz", + "integrity": "sha512-wiYz4+JrLyb/DqW2hkFJxP7Vd7JuTDm77fvbM8VfEQdmSMqcImWeeRbHwZjBjIFki/VaMK2BhFi7oUUZeM5bqw==", + "dev": true, + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/math-intrinsics": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", + "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/mdast-util-find-and-replace": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/mdast-util-find-and-replace/-/mdast-util-find-and-replace-3.0.2.tgz", + "integrity": "sha512-Tmd1Vg/m3Xz43afeNxDIhWRtFZgM2VLyaf4vSTYwudTyeuTneoL3qtWMA5jeLyz/O1vDJmmV4QuScFCA2tBPwg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "escape-string-regexp": "^5.0.0", + "unist-util-is": "^6.0.0", + "unist-util-visit-parents": "^6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-find-and-replace/node_modules/escape-string-regexp": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-5.0.0.tgz", + "integrity": "sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/mdast-util-from-markdown": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/mdast-util-from-markdown/-/mdast-util-from-markdown-2.0.2.tgz", + "integrity": "sha512-uZhTV/8NBuw0WHkPTrCqDOl0zVe1BIng5ZtHoDk49ME1qqcjYmmLmOf0gELgcRMxN4w2iuIeVso5/6QymSrgmA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "@types/unist": "^3.0.0", + "decode-named-character-reference": "^1.0.0", + "devlop": "^1.0.0", + "mdast-util-to-string": "^4.0.0", + "micromark": "^4.0.0", + "micromark-util-decode-numeric-character-reference": "^2.0.0", + "micromark-util-decode-string": "^2.0.0", + "micromark-util-normalize-identifier": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0", + "unist-util-stringify-position": "^4.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-frontmatter": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/mdast-util-frontmatter/-/mdast-util-frontmatter-2.0.1.tgz", + "integrity": "sha512-LRqI9+wdgC25P0URIJY9vwocIzCcksduHQ9OF2joxQoyTNVduwLAFUzjoopuRJbJAReaKrNQKAZKL3uCMugWJA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "devlop": "^1.0.0", + "escape-string-regexp": "^5.0.0", + "mdast-util-from-markdown": "^2.0.0", + "mdast-util-to-markdown": "^2.0.0", + "micromark-extension-frontmatter": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-frontmatter/node_modules/escape-string-regexp": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-5.0.0.tgz", + "integrity": "sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/mdast-util-gfm": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/mdast-util-gfm/-/mdast-util-gfm-3.1.0.tgz", + "integrity": "sha512-0ulfdQOM3ysHhCJ1p06l0b0VKlhU0wuQs3thxZQagjcjPrlFRqY215uZGHHJan9GEAXd9MbfPjFJz+qMkVR6zQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "mdast-util-from-markdown": "^2.0.0", + "mdast-util-gfm-autolink-literal": "^2.0.0", + "mdast-util-gfm-footnote": "^2.0.0", + "mdast-util-gfm-strikethrough": "^2.0.0", + "mdast-util-gfm-table": "^2.0.0", + "mdast-util-gfm-task-list-item": "^2.0.0", + "mdast-util-to-markdown": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-gfm-autolink-literal": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/mdast-util-gfm-autolink-literal/-/mdast-util-gfm-autolink-literal-2.0.1.tgz", + "integrity": "sha512-5HVP2MKaP6L+G6YaxPNjuL0BPrq9orG3TsrZ9YXbA3vDw/ACI4MEsnoDpn6ZNm7GnZgtAcONJyPhOP8tNJQavQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "ccount": "^2.0.0", + "devlop": "^1.0.0", + "mdast-util-find-and-replace": "^3.0.0", + "micromark-util-character": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-gfm-footnote": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mdast-util-gfm-footnote/-/mdast-util-gfm-footnote-2.1.0.tgz", + "integrity": "sha512-sqpDWlsHn7Ac9GNZQMeUzPQSMzR6Wv0WKRNvQRg0KqHh02fpTz69Qc1QSseNX29bhz1ROIyNyxExfawVKTm1GQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "devlop": "^1.1.0", + "mdast-util-from-markdown": "^2.0.0", + "mdast-util-to-markdown": "^2.0.0", + "micromark-util-normalize-identifier": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-gfm-strikethrough": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/mdast-util-gfm-strikethrough/-/mdast-util-gfm-strikethrough-2.0.0.tgz", + "integrity": "sha512-mKKb915TF+OC5ptj5bJ7WFRPdYtuHv0yTRxK2tJvi+BDqbkiG7h7u/9SI89nRAYcmap2xHQL9D+QG/6wSrTtXg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "mdast-util-from-markdown": "^2.0.0", + "mdast-util-to-markdown": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-gfm-table": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/mdast-util-gfm-table/-/mdast-util-gfm-table-2.0.0.tgz", + "integrity": "sha512-78UEvebzz/rJIxLvE7ZtDd/vIQ0RHv+3Mh5DR96p7cS7HsBhYIICDBCu8csTNWNO6tBWfqXPWekRuj2FNOGOZg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "devlop": "^1.0.0", + "markdown-table": "^3.0.0", + "mdast-util-from-markdown": "^2.0.0", + "mdast-util-to-markdown": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-gfm-task-list-item": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/mdast-util-gfm-task-list-item/-/mdast-util-gfm-task-list-item-2.0.0.tgz", + "integrity": "sha512-IrtvNvjxC1o06taBAVJznEnkiHxLFTzgonUdy8hzFVeDun0uTjxxrRGVaNFqkU1wJR3RBPEfsxmU6jDWPofrTQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "devlop": "^1.0.0", + "mdast-util-from-markdown": "^2.0.0", + "mdast-util-to-markdown": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-phrasing": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/mdast-util-phrasing/-/mdast-util-phrasing-4.1.0.tgz", + "integrity": "sha512-TqICwyvJJpBwvGAMZjj4J2n0X8QWp21b9l0o7eXyVJ25YNWYbJDVIyD1bZXE6WtV6RmKJVYmQAKWa0zWOABz2w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "unist-util-is": "^6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-to-markdown": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/mdast-util-to-markdown/-/mdast-util-to-markdown-2.1.2.tgz", + "integrity": "sha512-xj68wMTvGXVOKonmog6LwyJKrYXZPvlwabaryTjLh9LuvovB/KAH+kvi8Gjj+7rJjsFi23nkUxRQv1KqSroMqA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "@types/unist": "^3.0.0", + "longest-streak": "^3.0.0", + "mdast-util-phrasing": "^4.0.0", + "mdast-util-to-string": "^4.0.0", + "micromark-util-classify-character": "^2.0.0", + "micromark-util-decode-string": "^2.0.0", + "unist-util-visit": "^5.0.0", + "zwitch": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-to-string": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/mdast-util-to-string/-/mdast-util-to-string-4.0.0.tgz", + "integrity": "sha512-0H44vDimn51F0YwvxSJSm0eCDOJTRlmN0R1yBh4HLj9wiV1Dn0QoXGbvFAWj2hSItVTlCmBF1hqKlIyUBVFLPg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, "node_modules/mdn-data": { "version": "2.0.28", "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.28.tgz", @@ -14561,40 +16370,648 @@ "url": "https://github.com/sponsors/streamich" } }, - "node_modules/memorystream": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/memorystream/-/memorystream-0.3.1.tgz", - "integrity": "sha512-S3UwM3yj5mtUSEfP41UZmt/0SCoVYUcU1rkXv+BQ5Ig8ndL4sPoJNBUJERafdPb5jjHJGuMgytgKvKIf58XNBw==", + "node_modules/memorystream": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/memorystream/-/memorystream-0.3.1.tgz", + "integrity": "sha512-S3UwM3yj5mtUSEfP41UZmt/0SCoVYUcU1rkXv+BQ5Ig8ndL4sPoJNBUJERafdPb5jjHJGuMgytgKvKIf58XNBw==", + "dev": true, + "engines": { + "node": ">= 0.10.0" + } + }, + "node_modules/meow": { + "version": "12.1.1", + "resolved": "https://registry.npmjs.org/meow/-/meow-12.1.1.tgz", + "integrity": "sha512-BhXM0Au22RwUneMPwSCnyhTOizdWoIEPU9sp0Aqa1PnDMR5Wv2FGXYDjuzJEIX+Eo2Rb8xuYe5jrnm5QowQFkw==", + "dev": true, + "engines": { + "node": ">=16.10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/merge-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==" + }, + "node_modules/merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/micromark": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/micromark/-/micromark-4.0.2.tgz", + "integrity": "sha512-zpe98Q6kvavpCr1NPVSCMebCKfD7CA2NqZ+rykeNhONIJBpc1tFKt9hucLGwha3jNTNI8lHpctWJWoimVF4PfA==", + "dev": true, + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "@types/debug": "^4.0.0", + "debug": "^4.0.0", + "decode-named-character-reference": "^1.0.0", + "devlop": "^1.0.0", + "micromark-core-commonmark": "^2.0.0", + "micromark-factory-space": "^2.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-chunked": "^2.0.0", + "micromark-util-combine-extensions": "^2.0.0", + "micromark-util-decode-numeric-character-reference": "^2.0.0", + "micromark-util-encode": "^2.0.0", + "micromark-util-normalize-identifier": "^2.0.0", + "micromark-util-resolve-all": "^2.0.0", + "micromark-util-sanitize-uri": "^2.0.0", + "micromark-util-subtokenize": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-core-commonmark": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/micromark-core-commonmark/-/micromark-core-commonmark-2.0.3.tgz", + "integrity": "sha512-RDBrHEMSxVFLg6xvnXmb1Ayr2WzLAWjeSATAoxwKYJV94TeNavgoIdA0a9ytzDSVzBy2YKFK+emCPOEibLeCrg==", + "dev": true, + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "decode-named-character-reference": "^1.0.0", + "devlop": "^1.0.0", + "micromark-factory-destination": "^2.0.0", + "micromark-factory-label": "^2.0.0", + "micromark-factory-space": "^2.0.0", + "micromark-factory-title": "^2.0.0", + "micromark-factory-whitespace": "^2.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-chunked": "^2.0.0", + "micromark-util-classify-character": "^2.0.0", + "micromark-util-html-tag-name": "^2.0.0", + "micromark-util-normalize-identifier": "^2.0.0", + "micromark-util-resolve-all": "^2.0.0", + "micromark-util-subtokenize": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-extension-frontmatter": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/micromark-extension-frontmatter/-/micromark-extension-frontmatter-2.0.0.tgz", + "integrity": "sha512-C4AkuM3dA58cgZha7zVnuVxBhDsbttIMiytjgsM2XbHAB2faRVaHRle40558FBN+DJcrLNCoqG5mlrpdU4cRtg==", + "dev": true, + "license": "MIT", + "dependencies": { + "fault": "^2.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/micromark-extension-gfm": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/micromark-extension-gfm/-/micromark-extension-gfm-3.0.0.tgz", + "integrity": "sha512-vsKArQsicm7t0z2GugkCKtZehqUm31oeGBV/KVSorWSy8ZlNAv7ytjFhvaryUiCUJYqs+NoE6AFhpQvBTM6Q4w==", + "dev": true, + "license": "MIT", + "dependencies": { + "micromark-extension-gfm-autolink-literal": "^2.0.0", + "micromark-extension-gfm-footnote": "^2.0.0", + "micromark-extension-gfm-strikethrough": "^2.0.0", + "micromark-extension-gfm-table": "^2.0.0", + "micromark-extension-gfm-tagfilter": "^2.0.0", + "micromark-extension-gfm-task-list-item": "^2.0.0", + "micromark-util-combine-extensions": "^2.0.0", + "micromark-util-types": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/micromark-extension-gfm-autolink-literal": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/micromark-extension-gfm-autolink-literal/-/micromark-extension-gfm-autolink-literal-2.1.0.tgz", + "integrity": "sha512-oOg7knzhicgQ3t4QCjCWgTmfNhvQbDDnJeVu9v81r7NltNCVmhPy1fJRX27pISafdjL+SVc4d3l48Gb6pbRypw==", + "dev": true, + "license": "MIT", + "dependencies": { + "micromark-util-character": "^2.0.0", + "micromark-util-sanitize-uri": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/micromark-extension-gfm-footnote": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/micromark-extension-gfm-footnote/-/micromark-extension-gfm-footnote-2.1.0.tgz", + "integrity": "sha512-/yPhxI1ntnDNsiHtzLKYnE3vf9JZ6cAisqVDauhp4CEHxlb4uoOTxOCJ+9s51bIB8U1N1FJ1RXOKTIlD5B/gqw==", + "dev": true, + "license": "MIT", + "dependencies": { + "devlop": "^1.0.0", + "micromark-core-commonmark": "^2.0.0", + "micromark-factory-space": "^2.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-normalize-identifier": "^2.0.0", + "micromark-util-sanitize-uri": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/micromark-extension-gfm-strikethrough": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/micromark-extension-gfm-strikethrough/-/micromark-extension-gfm-strikethrough-2.1.0.tgz", + "integrity": "sha512-ADVjpOOkjz1hhkZLlBiYA9cR2Anf8F4HqZUO6e5eDcPQd0Txw5fxLzzxnEkSkfnD0wziSGiv7sYhk/ktvbf1uw==", + "dev": true, + "license": "MIT", + "dependencies": { + "devlop": "^1.0.0", + "micromark-util-chunked": "^2.0.0", + "micromark-util-classify-character": "^2.0.0", + "micromark-util-resolve-all": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/micromark-extension-gfm-table": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/micromark-extension-gfm-table/-/micromark-extension-gfm-table-2.1.1.tgz", + "integrity": "sha512-t2OU/dXXioARrC6yWfJ4hqB7rct14e8f7m0cbI5hUmDyyIlwv5vEtooptH8INkbLzOatzKuVbQmAYcbWoyz6Dg==", + "dev": true, + "license": "MIT", + "dependencies": { + "devlop": "^1.0.0", + "micromark-factory-space": "^2.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/micromark-extension-gfm-tagfilter": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/micromark-extension-gfm-tagfilter/-/micromark-extension-gfm-tagfilter-2.0.0.tgz", + "integrity": "sha512-xHlTOmuCSotIA8TW1mDIM6X2O1SiX5P9IuDtqGonFhEK0qgRI4yeC6vMxEV2dgyr2TiD+2PQ10o+cOhdVAcwfg==", + "dev": true, + "license": "MIT", + "dependencies": { + "micromark-util-types": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/micromark-extension-gfm-task-list-item": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/micromark-extension-gfm-task-list-item/-/micromark-extension-gfm-task-list-item-2.1.0.tgz", + "integrity": "sha512-qIBZhqxqI6fjLDYFTBIa4eivDMnP+OZqsNwmQ3xNLE4Cxwc+zfQEfbs6tzAo2Hjq+bh6q5F+Z8/cksrLFYWQQw==", + "dev": true, + "license": "MIT", + "dependencies": { + "devlop": "^1.0.0", + "micromark-factory-space": "^2.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/micromark-factory-destination": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-factory-destination/-/micromark-factory-destination-2.0.1.tgz", + "integrity": "sha512-Xe6rDdJlkmbFRExpTOmRj9N3MaWmbAgdpSrBQvCFqhezUn4AHqJHbaEnfbVYYiexVSs//tqOdY/DxhjdCiJnIA==", + "dev": true, + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-character": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-factory-label": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-factory-label/-/micromark-factory-label-2.0.1.tgz", + "integrity": "sha512-VFMekyQExqIW7xIChcXn4ok29YE3rnuyveW3wZQWWqF4Nv9Wk5rgJ99KzPvHjkmPXF93FXIbBp6YdW3t71/7Vg==", + "dev": true, + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "devlop": "^1.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-factory-space": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-factory-space/-/micromark-factory-space-2.0.1.tgz", + "integrity": "sha512-zRkxjtBxxLd2Sc0d+fbnEunsTj46SWXgXciZmHq0kDYGnck/ZSGj9/wULTV95uoeYiK5hRXP2mJ98Uo4cq/LQg==", + "dev": true, + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-character": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-factory-title": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-factory-title/-/micromark-factory-title-2.0.1.tgz", + "integrity": "sha512-5bZ+3CjhAd9eChYTHsjy6TGxpOFSKgKKJPJxr293jTbfry2KDoWkhBb6TcPVB4NmzaPhMs1Frm9AZH7OD4Cjzw==", + "dev": true, + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-factory-space": "^2.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-factory-whitespace": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-factory-whitespace/-/micromark-factory-whitespace-2.0.1.tgz", + "integrity": "sha512-Ob0nuZ3PKt/n0hORHyvoD9uZhr+Za8sFoP+OnMcnWK5lngSzALgQYKMr9RJVOWLqQYuyn6ulqGWSXdwf6F80lQ==", + "dev": true, + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-factory-space": "^2.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-util-character": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-2.1.1.tgz", + "integrity": "sha512-wv8tdUTJ3thSFFFJKtpYKOYiGP2+v96Hvk4Tu8KpCAsTMs6yi+nVmGh1syvSCsaxz45J6Jbw+9DD6g97+NV67Q==", + "dev": true, + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-util-chunked": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-chunked/-/micromark-util-chunked-2.0.1.tgz", + "integrity": "sha512-QUNFEOPELfmvv+4xiNg2sRYeS/P84pTW0TCgP5zc9FpXetHY0ab7SxKyAQCNCc1eK0459uoLI1y5oO5Vc1dbhA==", + "dev": true, + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-symbol": "^2.0.0" + } + }, + "node_modules/micromark-util-classify-character": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-classify-character/-/micromark-util-classify-character-2.0.1.tgz", + "integrity": "sha512-K0kHzM6afW/MbeWYWLjoHQv1sgg2Q9EccHEDzSkxiP/EaagNzCm7T/WMKZ3rjMbvIpvBiZgwR3dKMygtA4mG1Q==", + "dev": true, + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-character": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-util-combine-extensions": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-combine-extensions/-/micromark-util-combine-extensions-2.0.1.tgz", + "integrity": "sha512-OnAnH8Ujmy59JcyZw8JSbK9cGpdVY44NKgSM7E9Eh7DiLS2E9RNQf0dONaGDzEG9yjEl5hcqeIsj4hfRkLH/Bg==", + "dev": true, + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-chunked": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-util-decode-numeric-character-reference": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/micromark-util-decode-numeric-character-reference/-/micromark-util-decode-numeric-character-reference-2.0.2.tgz", + "integrity": "sha512-ccUbYk6CwVdkmCQMyr64dXz42EfHGkPQlBj5p7YVGzq8I7CtjXZJrubAYezf7Rp+bjPseiROqe7G6foFd+lEuw==", + "dev": true, + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-symbol": "^2.0.0" + } + }, + "node_modules/micromark-util-decode-string": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-decode-string/-/micromark-util-decode-string-2.0.1.tgz", + "integrity": "sha512-nDV/77Fj6eH1ynwscYTOsbK7rR//Uj0bZXBwJZRfaLEJ1iGBR6kIfNmlNqaqJf649EP0F3NWNdeJi03elllNUQ==", + "dev": true, + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "decode-named-character-reference": "^1.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-decode-numeric-character-reference": "^2.0.0", + "micromark-util-symbol": "^2.0.0" + } + }, + "node_modules/micromark-util-encode": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-encode/-/micromark-util-encode-2.0.1.tgz", + "integrity": "sha512-c3cVx2y4KqUnwopcO9b/SCdo2O67LwJJ/UyqGfbigahfegL9myoEFoDYZgkT7f36T0bLrM9hZTAaAyH+PCAXjw==", + "dev": true, + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT" + }, + "node_modules/micromark-util-html-tag-name": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-html-tag-name/-/micromark-util-html-tag-name-2.0.1.tgz", + "integrity": "sha512-2cNEiYDhCWKI+Gs9T0Tiysk136SnR13hhO8yW6BGNyhOC4qYFnwF1nKfD3HFAIXA5c45RrIG1ub11GiXeYd1xA==", + "dev": true, + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT" + }, + "node_modules/micromark-util-normalize-identifier": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-normalize-identifier/-/micromark-util-normalize-identifier-2.0.1.tgz", + "integrity": "sha512-sxPqmo70LyARJs0w2UclACPUUEqltCkJ6PhKdMIDuJ3gSf/Q+/GIe3WKl0Ijb/GyH9lOpUkRAO2wp0GVkLvS9Q==", + "dev": true, + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-symbol": "^2.0.0" + } + }, + "node_modules/micromark-util-resolve-all": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-resolve-all/-/micromark-util-resolve-all-2.0.1.tgz", + "integrity": "sha512-VdQyxFWFT2/FGJgwQnJYbe1jjQoNTS4RjglmSjTUlpUMa95Htx9NHeYW4rGDJzbjvCsl9eLjMQwGeElsqmzcHg==", + "dev": true, + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-util-sanitize-uri": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-sanitize-uri/-/micromark-util-sanitize-uri-2.0.1.tgz", + "integrity": "sha512-9N9IomZ/YuGGZZmQec1MbgxtlgougxTodVwDzzEouPKo3qFWvymFHWcnDi2vzV1ff6kas9ucW+o3yzJK9YB1AQ==", "dev": true, - "engines": { - "node": ">= 0.10.0" + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-character": "^2.0.0", + "micromark-util-encode": "^2.0.0", + "micromark-util-symbol": "^2.0.0" } }, - "node_modules/meow": { - "version": "12.1.1", - "resolved": "https://registry.npmjs.org/meow/-/meow-12.1.1.tgz", - "integrity": "sha512-BhXM0Au22RwUneMPwSCnyhTOizdWoIEPU9sp0Aqa1PnDMR5Wv2FGXYDjuzJEIX+Eo2Rb8xuYe5jrnm5QowQFkw==", + "node_modules/micromark-util-subtokenize": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/micromark-util-subtokenize/-/micromark-util-subtokenize-2.1.0.tgz", + "integrity": "sha512-XQLu552iSctvnEcgXw6+Sx75GflAPNED1qx7eBJ+wydBb2KCbRZe+NwvIEEMM83uml1+2WSXpBAcp9IUCgCYWA==", "dev": true, - "engines": { - "node": ">=16.10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "devlop": "^1.0.0", + "micromark-util-chunked": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" } }, - "node_modules/merge-stream": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", - "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==" + "node_modules/micromark-util-symbol": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-2.0.1.tgz", + "integrity": "sha512-vs5t8Apaud9N28kgCrRUdEed4UJ+wWNvicHLPxCa9ENlYuAY31M0ETy5y1vA33YoNPDFTghEbnh6efaE8h4x0Q==", + "dev": true, + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT" }, - "node_modules/merge2": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", - "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "node_modules/micromark-util-types": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/micromark-util-types/-/micromark-util-types-2.0.2.tgz", + "integrity": "sha512-Yw0ECSpJoViF1qTU4DC6NwtC4aWGt1EkzaQB8KPPyCRR8z9TWeV0HbEFGTO+ZY1wB22zmxnJqhPyTpOVCpeHTA==", "dev": true, - "engines": { - "node": ">= 8" - } + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT" }, "node_modules/micromatch": { "version": "4.0.8", @@ -14609,6 +17026,19 @@ "node": ">=8.6" } }, + "node_modules/micromatch/node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, "node_modules/mime-db": { "version": "1.52.0", "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", @@ -14773,9 +17203,9 @@ "dev": true }, "node_modules/node-releases": { - "version": "2.0.18", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.18.tgz", - "integrity": "sha512-d9VeXT4SJ7ZeOqGX6R5EM022wpL+eWPooLI+5UpWn2jCT1aosUQEhQP214x33Wkwx3JQMvIm+tIoVOdodFS40g==", + "version": "2.0.19", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.19.tgz", + "integrity": "sha512-xxOWJsBKtzAq7DY0J+DTzuz58K8e7sJbdgwkbMWQe8UYB6ekmsQ45q0M/tJDsGaZmbC+l7n57UV8Hl5tHxO9uw==", "license": "MIT" }, "node_modules/normalize-package-data": { @@ -14938,10 +17368,14 @@ } }, "node_modules/object-inspect": { - "version": "1.13.1", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.1.tgz", - "integrity": "sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ==", + "version": "1.13.4", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz", + "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==", "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -14956,14 +17390,17 @@ } }, "node_modules/object.assign": { - "version": "4.1.5", - "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.5.tgz", - "integrity": "sha512-byy+U7gp+FVwmyzKPYhW2h5l3crpmGsxl7X2s8y43IgxvG4g3QZ6CffDtsNQy1WsmZpQbO+ybo0AlW7TY6DcBQ==", + "version": "4.1.7", + "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.7.tgz", + "integrity": "sha512-nK28WOo+QIjBkDduTINE4JkF/UJJKyf2EJxvJKfblDpyg0Q+pkOHNTL0Qwy6NP6FhE/EnzV73BxxqcJaXY9anw==", "dev": true, + "license": "MIT", "dependencies": { - "call-bind": "^1.0.5", + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", "define-properties": "^1.2.1", - "has-symbols": "^1.0.3", + "es-object-atoms": "^1.0.0", + "has-symbols": "^1.1.0", "object-keys": "^1.1.1" }, "engines": { @@ -14974,14 +17411,16 @@ } }, "node_modules/object.fromentries": { - "version": "2.0.7", - "resolved": "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.7.tgz", - "integrity": "sha512-UPbPHML6sL8PI/mOqPwsH4G6iyXcCGzLin8KvEPenOZN5lpCNBZZQ+V62vdjB1mQHrmqGQt5/OJzemUA+KJmEA==", + "version": "2.0.8", + "resolved": "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.8.tgz", + "integrity": "sha512-k6E21FzySsSK5a21KRADBd/NGneRegFO5pLHfdQLpRDETUNJueLXs3WCzyQ3tFRDYgbq3KHGXfTbi2bs8WQ6rQ==", "dev": true, + "license": "MIT", "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "es-abstract": "^1.22.1" + "call-bind": "^1.0.7", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.2", + "es-object-atoms": "^1.0.0" }, "engines": { "node": ">= 0.4" @@ -14991,27 +17430,31 @@ } }, "node_modules/object.groupby": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/object.groupby/-/object.groupby-1.0.2.tgz", - "integrity": "sha512-bzBq58S+x+uo0VjurFT0UktpKHOZmv4/xePiOA1nbB9pMqpGK7rUPNgf+1YC+7mE+0HzhTMqNUuCqvKhj6FnBw==", + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/object.groupby/-/object.groupby-1.0.3.tgz", + "integrity": "sha512-+Lhy3TQTuzXI5hevh8sBGqbmurHbbIjAi0Z4S63nthVLmLxfbj4T54a4CfZrXIrt9iP4mVAPYMo/v99taj3wjQ==", "dev": true, + "license": "MIT", "dependencies": { - "array.prototype.filter": "^1.0.3", - "call-bind": "^1.0.5", + "call-bind": "^1.0.7", "define-properties": "^1.2.1", - "es-abstract": "^1.22.3", - "es-errors": "^1.0.0" + "es-abstract": "^1.23.2" + }, + "engines": { + "node": ">= 0.4" } }, "node_modules/object.values": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.1.7.tgz", - "integrity": "sha512-aU6xnDFYT3x17e/f0IiiwlGPTy2jzMySGfUB4fq6z7CV8l85CWHDk5ErhyhpfDHhrOMwGFhSQkhMGHaIotA6Ng==", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.2.1.tgz", + "integrity": "sha512-gXah6aZrcUxjWg2zR2MwouP2eHlCBzdV4pygudehaKXSGW4v2AsRQUK+lwwXhii6KFZcunEnmSUoYp5CXibxtA==", "dev": true, + "license": "MIT", "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "es-abstract": "^1.22.1" + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", + "define-properties": "^1.2.1", + "es-object-atoms": "^1.0.0" }, "engines": { "node": ">= 0.4" @@ -15061,6 +17504,24 @@ "node": ">= 0.8.0" } }, + "node_modules/own-keys": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/own-keys/-/own-keys-1.0.1.tgz", + "integrity": "sha512-qFOyK5PjiWZd+QQIh+1jhdb9LpxTF0qs7Pm8o5QHYZ0M3vKqSqzsZaEB6oWlxZ+q2sJBMI/Ktgd2N5ZwQoRHfg==", + "dev": true, + "license": "MIT", + "dependencies": { + "get-intrinsic": "^1.2.6", + "object-keys": "^1.1.1", + "safe-push-apply": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/p-limit": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", @@ -15128,6 +17589,16 @@ "node": ">=8" } }, + "node_modules/parse-imports-exports": { + "version": "0.2.4", + "resolved": "https://registry.npmjs.org/parse-imports-exports/-/parse-imports-exports-0.2.4.tgz", + "integrity": "sha512-4s6vd6dx1AotCx/RCI2m7t7GCh5bDRUtGNvRfHSP2wbBQdMi67pPe7mtzmgwcaQ8VKK/6IB7Glfyu3qdZJPybQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "parse-statements": "1.0.11" + } + }, "node_modules/parse-json": { "version": "5.2.0", "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", @@ -15146,6 +17617,13 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/parse-statements": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/parse-statements/-/parse-statements-1.0.11.tgz", + "integrity": "sha512-HlsyYdMBnbPQ9Jr/VgJ1YF4scnldvJpJxCVx6KgqPL4dxppsWrJHCIIxQXMJrqGnsRkNPATbeMJ8Yxu7JMsYcA==", + "dev": true, + "license": "MIT" + }, "node_modules/path-exists": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", @@ -15194,11 +17672,13 @@ "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==" }, "node_modules/picomatch": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", - "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz", + "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", + "dev": true, + "license": "MIT", "engines": { - "node": ">=8.6" + "node": ">=12" }, "funding": { "url": "https://github.com/sponsors/jonschlinkert" @@ -15298,11 +17778,22 @@ "node": ">=8" } }, + "node_modules/pluralize": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/pluralize/-/pluralize-8.0.0.tgz", + "integrity": "sha512-Nc3IT5yHzflTfbjgqWcCPpo7DaKy4FnpB0l/zCAW0Tc7jxAiuqSxHasntB3D7887LSrA93kDJ9IXovxJYxyLCA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, "node_modules/possible-typed-array-names": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.0.0.tgz", - "integrity": "sha512-d7Uw+eZoloe0EHDIYoe+bQ5WXnGMOpmiZFTuMWCwpjzzkL2nTjcKiAk4hh8TjnGye2TwWOk3UXucZ+3rbmBa8Q==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.1.0.tgz", + "integrity": "sha512-/+5VFTchJDoVj3bhoqi6UeymcD00DAwb1nJwamzPvHEszJ4FpF6SNNbUbOS8yI56qHzdV8eK0qEfOSiodkTdxg==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.4" } @@ -15833,9 +18324,9 @@ } }, "node_modules/prettier": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.3.3.tgz", - "integrity": "sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew==", + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.6.2.tgz", + "integrity": "sha512-I7AIg5boAr5R0FFtJ6rCfD+LFsWHp81dolrFD8S79U9tb8Az2nGrJncnMSnys+bpQJfRUzqs9hnA81OAA3hCuQ==", "dev": true, "license": "MIT", "bin": { @@ -15848,6 +18339,19 @@ "url": "https://github.com/prettier/prettier?sponsor=1" } }, + "node_modules/prettier-linter-helpers": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz", + "integrity": "sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==", + "dev": true, + "license": "MIT", + "dependencies": { + "fast-diff": "^1.1.2" + }, + "engines": { + "node": ">=6.0.0" + } + }, "node_modules/pretty-format": { "version": "29.7.0", "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.7.0.tgz", @@ -16111,6 +18615,19 @@ "node": ">=8.10.0" } }, + "node_modules/readdirp/node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, "node_modules/redent": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/redent/-/redent-3.0.0.tgz", @@ -16124,6 +18641,29 @@ "node": ">=8" } }, + "node_modules/reflect.getprototypeof": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/reflect.getprototypeof/-/reflect.getprototypeof-1.0.10.tgz", + "integrity": "sha512-00o4I+DVrefhv+nX0ulyi3biSHCPDe+yLv5o/p6d/UVlirijB8E16FtfwSAi4g3tcqrQ4lRAqQSoFEZJehYEcw==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.9", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.0.0", + "get-intrinsic": "^1.2.7", + "get-proto": "^1.0.1", + "which-builtin-type": "^1.2.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/regenerate": { "version": "1.4.2", "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.2.tgz", @@ -16152,16 +18692,29 @@ "@babel/runtime": "^7.8.4" } }, + "node_modules/regexp-tree": { + "version": "0.1.27", + "resolved": "https://registry.npmjs.org/regexp-tree/-/regexp-tree-0.1.27.tgz", + "integrity": "sha512-iETxpjK6YoRWJG5o6hXLwvjYAoW+FEZn9os0PD/b6AP6xQwsa/Y7lCVgIixBbUPMfhu+i2LtdeAqVTgGlQarfA==", + "dev": true, + "license": "MIT", + "bin": { + "regexp-tree": "bin/regexp-tree" + } + }, "node_modules/regexp.prototype.flags": { - "version": "1.5.2", - "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.2.tgz", - "integrity": "sha512-NcDiDkTLuPR+++OCKB0nWafEmhg/Da8aUPLPMQbK+bxKKCm1/S5he+AqYa4PlMCVBalb4/yxIRub6qkEx5yJbw==", + "version": "1.5.4", + "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.4.tgz", + "integrity": "sha512-dYqgNSZbDwkaJ2ceRd9ojCGjBq+mOm9LmtXnAnEGyHhN/5R7iDW2TRw3h+o/jCFxus3P2LfWIIiwowAjANm7IA==", "dev": true, + "license": "MIT", "dependencies": { - "call-bind": "^1.0.6", + "call-bind": "^1.0.8", "define-properties": "^1.2.1", "es-errors": "^1.3.0", - "set-function-name": "^2.0.1" + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "set-function-name": "^2.0.2" }, "engines": { "node": ">= 0.4" @@ -16273,6 +18826,16 @@ "node": ">=8" } }, + "node_modules/resolve-pkg-maps": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz", + "integrity": "sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/privatenumber/resolve-pkg-maps?sponsor=1" + } + }, "node_modules/resolve.exports": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-2.0.2.tgz", @@ -16384,14 +18947,16 @@ } }, "node_modules/safe-array-concat": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.1.0.tgz", - "integrity": "sha512-ZdQ0Jeb9Ofti4hbt5lX3T2JcAamT9hfzYU1MNB+z/jaEbB6wfFfPIR/zEORmZqobkCCJhSjodobH6WHNmJ97dg==", + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.1.3.tgz", + "integrity": "sha512-AURm5f0jYEOydBj7VQlVvDrjeFgthDdEF5H1dP+6mNpoXOMo1quQqJ4wvJDyRZ9+pO3kGWoOdmV08cSv2aJV6Q==", "dev": true, + "license": "MIT", "dependencies": { - "call-bind": "^1.0.5", - "get-intrinsic": "^1.2.2", - "has-symbols": "^1.0.3", + "call-bind": "^1.0.8", + "call-bound": "^1.0.2", + "get-intrinsic": "^1.2.6", + "has-symbols": "^1.1.0", "isarray": "^2.0.5" }, "engines": { @@ -16420,15 +18985,33 @@ } ] }, + "node_modules/safe-push-apply": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/safe-push-apply/-/safe-push-apply-1.0.0.tgz", + "integrity": "sha512-iKE9w/Z7xCzUMIZqdBsp6pEQvwuEebH4vdpjcDWnyzaI6yl6O9FHvVpmGelvEHNsoY6wGblkxR6Zty/h00WiSA==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "isarray": "^2.0.5" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/safe-regex-test": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.3.tgz", - "integrity": "sha512-CdASjNJPvRa7roO6Ra/gLYBTzYzzPyyBXxIMdGW3USQLyjWEls2RgW5UBTXaQVp+OrpeCK3bLem8smtmheoRuw==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.1.0.tgz", + "integrity": "sha512-x/+Cz4YrimQxQccJf5mKEbIa1NzeCRNI5Ecl/ekmlYaampdNLPalVyIcCZNNH3MvmqBugV5TMYZXv0ljslUlaw==", "dev": true, + "license": "MIT", "dependencies": { - "call-bind": "^1.0.6", + "call-bound": "^1.0.2", "es-errors": "^1.3.0", - "is-regex": "^1.1.4" + "is-regex": "^1.2.1" }, "engines": { "node": ">= 0.4" @@ -16531,17 +19114,18 @@ } }, "node_modules/set-function-length": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.1.tgz", - "integrity": "sha512-j4t6ccc+VsKwYHso+kElc5neZpjtq9EnRICFZtWyBsLojhmeF/ZBd/elqm22WJh/BziDe/SBiOeAt0m2mfLD0g==", + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz", + "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==", "dev": true, + "license": "MIT", "dependencies": { - "define-data-property": "^1.1.2", + "define-data-property": "^1.1.4", "es-errors": "^1.3.0", "function-bind": "^1.1.2", - "get-intrinsic": "^1.2.3", + "get-intrinsic": "^1.2.4", "gopd": "^1.0.1", - "has-property-descriptors": "^1.0.1" + "has-property-descriptors": "^1.0.2" }, "engines": { "node": ">= 0.4" @@ -16552,6 +19136,7 @@ "resolved": "https://registry.npmjs.org/set-function-name/-/set-function-name-2.0.2.tgz", "integrity": "sha512-7PGFlmtwsEADb0WYyvCMa1t+yke6daIG4Wirafur5kcf+MhUnPms1UeR0CKQdTZD81yESwMHbtn+TR+dMviakQ==", "dev": true, + "license": "MIT", "dependencies": { "define-data-property": "^1.1.4", "es-errors": "^1.3.0", @@ -16562,6 +19147,21 @@ "node": ">= 0.4" } }, + "node_modules/set-proto": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/set-proto/-/set-proto-1.0.0.tgz", + "integrity": "sha512-RJRdvCo6IAnPdsvP/7m6bsQqNnn1FCBX5ZNtFL98MmFF/4xAIJTIg1YbHW5DC2W5SKZanrC6i4HsJqlajw/dZw==", + "dev": true, + "license": "MIT", + "dependencies": { + "dunder-proto": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/shebang-command": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", @@ -16592,16 +19192,74 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/side-channel": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.5.tgz", - "integrity": "sha512-QcgiIWV4WV7qWExbN5llt6frQB/lBven9pqliLXfGPB+K9ZYXxDozp0wLkHS24kWCm+6YXH/f0HhnObZnZOBnQ==", + "node_modules/side-channel": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz", + "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "object-inspect": "^1.13.3", + "side-channel-list": "^1.0.0", + "side-channel-map": "^1.0.1", + "side-channel-weakmap": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-list": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz", + "integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "object-inspect": "^1.13.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-map": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz", + "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-weakmap": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", + "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==", "dev": true, + "license": "MIT", "dependencies": { - "call-bind": "^1.0.6", + "call-bound": "^1.0.2", "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.4", - "object-inspect": "^1.13.1" + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3", + "side-channel-map": "^1.0.1" }, "engines": { "node": ">= 0.4" @@ -16661,6 +19319,84 @@ "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, + "node_modules/sort-object-keys": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/sort-object-keys/-/sort-object-keys-1.1.3.tgz", + "integrity": "sha512-855pvK+VkU7PaKYPc+Jjnmt4EzejQHyhhF33q31qG8x7maDzkeFhAAThdCYay11CISO+qAMwjOBP+fPZe0IPyg==", + "dev": true, + "license": "MIT" + }, + "node_modules/sort-package-json": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/sort-package-json/-/sort-package-json-3.4.0.tgz", + "integrity": "sha512-97oFRRMM2/Js4oEA9LJhjyMlde+2ewpZQf53pgue27UkbEXfHJnDzHlUxQ/DWUkzqmp7DFwJp8D+wi/TYeQhpA==", + "dev": true, + "license": "MIT", + "dependencies": { + "detect-indent": "^7.0.1", + "detect-newline": "^4.0.1", + "git-hooks-list": "^4.0.0", + "is-plain-obj": "^4.1.0", + "semver": "^7.7.1", + "sort-object-keys": "^1.1.3", + "tinyglobby": "^0.2.12" + }, + "bin": { + "sort-package-json": "cli.js" + }, + "engines": { + "node": ">=20" + } + }, + "node_modules/sort-package-json/node_modules/detect-indent": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/detect-indent/-/detect-indent-7.0.1.tgz", + "integrity": "sha512-Mc7QhQ8s+cLrnUfU/Ji94vG/r8M26m8f++vyres4ZoojaRDpZ1eSIh/EpzLNwlWuvzSZ3UbDFspjFvTDXe6e/g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12.20" + } + }, + "node_modules/sort-package-json/node_modules/detect-newline": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-4.0.1.tgz", + "integrity": "sha512-qE3Veg1YXzGHQhlA6jzebZN2qVf6NX+A7m7qlhCGG30dJixrAQhYOsJjsnBjJkCSmuOPpCk30145fr8FV0bzog==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/sort-package-json/node_modules/is-plain-obj": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-4.1.0.tgz", + "integrity": "sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/sort-package-json/node_modules/semver": { + "version": "7.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz", + "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/source-map": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", @@ -16981,6 +19717,20 @@ "node": ">=10" } }, + "node_modules/stop-iteration-iterator": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/stop-iteration-iterator/-/stop-iteration-iterator-1.1.0.tgz", + "integrity": "sha512-eLoXW/DHyl62zxY4SCaIgnRhuMr6ri4juEYARS8E6sCEqzKpOiE521Ucofdx+KnDZl5xmvGYaaKCk5FEOxJCoQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "internal-slot": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/string_decoder": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", @@ -17069,14 +19819,19 @@ } }, "node_modules/string.prototype.trim": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.8.tgz", - "integrity": "sha512-lfjY4HcixfQXOfaqCvcBuOIapyaroTXhbkfJN3gcB1OtyupngWK4sEET9Knd0cXd28kTUqu/kHoV4HKSJdnjiQ==", + "version": "1.2.10", + "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.10.tgz", + "integrity": "sha512-Rs66F0P/1kedk5lyYyH9uBzuiI/kNRmwJAR9quK6VOtIpZ2G+hMZd+HQbbv25MgCA6gEffoMZYxlTod4WcdrKA==", "dev": true, + "license": "MIT", "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "es-abstract": "^1.22.1" + "call-bind": "^1.0.8", + "call-bound": "^1.0.2", + "define-data-property": "^1.1.4", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.5", + "es-object-atoms": "^1.0.0", + "has-property-descriptors": "^1.0.2" }, "engines": { "node": ">= 0.4" @@ -17086,28 +19841,37 @@ } }, "node_modules/string.prototype.trimend": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.7.tgz", - "integrity": "sha512-Ni79DqeB72ZFq1uH/L6zJ+DKZTkOtPIHovb3YZHQViE+HDouuU4mBrLOLDn5Dde3RF8qw5qVETEjhu9locMLvA==", + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.9.tgz", + "integrity": "sha512-G7Ok5C6E/j4SGfyLCloXTrngQIQU3PWtXGst3yM7Bea9FRURf1S42ZHlZZtsNque2FN2PoUhfZXYLNWwEr4dLQ==", "dev": true, + "license": "MIT", "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "es-abstract": "^1.22.1" + "call-bind": "^1.0.8", + "call-bound": "^1.0.2", + "define-properties": "^1.2.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" } }, "node_modules/string.prototype.trimstart": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.7.tgz", - "integrity": "sha512-NGhtDFu3jCEm7B4Fy0DpLewdJQOZcQ0rGbwQ/+stjnrp2i+rlKeCvos9hOIeCmqwratM47OBxY7uFZzjxHXmrg==", + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.8.tgz", + "integrity": "sha512-UXSH262CSZY1tfu3G3Secr6uGLCFVPMhIqHjlgCUtCCcgihYc/xKs9djMTMUOb2j1mVSeU8EU6NWc/iQKU6Gfg==", "dev": true, + "license": "MIT", "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "es-abstract": "^1.22.1" + "call-bind": "^1.0.7", + "define-properties": "^1.2.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -17286,6 +20050,22 @@ "integrity": "sha512-GaqWWShW4kv/G9IEucWScBx9G1/vsFZZJUO+tD26M8J8z3Kw5RDQjaoZe03YAClgeS/SWPOcb4nkFBTEi5DUEA==", "license": "CC0-1.0" }, + "node_modules/synckit": { + "version": "0.11.11", + "resolved": "https://registry.npmjs.org/synckit/-/synckit-0.11.11.tgz", + "integrity": "sha512-MeQTA1r0litLUf0Rp/iisCaL8761lKAZHaimlbGK4j0HysC4PLfqygQj9srcs0m2RdtDYnF8UuYyKpbjHYp7Jw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@pkgr/core": "^0.2.9" + }, + "engines": { + "node": "^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/synckit" + } + }, "node_modules/tapable": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", @@ -17476,12 +20256,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/text-table": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", - "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", - "dev": true - }, "node_modules/thingies": { "version": "1.21.0", "resolved": "https://registry.npmjs.org/thingies/-/thingies-1.21.0.tgz", @@ -17509,6 +20283,23 @@ "readable-stream": "3" } }, + "node_modules/tinyglobby": { + "version": "0.2.14", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.14.tgz", + "integrity": "sha512-tX5e7OM1HnYr2+a2C/4V0htOcSQcoSTH9KgJnVvNm5zm/cyEWKJ7j7YutsH9CxMdtOkkLFy2AHrMci9IM8IPZQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "fdir": "^6.4.4", + "picomatch": "^4.0.2" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/SuperchupuDev" + } + }, "node_modules/tmpl": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz", @@ -17554,6 +20345,42 @@ "node": ">=8" } }, + "node_modules/ts-api-utils": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.1.0.tgz", + "integrity": "sha512-CUgTZL1irw8u29bzrOD/nH85jqyc74D6SshFgujOIA7osm2Rz7dYH77agkx7H4FBNxDq7Cjf+IjaX/8zwFW+ZQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18.12" + }, + "peerDependencies": { + "typescript": ">=4.8.4" + } + }, + "node_modules/ts-declaration-location": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/ts-declaration-location/-/ts-declaration-location-1.0.7.tgz", + "integrity": "sha512-EDyGAwH1gO0Ausm9gV6T2nUvBgXT5kGoCMJPllOaooZ+4VvJiKBdZE7wK18N1deEowhcUptS+5GXZK8U/fvpwA==", + "dev": true, + "funding": [ + { + "type": "ko-fi", + "url": "https://ko-fi.com/rebeccastevens" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/ts-declaration-location" + } + ], + "license": "BSD-3-Clause", + "dependencies": { + "picomatch": "^4.0.2" + }, + "peerDependencies": { + "typescript": ">=4.0.0" + } + }, "node_modules/tsconfig-paths": { "version": "3.15.0", "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.15.0.tgz", @@ -17627,30 +20454,32 @@ } }, "node_modules/typed-array-buffer": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.2.tgz", - "integrity": "sha512-gEymJYKZtKXzzBzM4jqa9w6Q1Jjm7x2d+sh19AdsD4wqnMPDYyvwpsIc2Q/835kHuo3BEQ7CjelGhfTsoBb2MQ==", + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.3.tgz", + "integrity": "sha512-nAYYwfY3qnzX30IkA6AQZjVbtK6duGontcQm1WSG1MD94YLqK0515GNApXkoxKOWMusVssAHWLh9SeaoefYFGw==", "dev": true, + "license": "MIT", "dependencies": { - "call-bind": "^1.0.7", + "call-bound": "^1.0.3", "es-errors": "^1.3.0", - "is-typed-array": "^1.1.13" + "is-typed-array": "^1.1.14" }, "engines": { "node": ">= 0.4" } }, "node_modules/typed-array-byte-length": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/typed-array-byte-length/-/typed-array-byte-length-1.0.1.tgz", - "integrity": "sha512-3iMJ9q0ao7WE9tWcaYKIptkNBuOIcZCCT0d4MRvuuH88fEoEH62IuQe0OtraD3ebQEoTRk8XCBoknUNc1Y67pw==", + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/typed-array-byte-length/-/typed-array-byte-length-1.0.3.tgz", + "integrity": "sha512-BaXgOuIxz8n8pIq3e7Atg/7s+DpiYrxn4vdot3w9KbnBhcRQq6o3xemQdIfynqSeXeDrF32x+WvfzmOjPiY9lg==", "dev": true, + "license": "MIT", "dependencies": { - "call-bind": "^1.0.7", + "call-bind": "^1.0.8", "for-each": "^0.3.3", - "gopd": "^1.0.1", - "has-proto": "^1.0.3", - "is-typed-array": "^1.1.13" + "gopd": "^1.2.0", + "has-proto": "^1.2.0", + "is-typed-array": "^1.1.14" }, "engines": { "node": ">= 0.4" @@ -17660,17 +20489,19 @@ } }, "node_modules/typed-array-byte-offset": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/typed-array-byte-offset/-/typed-array-byte-offset-1.0.2.tgz", - "integrity": "sha512-Ous0vodHa56FviZucS2E63zkgtgrACj7omjwd/8lTEMEPFFyjfixMZ1ZXenpgCFBBt4EC1J2XsyVS2gkG0eTFA==", + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/typed-array-byte-offset/-/typed-array-byte-offset-1.0.4.tgz", + "integrity": "sha512-bTlAFB/FBYMcuX81gbL4OcpH5PmlFHqlCCpAl8AlEzMz5k53oNDvN8p1PNOWLEmI2x4orp3raOFB51tv9X+MFQ==", "dev": true, + "license": "MIT", "dependencies": { "available-typed-arrays": "^1.0.7", - "call-bind": "^1.0.7", + "call-bind": "^1.0.8", "for-each": "^0.3.3", - "gopd": "^1.0.1", - "has-proto": "^1.0.3", - "is-typed-array": "^1.1.13" + "gopd": "^1.2.0", + "has-proto": "^1.2.0", + "is-typed-array": "^1.1.15", + "reflect.getprototypeof": "^1.0.9" }, "engines": { "node": ">= 0.4" @@ -17680,17 +20511,18 @@ } }, "node_modules/typed-array-length": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.5.tgz", - "integrity": "sha512-yMi0PlwuznKHxKmcpoOdeLwxBoVPkqZxd7q2FgMkmD3bNwvF5VW0+UlUQ1k1vmktTu4Yu13Q0RIxEP8+B+wloA==", + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.7.tgz", + "integrity": "sha512-3KS2b+kL7fsuk/eJZ7EQdnEmQoaho/r6KUef7hxvltNA5DR8NAUM+8wJMbJyZ4G9/7i3v5zPBIMN5aybAh2/Jg==", "dev": true, + "license": "MIT", "dependencies": { "call-bind": "^1.0.7", "for-each": "^0.3.3", "gopd": "^1.0.1", - "has-proto": "^1.0.3", "is-typed-array": "^1.1.13", - "possible-typed-array-names": "^1.0.0" + "possible-typed-array-names": "^1.0.0", + "reflect.getprototypeof": "^1.0.6" }, "engines": { "node": ">= 0.4" @@ -17733,15 +20565,19 @@ } }, "node_modules/unbox-primitive": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", - "integrity": "sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.1.0.tgz", + "integrity": "sha512-nWJ91DjeOkej/TA8pXQ3myruKpKEYgqvpw9lz4OPHj/NWFNluYrjbz9j01CJ8yKQd2g4jFoOkINCTW2I5LEEyw==", "dev": true, + "license": "MIT", "dependencies": { - "call-bind": "^1.0.2", + "call-bound": "^1.0.3", "has-bigints": "^1.0.2", - "has-symbols": "^1.0.3", - "which-boxed-primitive": "^1.0.2" + "has-symbols": "^1.1.0", + "which-boxed-primitive": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -17804,10 +20640,69 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/unist-util-is": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-6.0.0.tgz", + "integrity": "sha512-2qCTHimwdxLfz+YzdGfkqNlH0tLi9xjTnHddPmJwtIG9MGsdbutfTc4P+haPD7l7Cjxf/WZj+we5qfVPvvxfYw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unist-util-stringify-position": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-4.0.0.tgz", + "integrity": "sha512-0ASV06AAoKCDkS2+xw5RXJywruurpbC4JZSm7nr7MOt1ojAzvyyaO+UxZf18j8FCF6kmzCZKcAgN/yu2gm2XgQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unist-util-visit": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-5.0.0.tgz", + "integrity": "sha512-MR04uvD+07cwl/yhVuVWAtw+3GOR/knlL55Nd/wAdblk27GCVt3lqpTivy/tkJcZoNPzTwS1Y+KMojlLDhoTzg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0", + "unist-util-is": "^6.0.0", + "unist-util-visit-parents": "^6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unist-util-visit-parents": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-6.0.1.tgz", + "integrity": "sha512-L/PqWzfTP9lzzEa6CKs0k2nARxTdZduw3zyh8d2NVBnsyvHjSX4TWse388YrrQKbvI8w20fGjGlhgT96WwKykw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0", + "unist-util-is": "^6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, "node_modules/update-browserslist-db": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.0.tgz", - "integrity": "sha512-EdRAaAyk2cUE1wOf2DkEhzxqOQvFOoRJFNS6NeyJ01Gp2beMRpBAINjM2iDXE3KCuKhwnvHIQCJm6ThL2Z+HzQ==", + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.3.tgz", + "integrity": "sha512-UxhIZQ+QInVdunkDAaiazvvT/+fXL5Osr0JZlJulepYu6Jd7qJtDZjlur0emRlT71EN3ScPoE7gvsuIKKNavKw==", "funding": [ { "type": "opencollective", @@ -17824,8 +20719,8 @@ ], "license": "MIT", "dependencies": { - "escalade": "^3.1.2", - "picocolors": "^1.0.1" + "escalade": "^3.2.0", + "picocolors": "^1.1.1" }, "bin": { "update-browserslist-db": "cli.js" @@ -18049,32 +20944,86 @@ } }, "node_modules/which-boxed-primitive": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.1.1.tgz", + "integrity": "sha512-TbX3mj8n0odCBFVlY8AxkqcHASw3L60jIuF8jFP78az3C2YhmGvqbHBpAjTRH2/xqYunrJ9g1jSyjCjpoWzIAA==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-bigint": "^1.1.0", + "is-boolean-object": "^1.2.1", + "is-number-object": "^1.1.1", + "is-string": "^1.1.1", + "is-symbol": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/which-builtin-type": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/which-builtin-type/-/which-builtin-type-1.2.1.tgz", + "integrity": "sha512-6iBczoX+kDQ7a3+YJBnh3T+KZRxM/iYNPXicqk66/Qfm1b93iu+yOImkg0zHbj5LNOcNv1TEADiZ0xa34B4q6Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "function.prototype.name": "^1.1.6", + "has-tostringtag": "^1.0.2", + "is-async-function": "^2.0.0", + "is-date-object": "^1.1.0", + "is-finalizationregistry": "^1.1.0", + "is-generator-function": "^1.0.10", + "is-regex": "^1.2.1", + "is-weakref": "^1.0.2", + "isarray": "^2.0.5", + "which-boxed-primitive": "^1.1.0", + "which-collection": "^1.0.2", + "which-typed-array": "^1.1.16" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/which-collection": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz", - "integrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==", + "resolved": "https://registry.npmjs.org/which-collection/-/which-collection-1.0.2.tgz", + "integrity": "sha512-K4jVyjnBdgvc86Y6BkaLZEN933SwYOuBFkdmBu9ZfkcAbdVbpITnDmjvZ/aQjRXQrv5EPkTnD1s39GiiqbngCw==", "dev": true, + "license": "MIT", "dependencies": { - "is-bigint": "^1.0.1", - "is-boolean-object": "^1.1.0", - "is-number-object": "^1.0.4", - "is-string": "^1.0.5", - "is-symbol": "^1.0.3" + "is-map": "^2.0.3", + "is-set": "^2.0.3", + "is-weakmap": "^2.0.2", + "is-weakset": "^2.0.3" + }, + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" } }, "node_modules/which-typed-array": { - "version": "1.1.14", - "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.14.tgz", - "integrity": "sha512-VnXFiIW8yNn9kIHN88xvZ4yOWchftKDsRJ8fEPacX/wl1lOvBrhsJ/OeJCXq7B0AaijRuqgzSKalJoPk+D8MPg==", + "version": "1.1.19", + "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.19.tgz", + "integrity": "sha512-rEvr90Bck4WZt9HHFC4DJMsjvu7x+r6bImz0/BrbWb7A2djJ8hnZMrWnHo9F8ssv0OMErasDhftrfROTyqSDrw==", "dev": true, + "license": "MIT", "dependencies": { - "available-typed-arrays": "^1.0.6", - "call-bind": "^1.0.5", - "for-each": "^0.3.3", - "gopd": "^1.0.1", - "has-tostringtag": "^1.0.1" + "available-typed-arrays": "^1.0.7", + "call-bind": "^1.0.8", + "call-bound": "^1.0.4", + "for-each": "^0.3.5", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "has-tostringtag": "^1.0.2" }, "engines": { "node": ">= 0.4" @@ -18277,6 +21226,17 @@ "funding": { "url": "https://github.com/sponsors/sindresorhus" } + }, + "node_modules/zwitch": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/zwitch/-/zwitch-2.0.4.tgz", + "integrity": "sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==", + "dev": true, + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } } } } diff --git a/package.json b/package.json index 96c3ce6..2fa7861 100644 --- a/package.json +++ b/package.json @@ -2,20 +2,37 @@ "name": "css-minimizer-webpack-plugin", "version": "7.0.2", "description": "CSS minimizer (minifier) plugin for Webpack", - "license": "MIT", - "repository": "webpack-contrib/css-minimizer-webpack-plugin", - "author": "Loann Neveu", + "keywords": [ + "cssnano", + "css", + "csso", + "clean-css", + "swc", + "esbuild", + "webpack", + "webpack-plugin", + "minimize", + "minimizer", + "minify", + "minifier", + "optimize", + "optimizer" + ], "homepage": "https://github.com/webpack-contrib/css-minimizer-webpack-plugin", "bugs": "https://github.com/webpack-contrib/css-minimizer-webpack-plugin/issues", + "repository": "webpack-contrib/css-minimizer-webpack-plugin", "funding": { "type": "opencollective", "url": "https://opencollective.com/webpack" }, + "license": "MIT", + "author": "Loann Neveu", "main": "dist/index.js", "types": "types/index.d.ts", - "engines": { - "node": ">= 18.12.0" - }, + "files": [ + "dist", + "types" + ], "scripts": { "start": "npm run build -- -w", "clean": "del-cli dist", @@ -41,33 +58,6 @@ "prepare": "husky && npm run build", "release": "standard-version" }, - "files": [ - "dist", - "types" - ], - "peerDependencies": { - "webpack": "^5.0.0" - }, - "peerDependenciesMeta": { - "clean-css": { - "optional": true - }, - "csso": { - "optional": true - }, - "esbuild": { - "optional": true - }, - "@parcel/css": { - "optional": true - }, - "lightningcss": { - "optional": true - }, - "@swc/css": { - "optional": true - } - }, "dependencies": { "@jridgewell/trace-mapping": "^0.3.25", "cssnano": "^7.0.4", @@ -82,13 +72,14 @@ "@babel/preset-env": "^7.25.3", "@commitlint/cli": "^19.3.0", "@commitlint/config-conventional": "^19.2.2", + "@eslint/markdown": "^7.0.0", "@parcel/css": "^1.8.3", + "@stylistic/eslint-plugin": "^5.2.0", "@swc/css": "^0.0.28", "@types/clean-css": "^4.2.11", "@types/csso": "^5.0.4", "@types/node": "^20.14.9", "@types/serialize-javascript": "^5.0.4", - "@webpack-contrib/eslint-config-webpack": "^3.0.0", "babel-jest": "^29.7.0", "clean-css": "^5.3.3", "copy-webpack-plugin": "^9.1.0", @@ -100,9 +91,15 @@ "del": "^6.1.0", "del-cli": "^5.1.0", "esbuild": "^0.25.0", - "eslint": "^8.56.0", - "eslint-config-prettier": "^9.1.0", - "eslint-plugin-import": "^2.29.1", + "eslint": "^9.30.1", + "eslint-config-prettier": "^10.1.5", + "eslint-config-webpack": "^4.4.1", + "eslint-plugin-import": "^2.32.0", + "eslint-plugin-jest": "^29.0.1", + "eslint-plugin-jsdoc": "^51.4.1", + "eslint-plugin-n": "^17.21.0", + "eslint-plugin-prettier": "^5.5.3", + "eslint-plugin-unicorn": "^60.0.0", "husky": "^9.1.4", "jest": "^29.7.0", "lightningcss": "^1.25.1", @@ -110,7 +107,7 @@ "memfs": "^4.11.1", "mini-css-extract-plugin": "^2.9.0", "npm-run-all": "^4.1.5", - "prettier": "^3.3.3", + "prettier": "^3.6.2", "sass": "^1.77.8", "sass-loader": "^14.2.1", "standard-version": "^9.5.0", @@ -118,20 +115,30 @@ "typescript": "^5.5.4", "webpack": "^5.93.0" }, - "keywords": [ - "cssnano", - "css", - "csso", - "clean-css", - "swc", - "esbuild", - "webpack", - "webpack-plugin", - "minimize", - "minimizer", - "minify", - "minifier", - "optimize", - "optimizer" - ] + "peerDependencies": { + "webpack": "^5.0.0" + }, + "peerDependenciesMeta": { + "clean-css": { + "optional": true + }, + "csso": { + "optional": true + }, + "esbuild": { + "optional": true + }, + "@parcel/css": { + "optional": true + }, + "lightningcss": { + "optional": true + }, + "@swc/css": { + "optional": true + } + }, + "engines": { + "node": ">= 18.12.0" + } } diff --git a/setupTest.js b/setupTest.js index 789c166..3687f80 100644 --- a/setupTest.js +++ b/setupTest.js @@ -1 +1,2 @@ +// eslint-disable-next-line no-undef jest.setTimeout(120000); diff --git a/src/index.js b/src/index.js index 973f54c..7d0ff5c 100644 --- a/src/index.js +++ b/src/index.js @@ -1,22 +1,21 @@ -const os = require("os"); +const os = require("node:os"); const { validate } = require("schema-utils"); +const { minify } = require("./minify"); +const schema = require("./options.json"); const { - throttleAll, - memoize, + cleanCssMinify, cssnanoMinify, cssoMinify, - cleanCssMinify, esbuildMinify, - parcelCssMinify, lightningCssMinify, + memoize, + parcelCssMinify, swcMinify, + throttleAll, } = require("./utils"); -const schema = require("./options.json"); -const { minify } = require("./minify"); - /** @typedef {import("schema-utils/declarations/validate").Schema} Schema */ /** @typedef {import("webpack").Compiler} Compiler */ /** @typedef {import("webpack").Compilation} Compilation */ @@ -31,36 +30,36 @@ const { minify } = require("./minify"); /** @typedef {import("@jridgewell/trace-mapping").TraceMap} TraceMap */ /** - * @typedef {Object} CssNanoOptions - * @property {string} [configFile] - * @property {[string, object] | string | undefined} [preset] + * @typedef {Record} CssNanoOptions + * @property {string=} configFile Configuration file path + * @property {string | [string, Record] | undefined=} preset CSS nano preset */ /** @typedef {Error & { plugin?: string, text?: string, source?: string } | string} Warning */ /** - * @typedef {Object} WarningObject - * @property {string} message - * @property {string} [plugin] - * @property {string} [text] - * @property {number} [line] - * @property {number} [column] + * @typedef {object} WarningObject + * @property {string} message Warning message + * @property {string=} plugin Plugin name + * @property {string=} text Warning text + * @property {number=} line Line number + * @property {number=} column Column number */ /** - * @typedef {Object} ErrorObject - * @property {string} message - * @property {number} [line] - * @property {number} [column] - * @property {string} [stack] + * @typedef {object} ErrorObject + * @property {string} message Error message + * @property {number=} line Line number + * @property {number=} column Column number + * @property {string=} stack Error stack trace */ /** - * @typedef {Object} MinimizedResult - * @property {string} code - * @property {RawSourceMap} [map] - * @property {Array} [errors] - * @property {Array} [warnings] + * @typedef {object} MinimizedResult + * @property {string} code Minimized code + * @property {RawSourceMap=} map Source map + * @property {Array=} errors Errors + * @property {Array=} warnings Warnings */ /** @@ -68,7 +67,7 @@ const { minify } = require("./minify"); */ /** - * @typedef {{ [key: string]: any }} CustomOptions + * @typedef {{ [key: string]: unknown }} CustomOptions */ /** @@ -92,7 +91,7 @@ const { minify } = require("./minify"); /** * @typedef {object} MinimizeFunctionHelpers - * @property {() => boolean | undefined} [supportsWorkerThreads] + * @property {() => boolean | undefined=} supportsWorkerThreads Check if worker threads are supported */ /** @@ -102,18 +101,18 @@ const { minify } = require("./minify"); /** * @template T - * @typedef {Object} InternalOptions - * @property {string} name - * @property {string} input - * @property {RawSourceMap | undefined} inputSourceMap - * @property {{ implementation: MinimizerImplementation, options: MinimizerOptions }} minimizer + * @typedef {object} InternalOptions + * @property {string} name Name + * @property {string} input Input + * @property {RawSourceMap | undefined} inputSourceMap Input source map + * @property {{ implementation: MinimizerImplementation, options: MinimizerOptions }} minimizer Minimizer */ /** * @typedef InternalResult - * @property {Array<{ code: string, map: RawSourceMap | undefined }>} outputs - * @property {Array} warnings - * @property {Array} errors + * @property {Array<{ code: string, map: RawSourceMap | undefined }>} outputs - Outputs + * @property {Array} warnings - Warnings + * @property {Array} errors - Errors */ /** @typedef {undefined | boolean | number} Parallel */ @@ -124,12 +123,12 @@ const { minify } = require("./minify"); /** @typedef {(warning: Warning | WarningObject | string, file: string, source?: string) => boolean} WarningsFilter */ /** - * @typedef {Object} BasePluginOptions - * @property {Rule} [test] - * @property {Rule} [include] - * @property {Rule} [exclude] - * @property {WarningsFilter} [warningsFilter] - * @property {Parallel} [parallel] + * @typedef {object} BasePluginOptions + * @property {Rule=} test Test rule + * @property {Rule=} include Include rule + * @property {Rule=} exclude Exclude rule + * @property {WarningsFilter=} warningsFilter Warnings filter + * @property {Parallel=} parallel Parallel option */ /** @@ -138,7 +137,7 @@ const { minify } = require("./minify"); */ /** - * @typedef{ProcessOptions | { from?: string, to?: string, parser?: string | Syntax | Parser, stringifier?: string | Syntax | Stringifier, syntax?: string | Syntax } } ProcessOptionsExtender + * @typedef {ProcessOptions | { from?: string, to?: string, parser?: string | Syntax | Parser, stringifier?: string | Syntax | Stringifier, syntax?: string | Syntax } } ProcessOptionsExtender */ /** @@ -157,21 +156,15 @@ const { minify } = require("./minify"); const warningRegex = /\s.+:+([0-9]+):+([0-9]+)/; -const getSerializeJavascript = memoize(() => - // eslint-disable-next-line global-require - require("serialize-javascript"), -); -const getTraceMapping = memoize(() => - // eslint-disable-next-line global-require - require("@jridgewell/trace-mapping"), -); +const getSerializeJavascript = memoize(() => require("serialize-javascript")); +const getTraceMapping = memoize(() => require("@jridgewell/trace-mapping")); /** * @template [T=CssNanoOptionsExtended] */ class CssMinimizerPlugin { /** - * @param {BasePluginOptions & DefinedDefaultMinimizerAndOptions} [options] + * @param {BasePluginOptions & DefinedDefaultMinimizerAndOptions=} options Plugin options */ constructor(options) { validate(/** @type {Schema} */ (schema), options || {}, { @@ -208,29 +201,32 @@ class CssMinimizerPlugin { /** * @private - * @param {any} input - * @returns {boolean} + * @param {unknown} input Input to check + * @returns {boolean} Whether input is a source map */ static isSourceMap(input) { // All required options for `new SourceMapConsumer(...options)` // https://github.com/mozilla/source-map#new-sourcemapconsumerrawsourcemap return Boolean( input && - input.version && - input.sources && + typeof input === "object" && + input !== null && + "version" in input && + "sources" in input && Array.isArray(input.sources) && + "mappings" in input && typeof input.mappings === "string", ); } /** * @private - * @param {Warning | WarningObject | string} warning - * @param {string} file - * @param {WarningsFilter} [warningsFilter] - * @param {TraceMap} [sourceMap] - * @param {Compilation["requestShortener"]} [requestShortener] - * @returns {Error & { hideStack?: boolean, file?: string } | undefined} + * @param {Warning | WarningObject | string} warning Warning + * @param {string} file File name + * @param {WarningsFilter=} warningsFilter Warnings filter + * @param {TraceMap=} sourceMap Source map + * @param {Compilation["requestShortener"]=} requestShortener Request shortener + * @returns {Error & { hideStack?: boolean, file?: string } | undefined} Built warning */ static buildWarning( warning, @@ -256,8 +252,8 @@ class CssMinimizerPlugin { const match = warningRegex.exec(warning); if (match) { - line = +match[1]; - column = +match[2]; + line = Number(match[1]); + column = Number(match[2]); } } else { ({ line, column } = /** @type {WarningObject} */ (warning)); @@ -304,17 +300,16 @@ class CssMinimizerPlugin { builtWarning.hideStack = true; builtWarning.file = file; - // eslint-disable-next-line consistent-return return builtWarning; } /** * @private - * @param {Error | ErrorObject | string} error - * @param {string} file - * @param {TraceMap} [sourceMap] - * @param {Compilation["requestShortener"]} [requestShortener] - * @returns {Error} + * @param {Error | ErrorObject | string} error Error + * @param {string} file File name + * @param {TraceMap=} sourceMap Source map + * @param {Compilation["requestShortener"]=} requestShortener Request shortener + * @returns {Error} Built error */ static buildError(error, file, sourceMap, requestShortener) { /** @@ -388,15 +383,18 @@ class CssMinimizerPlugin { /** * @private - * @param {Parallel} parallel - * @returns {number} + * @param {Parallel} parallel Parallel option + * @returns {number} Available number of cores */ static getAvailableNumberOfCores(parallel) { // In some cases cpus() returns undefined // https://github.com/nodejs/node/issues/19022 + const cpus = + // eslint-disable-next-line n/no-unsupported-features/node-builtins typeof os.availableParallelism === "function" - ? { length: os.availableParallelism() } + ? // eslint-disable-next-line n/no-unsupported-features/node-builtins + { length: os.availableParallelism() } : os.cpus() || { length: 1 }; return parallel === true || typeof parallel === "undefined" @@ -407,8 +405,8 @@ class CssMinimizerPlugin { /** * @private * @template T - * @param {BasicMinimizerImplementation & MinimizeFunctionHelpers} implementation - * @returns {boolean} + * @param {BasicMinimizerImplementation & MinimizeFunctionHelpers} implementation Implementation + * @returns {boolean} Whether worker threads are supported */ static isSupportsWorkerThreads(implementation) { return typeof implementation.supportsWorkerThreads !== "undefined" @@ -418,11 +416,11 @@ class CssMinimizerPlugin { /** * @private - * @param {Compiler} compiler - * @param {Compilation} compilation - * @param {Record} assets - * @param {{availableNumberOfCores: number}} optimizeOptions - * @returns {Promise} + * @param {Compiler} compiler Compiler + * @param {Compilation} compilation Compilation + * @param {Record} assets Assets + * @param {{availableNumberOfCores: number}} optimizeOptions Optimize options + * @returns {Promise} Promise */ async optimize(compiler, compilation, assets, optimizeOptions) { const cache = compilation.getCache("CssMinimizerWebpackPlugin"); @@ -441,7 +439,6 @@ class CssMinimizerPlugin { if ( !compiler.webpack.ModuleFilenameHelpers.matchObject.bind( - // eslint-disable-next-line no-undefined undefined, this.options, )(name) @@ -491,7 +488,6 @@ class CssMinimizerPlugin { return initializedWorker; } - // eslint-disable-next-line global-require const { Worker } = require("jest-worker"); initializedWorker = /** @type {MinimizerWorker} */ ( @@ -586,15 +582,14 @@ class CssMinimizerPlugin { compilation.errors.push( /** @type {WebpackError} */ ( CssMinimizerPlugin.buildError( - /** @type {any} */ (error), + /** @type {Error} */ (error), name, hasSourceMap ? new (getTraceMapping().TraceMap)( /** @type {RawSourceMap} */ (inputSourceMap), ) - : // eslint-disable-next-line no-undefined - undefined, - // eslint-disable-next-line no-undefined + : undefined, + hasSourceMap ? compilation.requestShortener : undefined, ) ), @@ -645,9 +640,8 @@ class CssMinimizerPlugin { ? new (getTraceMapping().TraceMap)( /** @type {RawSourceMap} */ (inputSourceMap), ) - : // eslint-disable-next-line no-undefined - undefined, - // eslint-disable-next-line no-undefined + : undefined, + hasSourceMap ? compilation.requestShortener : undefined, ), ); @@ -667,9 +661,8 @@ class CssMinimizerPlugin { ? new (getTraceMapping().TraceMap)( /** @type {RawSourceMap} */ (inputSourceMap), ) - : // eslint-disable-next-line no-undefined - undefined, - // eslint-disable-next-line no-undefined + : undefined, + hasSourceMap ? compilation.requestShortener : undefined, ); @@ -717,8 +710,8 @@ class CssMinimizerPlugin { } /** - * @param {Compiler} compiler - * @returns {void} + * @param {Compiler} compiler Compiler + * @returns {void} Void */ apply(compiler) { const pluginName = this.constructor.name; @@ -746,10 +739,11 @@ class CssMinimizerPlugin { .tap( "css-minimizer-webpack-plugin", (minimized, { green, formatFlag }) => - // eslint-disable-next-line no-undefined minimized - ? /** @type {Function} */ (green)( - /** @type {Function} */ (formatFlag)("minimized"), + ? /** @type {(text: string) => string} */ (green)( + /** @type {(flag: string) => string} */ (formatFlag)( + "minimized", + ), ) : "", ); diff --git a/src/minify.js b/src/minify.js index 8f76cbf..d97de87 100644 --- a/src/minify.js +++ b/src/minify.js @@ -3,8 +3,8 @@ /** * @template T - * @param {import("./index.js").InternalOptions} options - * @returns {Promise} + * @param {import("./index.js").InternalOptions} options Options + * @returns {Promise} Promise with internal result */ async function minify(options) { const minifyFns = Array.isArray(options.minimizer.implementation) @@ -26,7 +26,7 @@ async function minify(options) { ? result.outputs[result.outputs.length - 1] : { code: options.input, map: options.inputSourceMap }; const { code, map } = prevResult; - // eslint-disable-next-line no-await-in-loop + const minifyResult = await minifyFn( { [options.name]: code }, map, @@ -44,11 +44,11 @@ async function minify(options) { } if (minifyResult.errors) { - result.errors = result.errors.concat(minifyResult.errors); + result.errors = [...result.errors, ...minifyResult.errors]; } if (minifyResult.warnings) { - result.warnings = result.warnings.concat(minifyResult.warnings); + result.warnings = [...result.warnings, ...minifyResult.warnings]; } result.outputs.push({ code: minifyResult.code, map: minifyResult.map }); @@ -62,13 +62,13 @@ async function minify(options) { } /** - * @param {string} options - * @returns {Promise} + * @param {string} options Options string + * @returns {Promise} Promise with internal result */ async function transform(options) { // 'use strict' => this === undefined (Clean Scope) // Safer for possible security issues, albeit not critical at all here - // eslint-disable-next-line no-new-func, no-param-reassign + // eslint-disable-next-line no-new-func const evaluatedOptions = new Function( "exports", "require", @@ -76,7 +76,7 @@ async function transform(options) { "__filename", "__dirname", `'use strict'\nreturn ${options}`, - )(exports, require, module, __filename, __dirname); + )(module.exports, require, module, __filename, __dirname); return minify(evaluatedOptions); } diff --git a/src/utils.js b/src/utils.js index 8466f32..8e46227 100644 --- a/src/utils.js +++ b/src/utils.js @@ -5,7 +5,7 @@ /** @typedef {import("postcss").ProcessOptions} ProcessOptions */ /** @typedef {import("postcss").Postcss} Postcss */ -const notSettled = Symbol(`not-settled`); +const notSettled = Symbol("not-settled"); /** * @template T @@ -15,8 +15,8 @@ const notSettled = Symbol(`not-settled`); /** * Run tasks with limited concurrency. * @template T - * @param {number} limit - Limit of tasks that run at once. - * @param {Task[]} tasks - List of tasks to run. + * @param {number} limit Limit of tasks that run at once. + * @param {Task[]} tasks List of tasks to run. * @returns {Promise} A promise that fulfills to an array of the results */ function throttleAll(limit, tasks) { @@ -28,15 +28,15 @@ function throttleAll(limit, tasks) { if ( !Array.isArray(tasks) || - !tasks.every((task) => typeof task === `function`) + !tasks.every((task) => typeof task === "function") ) { throw new TypeError( - `Expected \`tasks\` to be a list of functions returning a promise`, + "Expected `tasks` to be a list of functions returning a promise", ); } return new Promise((resolve, reject) => { - const result = Array(tasks.length).fill(notSettled); + const result = Array.from({ length: tasks.length }).fill(notSettled); const entries = tasks.entries(); const next = () => { const { done, value } = entries.next(); @@ -52,26 +52,28 @@ function throttleAll(limit, tasks) { const [index, task] = value; /** - * @param {T} x + * @param {T} resultValue Result value */ - const onFulfilled = (x) => { - result[index] = x; + const onFulfilled = (resultValue) => { + result[index] = resultValue; next(); }; task().then(onFulfilled, reject); }; - Array(limit).fill(0).forEach(next); + for (let i = 0; i < limit; i++) { + next(); + } }); } /* istanbul ignore next */ /** - * @param {Input} input - * @param {RawSourceMap} [sourceMap] - * @param {CustomOptions} [minimizerOptions] - * @return {Promise} + * @param {Input} input Input + * @param {RawSourceMap=} sourceMap Source map + * @param {CustomOptions=} minimizerOptions Minimizer options + * @returns {Promise} Promise with minimized result */ async function cssnanoMinify( input, @@ -80,30 +82,29 @@ async function cssnanoMinify( ) { /** * @template T - * @param {string} module - * @returns {Promise} + * @param {string} module Module to load + * @returns {Promise} Promise with loaded module */ const load = async (module) => { let exports; try { - // eslint-disable-next-line import/no-dynamic-require, global-require exports = require(module); return exports; - } catch (requireError) { + } catch (err) { let importESM; try { // eslint-disable-next-line no-new-func importESM = new Function("id", "return import(id);"); - } catch (e) { + } catch { importESM = null; } if ( /** @type {Error & {code: string}} */ - (requireError).code === "ERR_REQUIRE_ESM" && + (err).code === "ERR_REQUIRE_ESM" && importESM ) { exports = await importESM(module); @@ -111,7 +112,7 @@ async function cssnanoMinify( return exports.default; } - throw requireError; + throw err; } }; @@ -119,7 +120,10 @@ async function cssnanoMinify( /** @type {ProcessOptions} */ const postcssOptions = { from: name, - ...minimizerOptions.processorOptions, + ...(minimizerOptions.processorOptions && + typeof minimizerOptions.processorOptions === "object" + ? minimizerOptions.processorOptions + : {}), }; if (typeof postcssOptions.parser === "string") { @@ -163,12 +167,11 @@ async function cssnanoMinify( } /** @type {Postcss} */ - // eslint-disable-next-line global-require + const postcss = require("postcss").default; - // @ts-ignore - // eslint-disable-next-line global-require + const cssnano = require("cssnano"); - // @ts-ignore + // Types are broken const result = await postcss([cssnano(minimizerOptions)]).process( code, @@ -177,11 +180,12 @@ async function cssnanoMinify( return { code: result.css, - // @ts-ignore + map: result.map - ? result.map.toJSON() - : // eslint-disable-next-line no-undefined - undefined, + ? /** @type {RawSourceMap} */ ( + /** @type {unknown} */ (result.map.toJSON()) + ) + : undefined, warnings: result.warnings().map(String), }; } @@ -190,14 +194,14 @@ cssnanoMinify.supportsWorkerThreads = () => true; /* istanbul ignore next */ /** - * @param {Input} input - * @param {RawSourceMap} [sourceMap] - * @param {CustomOptions} [minimizerOptions] - * @return {Promise} + * @param {Input} input Input + * @param {RawSourceMap=} sourceMap Source map + * @param {CustomOptions=} minimizerOptions Minimizer options + * @returns {Promise} Promise with minimized result */ async function cssoMinify(input, sourceMap, minimizerOptions) { - // eslint-disable-next-line global-require,import/no-extraneous-dependencies const csso = require("csso"); + const [[filename, code]] = Object.entries(input); const result = csso.minify(code, { filename, @@ -208,10 +212,10 @@ async function cssoMinify(input, sourceMap, minimizerOptions) { return { code: result.css, map: result.map - ? /** @type {any & { toJSON(): RawSourceMap }} */ - (result.map).toJSON() - : // eslint-disable-next-line no-undefined - undefined, + ? /** @type {RawSourceMap} */ ( + /** @type {{ toJSON(): RawSourceMap }} */ (result.map).toJSON() + ) + : undefined, }; } @@ -219,14 +223,14 @@ cssoMinify.supportsWorkerThreads = () => true; /* istanbul ignore next */ /** - * @param {Input} input - * @param {RawSourceMap} [sourceMap] - * @param {CustomOptions} [minimizerOptions] - * @return {Promise} + * @param {Input} input Input + * @param {RawSourceMap=} sourceMap Source map + * @param {CustomOptions=} minimizerOptions Minimizer options + * @returns {Promise} Promise with minimized result */ async function cleanCssMinify(input, sourceMap, minimizerOptions) { - // eslint-disable-next-line global-require,import/no-extraneous-dependencies const CleanCSS = require("clean-css"); + const [[name, code]] = Object.entries(input); const result = await new CleanCSS({ sourceMap: Boolean(sourceMap), @@ -234,22 +238,24 @@ async function cleanCssMinify(input, sourceMap, minimizerOptions) { returnPromise: true, }).minify({ [name]: { styles: code } }); - const generatedSourceMap = - result.sourceMap && - /** @type {any & { toJSON(): RawSourceMap }} */ - (result.sourceMap).toJSON(); + const generatedSourceMap = result.sourceMap + ? /** @type {RawSourceMap} */ ( + // eslint-disable-next-line jsdoc/no-restricted-syntax + /** @type {any} */ (result.sourceMap).toJSON() + ) + : undefined; // workaround for source maps on windows if (generatedSourceMap) { - // eslint-disable-next-line global-require - const isWindowsPathSep = require("path").sep === "\\"; + const isWindowsPathSep = require("node:path").sep === "\\"; generatedSourceMap.sources = generatedSourceMap.sources.map( /** - * @param {string} item - * @returns {string} + * @param {string | null} item Path item + * @returns {string} Normalized path */ - (item) => (isWindowsPathSep ? item.replace(/\\/g, "/") : item), + (item) => + isWindowsPathSep ? (item || "").replaceAll("\\", "/") : item || "", ); } @@ -264,28 +270,26 @@ cleanCssMinify.supportsWorkerThreads = () => true; /* istanbul ignore next */ /** - * @param {Input} input - * @param {RawSourceMap} [sourceMap] - * @param {CustomOptions} [minimizerOptions] - * @return {Promise} + * @param {Input} input Input + * @param {RawSourceMap=} sourceMap Source map + * @param {CustomOptions=} minimizerOptions Minimizer options + * @returns {Promise} Promise with minimized result */ async function esbuildMinify(input, sourceMap, minimizerOptions) { /** - * @param {import("esbuild").TransformOptions} [esbuildOptions={}] - * @returns {import("esbuild").TransformOptions} + * @param {import("esbuild").TransformOptions=} esbuildOptions ESBuild options + * @returns {import("esbuild").TransformOptions} Built ESBuild options */ - const buildEsbuildOptions = (esbuildOptions = {}) => { + const buildEsbuildOptions = (esbuildOptions = {}) => // Need deep copy objects to avoid https://github.com/terser/terser/issues/366 - return { + ({ loader: "css", minify: true, legalComments: "inline", ...esbuildOptions, sourcemap: false, - }; - }; + }); - // eslint-disable-next-line import/no-extraneous-dependencies, global-require const esbuild = require("esbuild"); // Copy `esbuild` options @@ -305,50 +309,46 @@ async function esbuildMinify(input, sourceMap, minimizerOptions) { return { code: result.code, - // eslint-disable-next-line no-undefined + map: result.map ? JSON.parse(result.map) : undefined, warnings: result.warnings.length > 0 - ? result.warnings.map((item) => { - return { - source: item.location && item.location.file, - line: - item.location && item.location.line - ? item.location.line - : // eslint-disable-next-line no-undefined - undefined, - column: - item.location && item.location.column - ? item.location.column - : // eslint-disable-next-line no-undefined - undefined, - plugin: item.pluginName, - message: `${item.text}${ - item.detail ? `\nDetails:\n${item.detail}` : "" - }${ - item.notes.length > 0 - ? `\n\nNotes:\n${item.notes - .map( - (note) => - `${ - note.location - ? `[${note.location.file}:${note.location.line}:${note.location.column}] ` - : "" - }${note.text}${ - note.location - ? `\nSuggestion: ${note.location.suggestion}` - : "" - }${ - note.location - ? `\nLine text:\n${note.location.lineText}\n` - : "" - }`, - ) - .join("\n")}` - : "" - }`, - }; - }) + ? result.warnings.map((item) => ({ + source: item.location && item.location.file, + line: + item.location && item.location.line + ? item.location.line + : undefined, + column: + item.location && item.location.column + ? item.location.column + : undefined, + plugin: item.pluginName, + message: `${item.text}${ + item.detail ? `\nDetails:\n${item.detail}` : "" + }${ + item.notes.length > 0 + ? `\n\nNotes:\n${item.notes + .map( + (note) => + `${ + note.location + ? `[${note.location.file}:${note.location.line}:${note.location.column}] ` + : "" + }${note.text}${ + note.location + ? `\nSuggestion: ${note.location.suggestion}` + : "" + }${ + note.location + ? `\nLine text:\n${note.location.lineText}\n` + : "" + }`, + ) + .join("\n")}` + : "" + }`, + })) : [], }; } @@ -358,29 +358,28 @@ esbuildMinify.supportsWorkerThreads = () => false; // TODO remove in the next major release /* istanbul ignore next */ /** - * @param {Input} input - * @param {RawSourceMap} [sourceMap] - * @param {CustomOptions} [minimizerOptions] - * @return {Promise} + * @param {Input} input Input + * @param {RawSourceMap=} sourceMap Source map + * @param {CustomOptions=} minimizerOptions Minimizer options + * @returns {Promise} Promise with minimized result */ async function parcelCssMinify(input, sourceMap, minimizerOptions) { const [[filename, code]] = Object.entries(input); + // eslint-disable-next-line jsdoc/no-restricted-syntax /** - * @param {Partial>} [parcelCssOptions={}] - * @returns {import("@parcel/css").TransformOptions} + * @param {Partial>=} parcelCssOptions Parcel CSS options + * @returns {import("@parcel/css").TransformOptions} Built Parcel CSS options */ - const buildParcelCssOptions = (parcelCssOptions = {}) => { + const buildParcelCssOptions = (parcelCssOptions = {}) => // Need deep copy objects to avoid https://github.com/terser/terser/issues/366 - return { + ({ minify: true, ...parcelCssOptions, sourceMap: false, filename, - code: Buffer.from(code), - }; - }; + code: new Uint8Array(Buffer.from(code)), + }); - // eslint-disable-next-line import/no-extraneous-dependencies, global-require const parcelCss = require("@parcel/css"); // Copy `parcel-css` options @@ -395,7 +394,7 @@ async function parcelCssMinify(input, sourceMap, minimizerOptions) { return { code: result.code.toString(), - // eslint-disable-next-line no-undefined + map: result.map ? JSON.parse(result.map.toString()) : undefined, }; } @@ -404,29 +403,28 @@ parcelCssMinify.supportsWorkerThreads = () => false; /* istanbul ignore next */ /** - * @param {Input} input - * @param {RawSourceMap} [sourceMap] - * @param {CustomOptions} [minimizerOptions] - * @return {Promise} + * @param {Input} input Input + * @param {RawSourceMap=} sourceMap Source map + * @param {CustomOptions=} minimizerOptions Minimizer options + * @returns {Promise} Promise with minimized result */ async function lightningCssMinify(input, sourceMap, minimizerOptions) { const [[filename, code]] = Object.entries(input); + // eslint-disable-next-line jsdoc/no-restricted-syntax /** - * @param {Partial>} [lightningCssOptions={}] - * @returns {import("lightningcss").TransformOptions} + * @param {Partial>=} lightningCssOptions Lightning CSS options + * @returns {import("lightningcss").TransformOptions} Built Lightning CSS options */ - const buildLightningCssOptions = (lightningCssOptions = {}) => { + const buildLightningCssOptions = (lightningCssOptions = {}) => // Need deep copy objects to avoid https://github.com/terser/terser/issues/366 - return { + ({ minify: true, ...lightningCssOptions, sourceMap: false, filename, - code: Buffer.from(code), - }; - }; + code: new Uint8Array(Buffer.from(code)), + }); - // eslint-disable-next-line import/no-extraneous-dependencies, global-require const lightningCss = require("lightningcss"); // Copy `lightningCss` options @@ -441,7 +439,7 @@ async function lightningCssMinify(input, sourceMap, minimizerOptions) { return { code: result.code.toString(), - // eslint-disable-next-line no-undefined + map: result.map ? JSON.parse(result.map.toString()) : undefined, }; } @@ -450,26 +448,24 @@ lightningCssMinify.supportsWorkerThreads = () => false; /* istanbul ignore next */ /** - * @param {Input} input - * @param {RawSourceMap} [sourceMap] - * @param {CustomOptions} [minimizerOptions] - * @return {Promise} + * @param {Input} input Input + * @param {RawSourceMap=} sourceMap Source map + * @param {CustomOptions=} minimizerOptions Minimizer options + * @returns {Promise} Promise with minimized result */ async function swcMinify(input, sourceMap, minimizerOptions) { const [[filename, code]] = Object.entries(input); /** - * @param {Partial} [swcOptions={}] - * @returns {import("@swc/css").MinifyOptions} + * @param {Partial=} swcOptions SWC options + * @returns {import("@swc/css").MinifyOptions} Built SWC options */ - const buildSwcOptions = (swcOptions = {}) => { + const buildSwcOptions = (swcOptions = {}) => // Need deep copy objects to avoid https://github.com/terser/terser/issues/366 - return { + ({ ...swcOptions, filename, - }; - }; + }); - // eslint-disable-next-line import/no-extraneous-dependencies, global-require const swc = require("@swc/css"); // Copy `swc` options @@ -484,21 +480,21 @@ async function swcMinify(input, sourceMap, minimizerOptions) { return { code: result.code.toString(), - // eslint-disable-next-line no-undefined + map: result.map ? JSON.parse(result.map.toString()) : undefined, errors: result.errors ? result.errors.map((diagnostic) => { const error = new Error(diagnostic.message); - // @ts-ignore - error.span = diagnostic.span; - // @ts-ignore - error.level = diagnostic.level; + // eslint-disable-next-line jsdoc/no-restricted-syntax + /** @type {any} */ (error).span = diagnostic.span; + + // eslint-disable-next-line jsdoc/no-restricted-syntax + /** @type {any} */ (error).level = diagnostic.level; return error; }) - : // eslint-disable-next-line no-undefined - undefined, + : undefined, }; } @@ -506,8 +502,8 @@ swcMinify.supportsWorkerThreads = () => false; /** * @template T - * @param fn {(function(): any) | undefined} - * @returns {function(): T} + * @param {(() => unknown) | undefined} fn Function to memoize + * @returns {() => T} Memoized function */ function memoize(fn) { let cache = false; @@ -518,11 +514,11 @@ function memoize(fn) { if (cache) { return result; } - result = /** @type {function(): any} */ (fn)(); + result = /** @type {T} */ (/** @type {() => unknown} */ (fn)()); cache = true; // Allow to clean up memory for fn // and all dependent resources - // eslint-disable-next-line no-undefined, no-param-reassign + fn = undefined; return result; @@ -530,13 +526,13 @@ function memoize(fn) { } module.exports = { - throttleAll, - memoize, + cleanCssMinify, cssnanoMinify, cssoMinify, - cleanCssMinify, esbuildMinify, - parcelCssMinify, lightningCssMinify, + memoize, + parcelCssMinify, swcMinify, + throttleAll, }; diff --git a/test/CssMinimizerPlugin.test.js b/test/CssMinimizerPlugin.test.js index 59ed27d..70ba3bb 100644 --- a/test/CssMinimizerPlugin.test.js +++ b/test/CssMinimizerPlugin.test.js @@ -1,21 +1,21 @@ -import path from "path"; +import path from "node:path"; import { TraceMap } from "@jridgewell/trace-mapping"; -import MiniCssExtractPlugin from "mini-css-extract-plugin"; import CopyPlugin from "copy-webpack-plugin"; +import MiniCssExtractPlugin from "mini-css-extract-plugin"; import RequestShortener from "webpack/lib/RequestShortener"; import CssMinimizerPlugin from "../src/index"; import { + EmitNewAsset, + ModifyExistingAsset, + compile, getCompiler, getErrors, getWarnings, - compile, - readAssets, readAsset, - ModifyExistingAsset, - EmitNewAsset, + readAssets, } from "./helpers"; describe("CssMinimizerPlugin", () => { @@ -48,7 +48,7 @@ describe("CssMinimizerPlugin", () => { hashSalt: "salt", }, entry: { - entry: `${__dirname}/fixtures/test/foo.css`, + entry: path.join(__dirname, "fixtures", "test", "foo.css"), }, }); new CssMinimizerPlugin({ @@ -81,17 +81,16 @@ describe("CssMinimizerPlugin", () => { const compiler = getCompiler({ entry: { - one: `${__dirname}/fixtures/entry.js`, - two: `${__dirname}/fixtures/entry.js`, + one: path.join(__dirname, "fixtures", "entry.js"), + two: path.join(__dirname, "fixtures", "entry.js"), }, }); new CssMinimizerPlugin({ parallel: true, minify: () => { - // eslint-disable-next-line no-console process.stdout.write("stdout\n"); - // eslint-disable-next-line no-console + process.stderr.write("stderr\n"); return { code: ".minify {};" }; @@ -191,7 +190,7 @@ describe("CssMinimizerPlugin", () => { CssMinimizerPlugin.buildWarning( "Warning test.css:1:1", "test.css", - // eslint-disable-next-line no-undefined + undefined, new TraceMap(rawSourceMap), ), @@ -200,7 +199,7 @@ describe("CssMinimizerPlugin", () => { CssMinimizerPlugin.buildWarning( "Warning test.css:1:1", "test.css", - // eslint-disable-next-line no-undefined + undefined, new TraceMap(rawSourceMap), new RequestShortener("/example.com/www/js/"), @@ -232,7 +231,7 @@ describe("CssMinimizerPlugin", () => { column: 1, }, "test.css", - // eslint-disable-next-line no-undefined + undefined, new TraceMap(rawSourceMap), new RequestShortener("/example.com/www/js/"), @@ -243,14 +242,14 @@ describe("CssMinimizerPlugin", () => { it("should build error", () => { const compiler = getCompiler({ entry: { - foo: `${__dirname}/fixtures/test/foo.css`, + foo: path.join(__dirname, "fixtures", "test", "foo.css"), }, plugins: [ new CopyPlugin({ patterns: [ { - context: `${__dirname}/fixtures/test`, - from: `error.css`, + context: path.join(__dirname, "fixtures", "test"), + from: "error.css", }, ], }), @@ -273,14 +272,14 @@ describe("CssMinimizerPlugin", () => { const compiler = getCompiler({ devtool: "source-map", entry: { - foo: `${__dirname}/fixtures/test/foo.css`, + foo: path.join(__dirname, "fixtures", "test", "foo.css"), }, }); new CssMinimizerPlugin({ minify: (data) => { - // eslint-disable-next-line global-require const postcss = require("postcss"); + const plugin = () => { let erroredDecl; @@ -315,29 +314,25 @@ describe("CssMinimizerPlugin", () => { const compiler = getCompiler({ devtool: "source-map", entry: { - foo: `${__dirname}/fixtures/test/foo.css`, + foo: path.join(__dirname, "fixtures", "test", "foo.css"), }, }); new CssMinimizerPlugin({ minify: (data) => { - // eslint-disable-next-line global-require const postcss = require("postcss"); - const plugin = () => { - let rule; - return { - postcssPlugin: "warning-plugin", - Declaration(decl, { result }) { - result.warn("Warning", { - node: rule, - word: "warning_word", - index: 2, - plugin: "warning-plugin", - }); - }, - }; - }; + const plugin = () => ({ + postcssPlugin: "warning-plugin", + Declaration(decl, { result }) { + result.warn("Warning", { + node: decl, + word: "warning_word", + index: 2, + plugin: "warning-plugin", + }); + }, + }); plugin.postcss = true; @@ -345,13 +340,11 @@ describe("CssMinimizerPlugin", () => { return postcss([plugin]) .process(input, { from: filename, to: filename }) - .then((result) => { - return { - code: result.css, - map: result.map, - warnings: result.warnings(), - }; - }); + .then((result) => ({ + code: result.css, + map: result.map, + warnings: result.warnings(), + })); }, }).apply(compiler); @@ -365,7 +358,7 @@ describe("CssMinimizerPlugin", () => { const config = { devtool: "source-map", entry: { - entry: `${__dirname}/fixtures/foo.css`, + entry: path.join(__dirname, "fixtures", "foo.css"), }, plugins: [ new MiniCssExtractPlugin({ @@ -383,7 +376,6 @@ describe("CssMinimizerPlugin", () => { expect(stats.compilation.errors).toEqual([]); expect(stats.compilation.warnings).toEqual([]); - // eslint-disable-next-line guard-for-in for (const file in stats.compilation.assets) { if (/\.css\?/.test(file)) { expect(readAsset(file, compiler, stats)).toMatchSnapshot(file); @@ -399,7 +391,7 @@ describe("CssMinimizerPlugin", () => { it("should work with child compilation", async () => { const compiler = getCompiler({ entry: { - entry: `${__dirname}/fixtures/entry.js`, + entry: path.join(__dirname, "fixtures", "entry.js"), }, module: { rules: [ @@ -433,7 +425,7 @@ describe("CssMinimizerPlugin", () => { it("should work and show minimized assets in stats", async () => { const compiler = getCompiler({ entry: { - foo: `${__dirname}/fixtures/entry.js`, + foo: path.join(__dirname, "fixtures", "entry.js"), }, }); @@ -452,7 +444,7 @@ describe("CssMinimizerPlugin", () => { it("should work and generate real content hash", async () => { const compiler = getCompiler({ entry: { - entry: `${__dirname}/fixtures/entry.js`, + entry: path.join(__dirname, "fixtures", "entry.js"), }, output: { pathinfo: false, @@ -485,7 +477,7 @@ describe("CssMinimizerPlugin", () => { for (const assetName of Object.keys(assets)) { const [, webpackHash] = assetName.match(/^.+?\.(.+?)\..+$/); const { hashDigestLength, hashDigest, hashFunction } = output; - // eslint-disable-next-line global-require + const cryptoHash = require("webpack") .util.createHash(hashFunction) .update(readAsset(assetName, compiler, stats)) @@ -503,7 +495,7 @@ describe("CssMinimizerPlugin", () => { it("should work and use memory cache out of box", async () => { const compiler = getCompiler({ entry: { - foo: `${__dirname}/fixtures/simple.js`, + foo: path.join(__dirname, "fixtures", "simple.js"), }, plugins: [ new MiniCssExtractPlugin({ @@ -539,26 +531,20 @@ describe("CssMinimizerPlugin", () => { expect(getWarnings(stats)).toMatchSnapshot("errors"); expect(getErrors(stats)).toMatchSnapshot("warnings"); - await new Promise(async (resolve) => { - const newStats = await compile(compiler); - - expect(newStats.compilation.emittedAssets.size).toBe(0); + const newStats = await compile(compiler); - expect(readAssets(compiler, newStats, /\.css$/)).toMatchSnapshot( - "assets", - ); - expect(getWarnings(newStats)).toMatchSnapshot("warnings"); - expect(getErrors(newStats)).toMatchSnapshot("errors"); + expect(newStats.compilation.emittedAssets.size).toBe(0); - resolve(); - }); + expect(readAssets(compiler, newStats, /\.css$/)).toMatchSnapshot("assets"); + expect(getWarnings(newStats)).toMatchSnapshot("warnings"); + expect(getErrors(newStats)).toMatchSnapshot("errors"); }); it('should work and use memory cache when the "cache" option is "true"', async () => { const compiler = getCompiler({ cache: true, entry: { - foo: `${__dirname}/fixtures/simple.js`, + foo: path.join(__dirname, "fixtures", "simple.js"), }, plugins: [ new MiniCssExtractPlugin({ @@ -594,26 +580,20 @@ describe("CssMinimizerPlugin", () => { expect(getWarnings(stats)).toMatchSnapshot("errors"); expect(getErrors(stats)).toMatchSnapshot("warnings"); - await new Promise(async (resolve) => { - const newStats = await compile(compiler); - - expect(newStats.compilation.emittedAssets.size).toBe(0); + const newStats = await compile(compiler); - expect(readAssets(compiler, newStats, /\.css$/)).toMatchSnapshot( - "assets", - ); - expect(getWarnings(newStats)).toMatchSnapshot("warnings"); - expect(getErrors(newStats)).toMatchSnapshot("errors"); + expect(newStats.compilation.emittedAssets.size).toBe(0); - resolve(); - }); + expect(readAssets(compiler, newStats, /\.css$/)).toMatchSnapshot("assets"); + expect(getWarnings(newStats)).toMatchSnapshot("warnings"); + expect(getErrors(newStats)).toMatchSnapshot("errors"); }); it('should work and use memory cache when the "cache" option is "true" and the asset has been changed', async () => { const compiler = getCompiler({ cache: true, entry: { - foo: `${__dirname}/fixtures/simple.js`, + foo: path.join(__dirname, "fixtures", "simple.js"), }, plugins: [ new MiniCssExtractPlugin({ @@ -651,26 +631,20 @@ describe("CssMinimizerPlugin", () => { new ModifyExistingAsset({ name: "foo.css" }).apply(compiler); - await new Promise(async (resolve) => { - const newStats = await compile(compiler); - - expect(newStats.compilation.emittedAssets.size).toBe(1); + const newStats = await compile(compiler); - expect(readAssets(compiler, newStats, /\.css$/)).toMatchSnapshot( - "assets", - ); - expect(getWarnings(newStats)).toMatchSnapshot("warnings"); - expect(getErrors(newStats)).toMatchSnapshot("errors"); + expect(newStats.compilation.emittedAssets.size).toBe(1); - resolve(); - }); + expect(readAssets(compiler, newStats, /\.css$/)).toMatchSnapshot("assets"); + expect(getWarnings(newStats)).toMatchSnapshot("warnings"); + expect(getErrors(newStats)).toMatchSnapshot("errors"); }); it('should work with source map and use memory cache when the "cache" option is "true"', async () => { const compiler = getCompiler({ devtool: "source-map", entry: { - foo: `${__dirname}/fixtures/simple.js`, + foo: path.join(__dirname, "fixtures", "simple.js"), }, plugins: [ new MiniCssExtractPlugin({ @@ -708,26 +682,22 @@ describe("CssMinimizerPlugin", () => { expect(getWarnings(stats)).toMatchSnapshot("errors"); expect(getErrors(stats)).toMatchSnapshot("warnings"); - await new Promise(async (resolve) => { - const newStats = await compile(compiler); + const newStats = await compile(compiler); - expect(newStats.compilation.emittedAssets.size).toBe(0); + expect(newStats.compilation.emittedAssets.size).toBe(0); - expect(readAssets(compiler, newStats, /\.css(\.map)?$/)).toMatchSnapshot( - "assets", - ); - expect(getWarnings(newStats)).toMatchSnapshot("warnings"); - expect(getErrors(newStats)).toMatchSnapshot("errors"); - - resolve(); - }); + expect(readAssets(compiler, newStats, /\.css(\.map)?$/)).toMatchSnapshot( + "assets", + ); + expect(getWarnings(newStats)).toMatchSnapshot("warnings"); + expect(getErrors(newStats)).toMatchSnapshot("errors"); }); it('should work with source map and use memory cache when the "cache" option is "true" and the asset has been changed', async () => { const compiler = getCompiler({ devtool: "source-map", entry: { - foo: `${__dirname}/fixtures/simple.js`, + foo: path.join(__dirname, "fixtures", "simple.js"), }, plugins: [ new MiniCssExtractPlugin({ @@ -767,25 +737,21 @@ describe("CssMinimizerPlugin", () => { new ModifyExistingAsset({ name: "foo.css" }).apply(compiler); - await new Promise(async (resolve) => { - const newStats = await compile(compiler); + const newStats = await compile(compiler); - expect(newStats.compilation.emittedAssets.size).toBe(2); + expect(newStats.compilation.emittedAssets.size).toBe(2); - expect(readAssets(compiler, newStats, /\.css(\.map)?$/)).toMatchSnapshot( - "assets", - ); - expect(getWarnings(newStats)).toMatchSnapshot("warnings"); - expect(getErrors(newStats)).toMatchSnapshot("errors"); - - resolve(); - }); + expect(readAssets(compiler, newStats, /\.css(\.map)?$/)).toMatchSnapshot( + "assets", + ); + expect(getWarnings(newStats)).toMatchSnapshot("warnings"); + expect(getErrors(newStats)).toMatchSnapshot("errors"); }); it('should work with warnings and use memory cache when the "cache" option is "true"', async () => { const compiler = getCompiler({ entry: { - foo: `${__dirname}/fixtures/simple.js`, + foo: path.join(__dirname, "fixtures", "simple.js"), }, plugins: [ new MiniCssExtractPlugin({ @@ -813,33 +779,29 @@ describe("CssMinimizerPlugin", () => { new CssMinimizerPlugin({ minify: (data) => { - // eslint-disable-next-line global-require const postcss = require("postcss"); + const [[fileName, input]] = Object.entries(data); - const plugin = () => { - return { - postcssPlugin: "warning-plugin", - OnceExit(decl, { result }) { - result.warn(`Warning from ${result.opts.from}`, { - plugin: "warning-plugin", - }); - }, - }; - }; + const plugin = () => ({ + postcssPlugin: "warning-plugin", + OnceExit(decl, { result }) { + result.warn(`Warning from ${result.opts.from}`, { + plugin: "warning-plugin", + }); + }, + }); plugin.postcss = true; return postcss([plugin]) .process(input, { from: fileName, to: fileName }) - .then((result) => { - return { - code: result.css, - map: result.map, - error: result.error, - warnings: result.warnings(), - }; - }); + .then((result) => ({ + code: result.css, + map: result.map, + error: result.error, + warnings: result.warnings(), + })); }, }).apply(compiler); @@ -851,25 +813,19 @@ describe("CssMinimizerPlugin", () => { expect(getWarnings(stats)).toMatchSnapshot("errors"); expect(getErrors(stats)).toMatchSnapshot("warnings"); - await new Promise(async (resolve) => { - const newStats = await compile(compiler); - - expect(newStats.compilation.emittedAssets.size).toBe(0); + const newStats = await compile(compiler); - expect(readAssets(compiler, newStats, /\.css$/)).toMatchSnapshot( - "assets", - ); - expect(getWarnings(newStats)).toMatchSnapshot("warnings"); - expect(getErrors(newStats)).toMatchSnapshot("errors"); + expect(newStats.compilation.emittedAssets.size).toBe(0); - resolve(); - }); + expect(readAssets(compiler, newStats, /\.css$/)).toMatchSnapshot("assets"); + expect(getWarnings(newStats)).toMatchSnapshot("warnings"); + expect(getErrors(newStats)).toMatchSnapshot("errors"); }); it('should work with warnings and use memory cache when the "cache" option is "true" and the asset has been changed', async () => { const compiler = getCompiler({ entry: { - foo: `${__dirname}/fixtures/simple.js`, + foo: path.join(__dirname, "fixtures", "simple.js"), }, plugins: [ new MiniCssExtractPlugin({ @@ -897,33 +853,29 @@ describe("CssMinimizerPlugin", () => { new CssMinimizerPlugin({ minify: (data) => { - // eslint-disable-next-line global-require const postcss = require("postcss"); + const [[fileName, input]] = Object.entries(data); - const plugin = () => { - return { - postcssPlugin: "warning-plugin", - OnceExit(decl, { result }) { - result.warn(`Warning from ${result.opts.from}`, { - plugin: "warning-plugin", - }); - }, - }; - }; + const plugin = () => ({ + postcssPlugin: "warning-plugin", + OnceExit(decl, { result }) { + result.warn(`Warning from ${result.opts.from}`, { + plugin: "warning-plugin", + }); + }, + }); plugin.postcss = true; return postcss([plugin]) .process(input, { from: fileName, to: fileName }) - .then((result) => { - return { - code: result.css, - map: result.map, - error: result.error, - warnings: result.warnings(), - }; - }); + .then((result) => ({ + code: result.css, + map: result.map, + error: result.error, + warnings: result.warnings(), + })); }, }).apply(compiler); @@ -937,26 +889,20 @@ describe("CssMinimizerPlugin", () => { new ModifyExistingAsset({ name: "foo.css" }).apply(compiler); - await new Promise(async (resolve) => { - const newStats = await compile(compiler); - - expect(newStats.compilation.emittedAssets.size).toBe(1); + const newStats = await compile(compiler); - expect(readAssets(compiler, newStats, /\.css$/)).toMatchSnapshot( - "assets", - ); - expect(getWarnings(newStats)).toMatchSnapshot("warnings"); - expect(getErrors(newStats)).toMatchSnapshot("errors"); + expect(newStats.compilation.emittedAssets.size).toBe(1); - resolve(); - }); + expect(readAssets(compiler, newStats, /\.css$/)).toMatchSnapshot("assets"); + expect(getWarnings(newStats)).toMatchSnapshot("warnings"); + expect(getErrors(newStats)).toMatchSnapshot("errors"); }); it('should work and do not use memory cache when the "cache" option is "false"', async () => { const compiler = getCompiler({ cache: false, entry: { - foo: `${__dirname}/fixtures/simple.js`, + foo: path.join(__dirname, "fixtures", "simple.js"), }, plugins: [ new MiniCssExtractPlugin({ @@ -992,19 +938,13 @@ describe("CssMinimizerPlugin", () => { expect(getWarnings(stats)).toMatchSnapshot("errors"); expect(getErrors(stats)).toMatchSnapshot("warnings"); - await new Promise(async (resolve) => { - const newStats = await compile(compiler); - - expect(newStats.compilation.emittedAssets.size).toBe(5); + const newStats = await compile(compiler); - expect(readAssets(compiler, newStats, /\.css$/)).toMatchSnapshot( - "assets", - ); - expect(getWarnings(newStats)).toMatchSnapshot("warnings"); - expect(getErrors(newStats)).toMatchSnapshot("errors"); + expect(newStats.compilation.emittedAssets.size).toBe(5); - resolve(); - }); + expect(readAssets(compiler, newStats, /\.css$/)).toMatchSnapshot("assets"); + expect(getWarnings(newStats)).toMatchSnapshot("warnings"); + expect(getErrors(newStats)).toMatchSnapshot("errors"); }); it("should run plugin against assets added later by plugins", async () => { @@ -1016,7 +956,7 @@ describe("CssMinimizerPlugin", () => { chunkFilename: "[id].[name].js", }, entry: { - entry: `${__dirname}/fixtures/test/foo.css`, + entry: path.join(__dirname, "fixtures", "test", "foo.css"), }, module: { rules: [ diff --git a/test/__snapshots__/CssMinimizerPlugin.test.js.snap b/test/__snapshots__/CssMinimizerPlugin.test.js.snap index c58ff23..53ab111 100644 --- a/test/__snapshots__/CssMinimizerPlugin.test.js.snap +++ b/test/__snapshots__/CssMinimizerPlugin.test.js.snap @@ -61,15 +61,15 @@ exports[`CssMinimizerPlugin should build error: error 1`] = ` exports[`CssMinimizerPlugin should build error: warning 1`] = `[]`; -exports[`CssMinimizerPlugin should build warning: error 1`] = `[]`; - -exports[`CssMinimizerPlugin should build warning: warning 1`] = ` +exports[`CssMinimizerPlugin should build warning: error 1`] = ` [ - "Warning: foo.css from Css Minimizer plugin -[warning-plugin] Warning", + "Error: foo.css from Css Minimizer plugin +DataCloneError: [object Object] could not be cloned.", ] `; +exports[`CssMinimizerPlugin should build warning: warning 1`] = `[]`; + exports[`CssMinimizerPlugin should respect the hash options #1: assets 1`] = ` { "entry.css": "a{text-align:center}", diff --git a/test/__snapshots__/parallel-option.test.js.snap b/test/__snapshots__/parallel-option.test.js.snap index fd72572..c1f34fc 100644 --- a/test/__snapshots__/parallel-option.test.js.snap +++ b/test/__snapshots__/parallel-option.test.js.snap @@ -30,6 +30,8 @@ exports[`parallel option should match snapshot for the "true" value and the numb { "entry-0.css": "body{color:red}a{color:blue}", "entry-1.css": "body{color:red}a{color:blue}", + "entry-2.css": "body{color:red}a{color:blue}", + "entry-3.css": "body{color:red}a{color:blue}", } `; @@ -60,6 +62,10 @@ exports[`parallel option should match snapshot for the "true" value and the numb "entry-1.css": "body{color:red}a{color:blue}", "entry-2.css": "body{color:red}a{color:blue}", "entry-3.css": "body{color:red}a{color:blue}", + "entry-4.css": "body{color:red}a{color:blue}", + "entry-5.css": "body{color:red}a{color:blue}", + "entry-6.css": "body{color:red}a{color:blue}", + "entry-7.css": "body{color:red}a{color:blue}", } `; diff --git a/test/__snapshots__/validate-options.test.js.snap b/test/__snapshots__/validate-options.test.js.snap index e5165d1..e06bc56 100644 --- a/test/__snapshots__/validate-options.test.js.snap +++ b/test/__snapshots__/validate-options.test.js.snap @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`validation 1`] = ` +exports[`validation validation 1`] = ` "Invalid options object. Css Minimizer Plugin has been initialized using an options object that does not match the API schema. - options.test should be one of these: [RegExp | non-empty string, ...] | RegExp | non-empty string @@ -17,7 +17,7 @@ exports[`validation 1`] = ` * options.test should be a non-empty string." `; -exports[`validation 2`] = ` +exports[`validation validation 2`] = ` "Invalid options object. Css Minimizer Plugin has been initialized using an options object that does not match the API schema. - options.test should be one of these: [RegExp | non-empty string, ...] | RegExp | non-empty string @@ -32,7 +32,7 @@ exports[`validation 2`] = ` * options.test[0] should be a non-empty string." `; -exports[`validation 3`] = ` +exports[`validation validation 3`] = ` "Invalid options object. Css Minimizer Plugin has been initialized using an options object that does not match the API schema. - options.include should be one of these: [RegExp | non-empty string, ...] | RegExp | non-empty string @@ -49,7 +49,7 @@ exports[`validation 3`] = ` * options.include should be a non-empty string." `; -exports[`validation 4`] = ` +exports[`validation validation 4`] = ` "Invalid options object. Css Minimizer Plugin has been initialized using an options object that does not match the API schema. - options.include should be one of these: [RegExp | non-empty string, ...] | RegExp | non-empty string @@ -64,7 +64,7 @@ exports[`validation 4`] = ` * options.include[0] should be a non-empty string." `; -exports[`validation 5`] = ` +exports[`validation validation 5`] = ` "Invalid options object. Css Minimizer Plugin has been initialized using an options object that does not match the API schema. - options.exclude should be one of these: [RegExp | non-empty string, ...] | RegExp | non-empty string @@ -81,7 +81,7 @@ exports[`validation 5`] = ` * options.exclude should be a non-empty string." `; -exports[`validation 6`] = ` +exports[`validation validation 6`] = ` "Invalid options object. Css Minimizer Plugin has been initialized using an options object that does not match the API schema. - options.exclude should be one of these: [RegExp | non-empty string, ...] | RegExp | non-empty string @@ -96,7 +96,7 @@ exports[`validation 6`] = ` * options.exclude[0] should be a non-empty string." `; -exports[`validation 7`] = ` +exports[`validation validation 7`] = ` "Invalid options object. Css Minimizer Plugin has been initialized using an options object that does not match the API schema. - options.minimizerOptions should be one of these: object { … } | [object { … }, ...] (should not have fewer than 1 item) @@ -109,7 +109,7 @@ exports[`validation 7`] = ` [object { … }, ...] (should not have fewer than 1 item)" `; -exports[`validation 8`] = ` +exports[`validation validation 8`] = ` "Invalid options object. Css Minimizer Plugin has been initialized using an options object that does not match the API schema. - options.parallel should be one of these: boolean | integer @@ -120,7 +120,7 @@ exports[`validation 8`] = ` * options.parallel should be an integer." `; -exports[`validation 9`] = ` +exports[`validation validation 9`] = ` "Invalid options object. Css Minimizer Plugin has been initialized using an options object that does not match the API schema. - options.parallel should be one of these: boolean | integer @@ -131,7 +131,7 @@ exports[`validation 9`] = ` * options.parallel should be an integer." `; -exports[`validation 10`] = ` +exports[`validation validation 10`] = ` "Invalid options object. Css Minimizer Plugin has been initialized using an options object that does not match the API schema. - options.minify should be one of these: function | [function, ...] (should not have fewer than 1 item) @@ -143,7 +143,7 @@ exports[`validation 10`] = ` [function, ...] (should not have fewer than 1 item)" `; -exports[`validation 11`] = ` +exports[`validation validation 11`] = ` "Invalid options object. Css Minimizer Plugin has been initialized using an options object that does not match the API schema. - options has an unknown property 'unknown'. These properties are valid: object { test?, include?, exclude?, minimizerOptions?, parallel?, warningsFilter?, minify? }" diff --git a/test/cache-option.test.js b/test/cache-option.test.js index 1288b51..898e533 100644 --- a/test/cache-option.test.js +++ b/test/cache-option.test.js @@ -1,4 +1,4 @@ -import path from "path"; +import path from "node:path"; import del from "del"; @@ -37,11 +37,11 @@ describe('"cache" option', () => { it('should work with the "false" value for the "cache" option', async () => { const compiler = getCompiler({ entry: { - one: `${__dirname}/fixtures/cache.js`, - two: `${__dirname}/fixtures/cache-1.js`, - three: `${__dirname}/fixtures/cache-2.js`, - four: `${__dirname}/fixtures/cache-3.js`, - five: `${__dirname}/fixtures/cache-4.js`, + one: path.join(__dirname, "fixtures", "cache.js"), + two: path.join(__dirname, "fixtures", "cache-1.js"), + three: path.join(__dirname, "fixtures", "cache-2.js"), + four: path.join(__dirname, "fixtures", "cache-3.js"), + five: path.join(__dirname, "fixtures", "cache-4.js"), }, cache: false, }); @@ -53,7 +53,7 @@ describe('"cache" option', () => { compiler.cache.hooks.get.tap( { name: "TestCache", stage: -100 }, (identifier) => { - if (identifier.indexOf("CssMinimizerWebpackPlugin") !== -1) { + if (identifier.includes("CssMinimizerWebpackPlugin")) { getCounter += 1; } }, @@ -64,7 +64,7 @@ describe('"cache" option', () => { compiler.cache.hooks.store.tap( { name: "TestCache", stage: -100 }, (identifier) => { - if (identifier.indexOf("CssMinimizerWebpackPlugin") !== -1) { + if (identifier.includes("CssMinimizerWebpackPlugin")) { storeCounter += 1; } }, @@ -103,11 +103,11 @@ describe('"cache" option', () => { it('should work with the "memory" value for the "cache.type" option', async () => { const compiler = getCompiler({ entry: { - one: `${__dirname}/fixtures/cache.js`, - two: `${__dirname}/fixtures/cache-1.js`, - three: `${__dirname}/fixtures/cache-2.js`, - four: `${__dirname}/fixtures/cache-3.js`, - five: `${__dirname}/fixtures/cache-4.js`, + one: path.join(__dirname, "fixtures", "cache.js"), + two: path.join(__dirname, "fixtures", "cache-1.js"), + three: path.join(__dirname, "fixtures", "cache-2.js"), + four: path.join(__dirname, "fixtures", "cache-3.js"), + five: path.join(__dirname, "fixtures", "cache-4.js"), }, cache: { type: "memory", @@ -121,7 +121,7 @@ describe('"cache" option', () => { compiler.cache.hooks.get.tap( { name: "TestCache", stage: -100 }, (identifier) => { - if (identifier.indexOf("CssMinimizerWebpackPlugin") !== -1) { + if (identifier.includes("CssMinimizerWebpackPlugin")) { getCounter += 1; } }, @@ -132,7 +132,7 @@ describe('"cache" option', () => { compiler.cache.hooks.store.tap( { name: "TestCache", stage: -100 }, (identifier) => { - if (identifier.indexOf("CssMinimizerWebpackPlugin") !== -1) { + if (identifier.includes("CssMinimizerWebpackPlugin")) { storeCounter += 1; } }, @@ -171,11 +171,11 @@ describe('"cache" option', () => { it('should work with the "filesystem" value for the "cache.type" option', async () => { const compiler = getCompiler({ entry: { - one: `${__dirname}/fixtures/cache.js`, - two: `${__dirname}/fixtures/cache-1.js`, - three: `${__dirname}/fixtures/cache-2.js`, - four: `${__dirname}/fixtures/cache-3.js`, - five: `${__dirname}/fixtures/cache-4.js`, + one: path.join(__dirname, "fixtures", "cache.js"), + two: path.join(__dirname, "fixtures", "cache-1.js"), + three: path.join(__dirname, "fixtures", "cache-2.js"), + four: path.join(__dirname, "fixtures", "cache-3.js"), + five: path.join(__dirname, "fixtures", "cache-4.js"), }, cache: { type: "filesystem", @@ -190,7 +190,7 @@ describe('"cache" option', () => { compiler.cache.hooks.get.tap( { name: "TestCache", stage: -100 }, (identifier) => { - if (identifier.indexOf("CssMinimizerWebpackPlugin") !== -1) { + if (identifier.includes("CssMinimizerWebpackPlugin")) { getCounter += 1; } }, @@ -201,7 +201,7 @@ describe('"cache" option', () => { compiler.cache.hooks.store.tap( { name: "TestCache", stage: -100 }, (identifier) => { - if (identifier.indexOf("CssMinimizerWebpackPlugin") !== -1) { + if (identifier.includes("CssMinimizerWebpackPlugin")) { storeCounter += 1; } }, @@ -260,7 +260,7 @@ describe('"cache" option', () => { compiler.cache.hooks.get.tap( { name: "TestCache", stage: -100 }, (identifier) => { - if (identifier.indexOf("CssMinimizerWebpackPlugin") !== -1) { + if (identifier.includes("CssMinimizerWebpackPlugin")) { getCounter += 1; } }, @@ -271,7 +271,7 @@ describe('"cache" option', () => { compiler.cache.hooks.store.tap( { name: "TestCache", stage: -100 }, (identifier) => { - if (identifier.indexOf("CssMinimizerWebpackPlugin") !== -1) { + if (identifier.includes("CssMinimizerWebpackPlugin")) { storeCounter += 1; } }, @@ -328,32 +328,28 @@ describe('"cache" option', () => { new CssMinimizerPlugin({ minify: (data) => { - // eslint-disable-next-line global-require const postcss = require("postcss"); + const [[fileName, input]] = Object.entries(data); - const plugin = () => { - return { - postcssPlugin: "warning-plugin", - OnceExit(decl, { result }) { - result.warn(`Warning from ${result.opts.from}`, { - plugin: "warning-plugin", - }); - }, - }; - }; + const plugin = () => ({ + postcssPlugin: "warning-plugin", + OnceExit(decl, { result }) { + result.warn(`Warning from ${result.opts.from}`, { + plugin: "warning-plugin", + }); + }, + }); plugin.postcss = true; return postcss([plugin]) .process(input, { from: fileName, to: fileName }) - .then((result) => { - return { - code: result.css, - map: result.map, - error: result.error, - warnings: result.warnings(), - }; - }); + .then((result) => ({ + code: result.css, + map: result.map, + error: result.error, + warnings: result.warnings(), + })); }, }).apply(compiler); @@ -362,7 +358,7 @@ describe('"cache" option', () => { compiler.cache.hooks.get.tap( { name: "TestCache", stage: -100 }, (identifier) => { - if (identifier.indexOf("CssMinimizerWebpackPlugin") !== -1) { + if (identifier.includes("CssMinimizerWebpackPlugin")) { getCounter += 1; } }, @@ -373,7 +369,7 @@ describe('"cache" option', () => { compiler.cache.hooks.store.tap( { name: "TestCache", stage: -100 }, (identifier) => { - if (identifier.indexOf("CssMinimizerWebpackPlugin") !== -1) { + if (identifier.includes("CssMinimizerWebpackPlugin")) { storeCounter += 1; } }, diff --git a/test/exclude-option.test.js b/test/exclude-option.test.js index c6949e6..6a20b8b 100644 --- a/test/exclude-option.test.js +++ b/test/exclude-option.test.js @@ -1,3 +1,5 @@ +import path from "node:path"; + import CssMinimizerPlugin from "../src/index"; import { @@ -14,9 +16,9 @@ describe("exclude option", () => { beforeEach(() => { compiler = getCompiler({ entry: { - excluded1: `${__dirname}/fixtures/excluded1.js`, - excluded2: `${__dirname}/fixtures/excluded2.js`, - entry: `${__dirname}/fixtures/entry.js`, + excluded1: path.join(__dirname, "fixtures", "excluded1.js"), + excluded2: path.join(__dirname, "fixtures", "excluded2.js"), + entry: path.join(__dirname, "fixtures", "entry.js"), }, }); }); diff --git a/test/helpers/EmitNewAsset.js b/test/helpers/EmitNewAsset.js index b1b680c..c0abfaa 100644 --- a/test/helpers/EmitNewAsset.js +++ b/test/helpers/EmitNewAsset.js @@ -15,7 +15,6 @@ export default class EmitNewAsset { stage: compiler.webpack.Compilation.PROCESS_ASSETS_STAGE_REPORT, }, () => { - // eslint-disable-next-line no-param-reassign compilation.emitAsset( this.options.name, new RawSource(` diff --git a/test/helpers/ModifyExistingAsset.js b/test/helpers/ModifyExistingAsset.js index cdcf742..9d2c7d8 100644 --- a/test/helpers/ModifyExistingAsset.js +++ b/test/helpers/ModifyExistingAsset.js @@ -9,9 +9,8 @@ export default class ExistingCommentsFile { compiler.hooks.thisCompilation.tap(plugin, (compilation) => { compilation.hooks.additionalAssets.tap(plugin, () => { - // eslint-disable-next-line no-param-reassign compilation.assets[this.options.name] = new ConcatSource( - `a { color: red; }`, + "a { color: red; }", compilation.assets[this.options.name], ); }); diff --git a/test/helpers/compile.js b/test/helpers/compile.js index a7fb43b..c48123f 100644 --- a/test/helpers/compile.js +++ b/test/helpers/compile.js @@ -1,3 +1,7 @@ +/** + * @param {import("webpack").Compiler} compiler Webpack compiler + * @returns {Promise} Promise with webpack stats + */ export default function compile(compiler) { return new Promise((resolve, reject) => { compiler.run((err, stats) => { diff --git a/test/helpers/emitAssetInChildCompilationLoader.js b/test/helpers/emitAssetInChildCompilationLoader.js index d27b6c8..0a39326 100644 --- a/test/helpers/emitAssetInChildCompilationLoader.js +++ b/test/helpers/emitAssetInChildCompilationLoader.js @@ -3,7 +3,6 @@ class PreCopyPlugin { this.options = options.options || {}; } - // eslint-disable-next-line class-methods-use-this apply(compiler) { const plugin = { name: "PreCopyPlugin" }; const { RawSource } = compiler.webpack.sources; @@ -21,11 +20,14 @@ class PreCopyPlugin { } } +/** + * @returns {string} Loader result + */ export default function loader() { const callback = this.async(); const childCompiler = this._compilation.createChildCompiler( - `preloader`, + "preloader", this.options, ); diff --git a/test/helpers/emitAssetLoader.js b/test/helpers/emitAssetLoader.js index a581153..051d976 100644 --- a/test/helpers/emitAssetLoader.js +++ b/test/helpers/emitAssetLoader.js @@ -1,3 +1,7 @@ +/** + * @param {string} content Loader content + * @returns {string} Processed content + */ export default function loader(content) { this.emitFile("style.css", "a { color: red; }"); diff --git a/test/helpers/emitAssetLoader2.js b/test/helpers/emitAssetLoader2.js index f39f18d..7fc2e5d 100644 --- a/test/helpers/emitAssetLoader2.js +++ b/test/helpers/emitAssetLoader2.js @@ -1,3 +1,7 @@ +/** + * @param {string} content Loader content + * @returns {string} Processed content + */ export default function loader(content) { this.emitFile("style-2.css", "a { color: coral; }"); diff --git a/test/helpers/getCompiler.js b/test/helpers/getCompiler.js index 417afb2..3e4d07b 100644 --- a/test/helpers/getCompiler.js +++ b/test/helpers/getCompiler.js @@ -1,9 +1,13 @@ -import path from "path"; +import path from "node:path"; -import webpack from "webpack"; +import { Volume, createFsFromVolume } from "memfs"; import MiniCssExtractPlugin from "mini-css-extract-plugin"; -import { createFsFromVolume, Volume } from "memfs"; +import webpack from "webpack"; +/** + * @param {import("webpack").Configuration} config Webpack configuration + * @returns {import("webpack").Compiler} Webpack compiler + */ export default function getCompiler(config) { const compiler = webpack({ mode: "development", diff --git a/test/helpers/index.js b/test/helpers/index.js index dd1a126..8d8e9e6 100644 --- a/test/helpers/index.js +++ b/test/helpers/index.js @@ -1,21 +1,9 @@ -import compile from "./compile"; -import getCompiler from "./getCompiler"; -import readAsset from "./readAsset"; -import readAssets from "./readAssets"; -import ModifyExistingAsset from "./ModifyExistingAsset"; -import EmitNewAsset from "./EmitNewAsset"; -import getErrors from "./getErrors"; -import getWarnings from "./getWarnings"; -import normalizeErrors from "./normalizeErrors"; - -export { - compile, - getCompiler, - readAsset, - readAssets, - ModifyExistingAsset, - EmitNewAsset, - getErrors, - getWarnings, - normalizeErrors, -}; +export { default as getErrors } from "./getErrors"; +export { default as getWarnings } from "./getWarnings"; +export { default as EmitNewAsset } from "./EmitNewAsset"; +export { default as compile } from "./compile"; +export { default as ModifyExistingAsset } from "./ModifyExistingAsset"; +export { default as getCompiler } from "./getCompiler"; +export { default as readAsset } from "./readAsset"; +export { default as normalizeErrors } from "./normalizeErrors"; +export { default as readAssets } from "./readAssets"; diff --git a/test/helpers/normalizeErrors.js b/test/helpers/normalizeErrors.js index d92ca8c..bd175bb 100644 --- a/test/helpers/normalizeErrors.js +++ b/test/helpers/normalizeErrors.js @@ -1,17 +1,24 @@ +/** + * @param {string} str String to process + * @returns {string} Processed string + */ function removeCWD(str) { const isWin = process.platform === "win32"; let cwd = process.cwd(); if (isWin) { - // eslint-disable-next-line no-param-reassign - str = str.replace(/\\/g, "/"); - // eslint-disable-next-line no-param-reassign - cwd = cwd.replace(/\\/g, "/"); + str = str.replaceAll("\\", "/"); + + cwd = cwd.replaceAll("\\", "/"); } - return str.replace(new RegExp(cwd, "g"), ""); + return str.replaceAll(new RegExp(cwd, "g"), ""); } +/** + * @param {Array} errors Array of errors + * @returns {Array} Normalized error messages + */ export default (errors) => errors.map((error) => removeCWD(error.toString().split("\n").slice(0, 2).join("\n")), diff --git a/test/helpers/readAsset.js b/test/helpers/readAsset.js index bd1ae27..ea0597f 100644 --- a/test/helpers/readAsset.js +++ b/test/helpers/readAsset.js @@ -1,4 +1,4 @@ -import path from "path"; +import path from "node:path"; export default (asset, compiler, stats) => { const usedFs = compiler.outputFileSystem; diff --git a/test/helpers/readAssets.js b/test/helpers/readAssets.js index bed6359..284349f 100644 --- a/test/helpers/readAssets.js +++ b/test/helpers/readAssets.js @@ -1,15 +1,21 @@ import readAsset from "./readAsset"; +/** + * @param {import("webpack").Compiler} compiler Webpack compiler + * @param {import("webpack").Stats} stats Webpack stats + * @param {RegExp=} extension File extension filter + * @returns {Record} Assets map + */ export default function readAssets(compiler, stats, extension) { const assets = {}; - Object.keys(stats.compilation.assets).forEach((asset) => { + for (const asset of Object.keys(stats.compilation.assets)) { if (typeof extension === "undefined") { assets[asset] = readAsset(asset, compiler, stats); } else if (extension.test(asset)) { assets[asset] = readAsset(asset, compiler, stats); } - }); + } return assets; } diff --git a/test/include-option.test.js b/test/include-option.test.js index 6083d5d..29c1e9f 100644 --- a/test/include-option.test.js +++ b/test/include-option.test.js @@ -1,3 +1,5 @@ +import path from "node:path"; + import CssMinimizerPlugin from "../src/index"; import { @@ -14,9 +16,9 @@ describe("include option", () => { beforeEach(() => { compiler = getCompiler({ entry: { - included1: `${__dirname}/fixtures/included1.js`, - included2: `${__dirname}/fixtures/included2.js`, - entry: `${__dirname}/fixtures/entry.js`, + included1: path.join(__dirname, "fixtures", "included1.js"), + included2: path.join(__dirname, "fixtures", "included2.js"), + entry: path.join(__dirname, "fixtures", "entry.js"), }, }); }); diff --git a/test/minify-option.test.js b/test/minify-option.test.js index 855cda9..d31e436 100644 --- a/test/minify-option.test.js +++ b/test/minify-option.test.js @@ -1,5 +1,7 @@ -import MiniCssExtractPlugin from "mini-css-extract-plugin"; +import path from "node:path"; + import CopyPlugin from "copy-webpack-plugin"; +import MiniCssExtractPlugin from "mini-css-extract-plugin"; import CssMinimizerPlugin from "../src"; @@ -17,7 +19,7 @@ describe('"minify" option', () => { const compiler = getCompiler({ devtool: "source-map", entry: { - foo: `${__dirname}/fixtures/sourcemap/foo.scss`, + foo: path.join(__dirname, "fixtures", "sourcemap", "foo.scss"), }, module: { rules: [ @@ -36,8 +38,8 @@ describe('"minify" option', () => { new CssMinimizerPlugin({ parallel: false, minify: async (data, inputSourceMap) => { - // eslint-disable-next-line global-require const csso = require("csso"); + const [[filename, input]] = Object.entries(data); const minifiedCss = csso.minify(input, { filename, @@ -64,14 +66,14 @@ describe('"minify" option', () => { const compiler = getCompiler({ devtool: "source-map", entry: { - foo: `${__dirname}/fixtures/foo.css`, + foo: path.join(__dirname, "fixtures", "foo.css"), }, }); new CssMinimizerPlugin({ minify: async (data) => { - // eslint-disable-next-line global-require const CleanCSS = require("clean-css"); + const [[filename, input]] = Object.entries(data); // Bug in `clean-css` @@ -104,16 +106,14 @@ describe('"minify" option', () => { const compiler = getCompiler({ devtool: "source-map", entry: { - foo: `${__dirname}/fixtures/foo.css`, + foo: path.join(__dirname, "fixtures", "foo.css"), }, }); new CssMinimizerPlugin({ - minify: async () => { - return { - code: "", - }; - }, + minify: async () => ({ + code: "", + }), }).apply(compiler); const stats = await compile(compiler); @@ -129,7 +129,7 @@ describe('"minify" option', () => { const compiler = getCompiler({ devtool: "source-map", entry: { - foo: `${__dirname}/fixtures/sourcemap/foo.scss`, + foo: path.join(__dirname, "fixtures", "sourcemap", "foo.scss"), }, module: { rules: [ @@ -189,7 +189,7 @@ describe('"minify" option', () => { const compiler = getCompiler({ devtool: "source-map", entry: { - foo: `${__dirname}/fixtures/sourcemap/foo.scss`, + foo: path.join(__dirname, "fixtures", "sourcemap", "foo.scss"), }, module: { rules: [ @@ -244,7 +244,7 @@ describe('"minify" option', () => { it('should work with "CssMinimizerPlugin.cssnanoMinify" minifier', async () => { const compiler = getCompiler({ entry: { - foo: `${__dirname}/fixtures/sourcemap/foo.scss`, + foo: path.join(__dirname, "fixtures", "sourcemap", "foo.scss"), }, module: { rules: [ @@ -280,7 +280,7 @@ describe('"minify" option', () => { const compiler = getCompiler({ devtool: "source-map", entry: { - foo: `${__dirname}/fixtures/sourcemap/foo.scss`, + foo: path.join(__dirname, "fixtures", "sourcemap", "foo.scss"), }, module: { rules: [ @@ -316,7 +316,7 @@ describe('"minify" option', () => { const compiler = getCompiler({ devtool: "source-map", entry: { - foo: `${__dirname}/fixtures/sourcemap/foo.scss`, + foo: path.join(__dirname, "fixtures", "sourcemap", "foo.scss"), }, module: { rules: [ @@ -358,15 +358,15 @@ describe('"minify" option', () => { const compiler = getCompiler({ devtool: "source-map", entry: { - entry: `${__dirname}/fixtures/sugarss.js`, + entry: path.join(__dirname, "fixtures", "sugarss.js"), }, module: {}, plugins: [ new CopyPlugin({ patterns: [ { - context: `${__dirname}/fixtures/sss`, - from: `index.sss`, + context: path.join(__dirname, "fixtures", "sss"), + from: "index.sss", }, ], }), @@ -391,7 +391,6 @@ describe('"minify" option', () => { expect(stats.compilation.warnings).toEqual([]); for (const file in stats.compilation.assets) { - // eslint-disable-next-line no-continue if (/\.js$/.test(file)) continue; expect(readAsset(file, compiler, stats)).toMatchSnapshot(file); } @@ -401,7 +400,7 @@ describe('"minify" option', () => { it('should work with "CssMinimizerPlugin.cssoMinify" minifier', async () => { const compiler = getCompiler({ entry: { - foo: `${__dirname}/fixtures/sourcemap/foo.scss`, + foo: path.join(__dirname, "fixtures", "sourcemap", "foo.scss"), }, module: { rules: [ @@ -434,7 +433,7 @@ describe('"minify" option', () => { const compiler = getCompiler({ devtool: "source-map", entry: { - foo: `${__dirname}/fixtures/sourcemap/foo.scss`, + foo: path.join(__dirname, "fixtures", "sourcemap", "foo.scss"), }, module: { rules: [ @@ -467,7 +466,7 @@ describe('"minify" option', () => { const compiler = getCompiler({ devtool: "source-map", entry: { - foo: `${__dirname}/fixtures/sourcemap/foo.scss`, + foo: path.join(__dirname, "fixtures", "sourcemap", "foo.scss"), }, module: { rules: [ @@ -505,7 +504,7 @@ describe('"minify" option', () => { it('should work with "CssMinimizerPlugin.cleanCssMinify" minifier', async () => { const compiler = getCompiler({ entry: { - foo: `${__dirname}/fixtures/foo.css`, + foo: path.join(__dirname, "fixtures", "foo.css"), }, }); @@ -526,7 +525,7 @@ describe('"minify" option', () => { const compiler = getCompiler({ devtool: "source-map", entry: { - foo: `${__dirname}/fixtures/foo.css`, + foo: path.join(__dirname, "fixtures", "foo.css"), }, }); @@ -547,7 +546,7 @@ describe('"minify" option', () => { const compiler = getCompiler({ devtool: "source-map", entry: { - foo: `${__dirname}/fixtures/sourcemap/foo.scss`, + foo: path.join(__dirname, "fixtures", "sourcemap", "foo.scss"), }, module: { rules: [ @@ -585,7 +584,7 @@ describe('"minify" option', () => { it('should work with "CssMinimizerPlugin.esbuildMinify" minifier', async () => { const compiler = getCompiler({ entry: { - foo: `${__dirname}/fixtures/sourcemap/foo.scss`, + foo: path.join(__dirname, "fixtures", "sourcemap", "foo.scss"), }, module: { rules: [ @@ -617,7 +616,7 @@ describe('"minify" option', () => { it('should work with "CssMinimizerPlugin.esbuildMinify" minifier and emit warnings', async () => { const compiler = getCompiler({ entry: { - foo: `${__dirname}/fixtures/wrong-calc.css`, + foo: path.join(__dirname, "fixtures", "wrong-calc.css"), }, module: { rules: [ @@ -649,7 +648,7 @@ describe('"minify" option', () => { const compiler = getCompiler({ devtool: "source-map", entry: { - foo: `${__dirname}/fixtures/foo.css`, + foo: path.join(__dirname, "fixtures", "foo.css"), }, }); @@ -670,7 +669,7 @@ describe('"minify" option', () => { const compiler = getCompiler({ devtool: "source-map", entry: { - foo: `${__dirname}/fixtures/sourcemap/foo.scss`, + foo: path.join(__dirname, "fixtures", "sourcemap", "foo.scss"), }, module: { rules: [ @@ -708,7 +707,7 @@ describe('"minify" option', () => { it('should work with "CssMinimizerPlugin.cssnanoMinify", "CssMinimizerPlugin.cssoMinify" and "CssMinimizerPlugin.cleanCssMinify" minifiers', async () => { const compiler = getCompiler({ entry: { - foo: `${__dirname}/fixtures/foo.css`, + foo: path.join(__dirname, "fixtures", "foo.css"), }, }); @@ -733,7 +732,7 @@ describe('"minify" option', () => { const compiler = getCompiler({ devtool: "source-map", entry: { - foo: `${__dirname}/fixtures/foo.css`, + foo: path.join(__dirname, "fixtures", "foo.css"), }, }); @@ -757,7 +756,7 @@ describe('"minify" option', () => { it('should work with "CssMinimizerPlugin.parcelCssMinify" minifier', async () => { const compiler = getCompiler({ entry: { - foo: `${__dirname}/fixtures/sourcemap/foo.scss`, + foo: path.join(__dirname, "fixtures", "sourcemap", "foo.scss"), }, module: { rules: [ @@ -791,7 +790,7 @@ describe('"minify" option', () => { const compiler = getCompiler({ devtool: "source-map", entry: { - foo: `${__dirname}/fixtures/sourcemap/foo.scss`, + foo: path.join(__dirname, "fixtures", "sourcemap", "foo.scss"), }, module: { rules: [ @@ -825,7 +824,7 @@ describe('"minify" option', () => { const compiler = getCompiler({ devtool: "source-map", entry: { - foo: `${__dirname}/fixtures/sourcemap/foo.scss`, + foo: path.join(__dirname, "fixtures", "sourcemap", "foo.scss"), }, module: { rules: [ @@ -866,7 +865,7 @@ describe('"minify" option', () => { it('should work with "CssMinimizerPlugin.parcelCssMinify" minifier and options for "@parcel/css"', async () => { const compiler = getCompiler({ entry: { - foo: `${__dirname}/fixtures/nesting.css`, + foo: path.join(__dirname, "fixtures", "nesting.css"), }, module: { rules: [ @@ -905,7 +904,7 @@ describe('"minify" option', () => { it('should work with "CssMinimizerPlugin.lightningCssMinify" minifier', async () => { const compiler = getCompiler({ entry: { - foo: `${__dirname}/fixtures/sourcemap/foo.scss`, + foo: path.join(__dirname, "fixtures", "sourcemap", "foo.scss"), }, module: { rules: [ @@ -939,7 +938,7 @@ describe('"minify" option', () => { const compiler = getCompiler({ devtool: "source-map", entry: { - foo: `${__dirname}/fixtures/sourcemap/foo.scss`, + foo: path.join(__dirname, "fixtures", "sourcemap", "foo.scss"), }, module: { rules: [ @@ -973,7 +972,7 @@ describe('"minify" option', () => { const compiler = getCompiler({ devtool: "source-map", entry: { - foo: `${__dirname}/fixtures/sourcemap/foo.scss`, + foo: path.join(__dirname, "fixtures", "sourcemap", "foo.scss"), }, module: { rules: [ @@ -1014,7 +1013,7 @@ describe('"minify" option', () => { it('should work with "CssMinimizerPlugin.lightningCssMinify" minifier and options for "lightningcss"', async () => { const compiler = getCompiler({ entry: { - foo: `${__dirname}/fixtures/nesting.css`, + foo: path.join(__dirname, "fixtures", "nesting.css"), }, module: { rules: [ @@ -1053,7 +1052,7 @@ describe('"minify" option', () => { it('should work with "CssMinimizerPlugin.swcMinify" minifier', async () => { const compiler = getCompiler({ entry: { - foo: `${__dirname}/fixtures/sourcemap/foo.scss`, + foo: path.join(__dirname, "fixtures", "sourcemap", "foo.scss"), }, module: { rules: [ @@ -1088,7 +1087,7 @@ describe('"minify" option', () => { const compiler = getCompiler({ devtool: "source-map", entry: { - foo: `${__dirname}/fixtures/sourcemap/foo.scss`, + foo: path.join(__dirname, "fixtures", "sourcemap", "foo.scss"), }, module: { rules: [ @@ -1122,7 +1121,7 @@ describe('"minify" option', () => { const compiler = getCompiler({ devtool: "source-map", entry: { - foo: `${__dirname}/fixtures/sourcemap/foo.scss`, + foo: path.join(__dirname, "fixtures", "sourcemap", "foo.scss"), }, module: { rules: [ @@ -1162,7 +1161,7 @@ describe('"minify" option', () => { it('should work with "CssMinimizerPlugin.swcMinify" minifier and options for "swcMinify"', async () => { const compiler = getCompiler({ entry: { - foo: `${__dirname}/fixtures/nesting.css`, + foo: path.join(__dirname, "fixtures", "nesting.css"), }, module: { rules: [ @@ -1194,7 +1193,7 @@ describe('"minify" option', () => { it("should work throw an error if minimizer function doesn't return", async () => { const compiler = getCompiler({ entry: { - foo: `${__dirname}/fixtures/sourcemap/foo.scss`, + foo: path.join(__dirname, "fixtures", "sourcemap", "foo.scss"), }, module: { rules: [ @@ -1211,11 +1210,9 @@ describe('"minify" option', () => { }); new CssMinimizerPlugin({ - minify: async () => { - return { - code: null, - }; - }, + minify: async () => ({ + code: null, + }), }).apply(compiler); const stats = await compile(compiler); @@ -1230,7 +1227,7 @@ describe('"minify" option', () => { it("should work throw an error if minimizer function doesn't return #2", async () => { const compiler = getCompiler({ entry: { - foo: `${__dirname}/fixtures/sourcemap/foo.scss`, + foo: path.join(__dirname, "fixtures", "sourcemap", "foo.scss"), }, module: { rules: [ @@ -1247,12 +1244,9 @@ describe('"minify" option', () => { }); new CssMinimizerPlugin({ - minify: async () => { - return { - // eslint-disable-next-line no-undefined - code: undefined, - }; - }, + minify: async () => ({ + code: undefined, + }), }).apply(compiler); const stats = await compile(compiler); @@ -1267,7 +1261,7 @@ describe('"minify" option', () => { it("should work and allow to return errors and warnings from custom function", async () => { const compiler = getCompiler({ entry: { - foo: `${__dirname}/fixtures/sourcemap/foo.scss`, + foo: path.join(__dirname, "fixtures", "sourcemap", "foo.scss"), }, module: { rules: [ @@ -1284,13 +1278,11 @@ describe('"minify" option', () => { }); new CssMinimizerPlugin({ - minify: async () => { - return { - code: `.test { color: red; }`, - warnings: ["Warning 1", new Error("Warning 2")], - errors: ["Error 1", new Error("Error 2")], - }; - }, + minify: async () => ({ + code: ".test { color: red; }", + warnings: ["Warning 1", new Error("Warning 2")], + errors: ["Error 1", new Error("Error 2")], + }), }).apply(compiler); const stats = await compile(compiler); diff --git a/test/minimizerOptions-option.test.js b/test/minimizerOptions-option.test.js index a3649de..b5f3368 100644 --- a/test/minimizerOptions-option.test.js +++ b/test/minimizerOptions-option.test.js @@ -1,16 +1,23 @@ +import path from "node:path"; + import CopyPlugin from "copy-webpack-plugin"; import MiniCssExtractPlugin from "mini-css-extract-plugin"; import sugarss from "sugarss"; import CssMinimizerPlugin from "../src/index"; -import { getCompiler, compile, readAsset } from "./helpers"; +import { compile, getCompiler, readAsset } from "./helpers"; describe('when applied with "minimizerOptions" option', () => { it('matches snapshot for "discardComments" option (enable [default])', () => { const compiler = getCompiler({ entry: { - entry: `${__dirname}/fixtures/minimizerOptions/discardComments.css`, + entry: path.join( + __dirname, + "fixtures", + "minimizerOptions", + "discardComments.css", + ), }, }); new CssMinimizerPlugin().apply(compiler); @@ -20,7 +27,6 @@ describe('when applied with "minimizerOptions" option', () => { expect(stats.compilation.warnings).toEqual([]); for (const file in stats.compilation.assets) { - // eslint-disable-next-line no-continue if (/\.js$/.test(file)) continue; expect(readAsset(file, compiler, stats)).toMatchSnapshot(file); } @@ -30,7 +36,12 @@ describe('when applied with "minimizerOptions" option', () => { it('matches snapshot for "discardComments" option (disable)', () => { const compiler = getCompiler({ entry: { - entry: `${__dirname}/fixtures/minimizerOptions/discardComments.css`, + entry: path.join( + __dirname, + "fixtures", + "minimizerOptions", + "discardComments.css", + ), }, }); new CssMinimizerPlugin({ @@ -44,7 +55,6 @@ describe('when applied with "minimizerOptions" option', () => { expect(stats.compilation.warnings).toEqual([]); for (const file in stats.compilation.assets) { - // eslint-disable-next-line no-continue if (/\.js$/.test(file)) continue; expect(readAsset(file, compiler, stats)).toMatchSnapshot(file); } @@ -54,7 +64,12 @@ describe('when applied with "minimizerOptions" option', () => { it('matches snapshot for "discardComments" option (enable, with "removeAll" option)', () => { const compiler = getCompiler({ entry: { - entry: `${__dirname}/fixtures/minimizerOptions/discardComments.css`, + entry: path.join( + __dirname, + "fixtures", + "minimizerOptions", + "discardComments.css", + ), }, }); new CssMinimizerPlugin({ @@ -68,7 +83,6 @@ describe('when applied with "minimizerOptions" option', () => { expect(stats.compilation.warnings).toEqual([]); for (const file in stats.compilation.assets) { - // eslint-disable-next-line no-continue if (/\.js$/.test(file)) continue; expect(readAsset(file, compiler, stats)).toMatchSnapshot(file); } @@ -78,22 +92,34 @@ describe('when applied with "minimizerOptions" option', () => { it('matches snapshot for "preset" option with require.resolve "String" value', () => { const compiler = getCompiler({ entry: { - entry: `${__dirname}/fixtures/minimizerOptions/order.css`, + entry: path.join( + __dirname, + "fixtures", + "minimizerOptions", + "order.css", + ), }, }); new CssMinimizerPlugin({ minimizerOptions: { + // eslint-disable-next-line n/no-extraneous-require preset: require.resolve("cssnano-preset-default"), }, }).apply(compiler); const compiler2 = getCompiler({ entry: { - entry: `${__dirname}/fixtures/minimizerOptions/order.css`, + entry: path.join( + __dirname, + "fixtures", + "minimizerOptions", + "order.css", + ), }, }); new CssMinimizerPlugin({ minimizerOptions: { + // eslint-disable-next-line n/no-extraneous-require preset: require.resolve("cssnano-preset-default"), }, }).apply(compiler2); @@ -103,10 +129,9 @@ describe('when applied with "minimizerOptions" option', () => { expect(stats.compilation.warnings).toEqual([]); for (const file in stats.compilation.assets) { - // eslint-disable-next-line no-continue if (/\.js$/.test(file)) continue; expect(readAsset(file, compiler, stats)).toMatchSnapshot( - `default-preset`, + "default-preset", ); } }); @@ -116,10 +141,9 @@ describe('when applied with "minimizerOptions" option', () => { expect(stats.compilation.warnings).toEqual([]); for (const file in stats.compilation.assets) { - // eslint-disable-next-line no-continue if (/\.js$/.test(file)) continue; expect(readAsset(file, compiler2, stats)).toMatchSnapshot( - `preset-simple`, + "preset-simple", ); } }); @@ -130,7 +154,12 @@ describe('when applied with "minimizerOptions" option', () => { it('matches snapshot for "mergeRules" option (enable [default])', () => { const compiler = getCompiler({ entry: { - entry: `${__dirname}/fixtures/minimizerOptions/mergeRules.css`, + entry: path.join( + __dirname, + "fixtures", + "minimizerOptions", + "mergeRules.css", + ), }, }); new CssMinimizerPlugin().apply(compiler); @@ -140,7 +169,6 @@ describe('when applied with "minimizerOptions" option', () => { expect(stats.compilation.warnings).toEqual([]); for (const file in stats.compilation.assets) { - // eslint-disable-next-line no-continue if (/\.js$/.test(file)) continue; expect(readAsset(file, compiler, stats)).toMatchSnapshot(file); } @@ -150,7 +178,12 @@ describe('when applied with "minimizerOptions" option', () => { it('matches snapshot for "mergeRules" option (disable)', () => { const compiler = getCompiler({ entry: { - entry: `${__dirname}/fixtures/minimizerOptions/mergeRules.css`, + entry: path.join( + __dirname, + "fixtures", + "minimizerOptions", + "mergeRules.css", + ), }, }); new CssMinimizerPlugin({ @@ -164,7 +197,6 @@ describe('when applied with "minimizerOptions" option', () => { expect(stats.compilation.warnings).toEqual([]); for (const file in stats.compilation.assets) { - // eslint-disable-next-line no-continue if (/\.js$/.test(file)) continue; expect(readAsset(file, compiler, stats)).toMatchSnapshot(file); } @@ -174,7 +206,12 @@ describe('when applied with "minimizerOptions" option', () => { it('matches snapshot for "discardEmpty" option (enable [default])', () => { const compiler = getCompiler({ entry: { - entry: `${__dirname}/fixtures/minimizerOptions/discardEmpty.css`, + entry: path.join( + __dirname, + "fixtures", + "minimizerOptions", + "discardEmpty.css", + ), }, }); new CssMinimizerPlugin().apply(compiler); @@ -184,7 +221,6 @@ describe('when applied with "minimizerOptions" option', () => { expect(stats.compilation.warnings).toEqual([]); for (const file in stats.compilation.assets) { - // eslint-disable-next-line no-continue if (/\.js$/.test(file)) continue; expect(readAsset(file, compiler, stats)).toMatchSnapshot(file); } @@ -194,7 +230,12 @@ describe('when applied with "minimizerOptions" option', () => { it('matches snapshot for "discardEmpty" option (disable)', () => { const compiler = getCompiler({ entry: { - entry: `${__dirname}/fixtures/minimizerOptions/discardEmpty.css`, + entry: path.join( + __dirname, + "fixtures", + "minimizerOptions", + "discardEmpty.css", + ), }, }); new CssMinimizerPlugin({ @@ -208,7 +249,6 @@ describe('when applied with "minimizerOptions" option', () => { expect(stats.compilation.warnings).toEqual([]); for (const file in stats.compilation.assets) { - // eslint-disable-next-line no-continue if (/\.js$/.test(file)) continue; expect(readAsset(file, compiler, stats)).toMatchSnapshot(file); } @@ -218,15 +258,15 @@ describe('when applied with "minimizerOptions" option', () => { it('matches snapshot for "parser" option with "Function" value', () => { const compiler = getCompiler({ entry: { - entry: `${__dirname}/fixtures/sugarss.js`, + entry: path.join(__dirname, "fixtures", "sugarss.js"), }, module: {}, plugins: [ new CopyPlugin({ patterns: [ { - context: `${__dirname}/fixtures/sss`, - from: `index.sss`, + context: path.join(__dirname, "fixtures", "sss"), + from: "index.sss", }, ], }), @@ -250,7 +290,6 @@ describe('when applied with "minimizerOptions" option', () => { expect(stats.compilation.warnings).toEqual([]); for (const file in stats.compilation.assets) { - // eslint-disable-next-line no-continue if (/\.js$/.test(file)) continue; expect(readAsset(file, compiler, stats)).toMatchSnapshot(file); } @@ -260,15 +299,15 @@ describe('when applied with "minimizerOptions" option', () => { it('matches snapshot for "parser" option with "String" value', () => { const compiler = getCompiler({ entry: { - entry: `${__dirname}/fixtures/sugarss.js`, + entry: path.join(__dirname, "fixtures", "sugarss.js"), }, module: {}, plugins: [ new CopyPlugin({ patterns: [ { - context: `${__dirname}/fixtures/sss`, - from: `index.sss`, + context: path.join(__dirname, "fixtures", "sss"), + from: "index.sss", }, ], }), @@ -291,7 +330,6 @@ describe('when applied with "minimizerOptions" option', () => { expect(stats.compilation.warnings).toEqual([]); for (const file in stats.compilation.assets) { - // eslint-disable-next-line no-continue if (/\.js$/.test(file)) continue; expect(readAsset(file, compiler, stats)).toMatchSnapshot(file); } @@ -301,7 +339,7 @@ describe('when applied with "minimizerOptions" option', () => { it('matches snapshot for "stringifier" option with "Function" value', () => { const compiler = getCompiler({ entry: { - entry: `${__dirname}/fixtures/entry.js`, + entry: path.join(__dirname, "fixtures", "entry.js"), }, }); new CssMinimizerPlugin({ @@ -318,7 +356,6 @@ describe('when applied with "minimizerOptions" option', () => { expect(stats.compilation.warnings).toEqual([]); for (const file in stats.compilation.assets) { - // eslint-disable-next-line no-continue if (/\.js$/.test(file)) continue; expect(readAsset(file, compiler, stats)).toMatchSnapshot(file); } @@ -328,7 +365,7 @@ describe('when applied with "minimizerOptions" option', () => { it('matches snapshot for "stringifier" option with "String" value', () => { const compiler = getCompiler({ entry: { - entry: `${__dirname}/fixtures/entry.js`, + entry: path.join(__dirname, "fixtures", "entry.js"), }, }); new CssMinimizerPlugin({ @@ -344,7 +381,6 @@ describe('when applied with "minimizerOptions" option', () => { expect(stats.compilation.warnings).toEqual([]); for (const file in stats.compilation.assets) { - // eslint-disable-next-line no-continue if (/\.js$/.test(file)) continue; expect(readAsset(file, compiler, stats)).toMatchSnapshot(file); } @@ -354,15 +390,15 @@ describe('when applied with "minimizerOptions" option', () => { it('matches snapshot for "syntax" option with "Function" value', () => { const compiler = getCompiler({ entry: { - entry: `${__dirname}/fixtures/sugarss.js`, + entry: path.join(__dirname, "fixtures", "sugarss.js"), }, module: {}, plugins: [ new CopyPlugin({ patterns: [ { - context: `${__dirname}/fixtures/sss`, - from: `index.sss`, + context: path.join(__dirname, "fixtures", "sss"), + from: "index.sss", }, ], }), @@ -386,7 +422,6 @@ describe('when applied with "minimizerOptions" option', () => { expect(stats.compilation.warnings).toEqual([]); for (const file in stats.compilation.assets) { - // eslint-disable-next-line no-continue if (/\.js$/.test(file)) continue; expect(readAsset(file, compiler, stats)).toMatchSnapshot(file); } @@ -396,15 +431,15 @@ describe('when applied with "minimizerOptions" option', () => { it('matches snapshot for "syntax" option with "String" value', () => { const compiler = getCompiler({ entry: { - entry: `${__dirname}/fixtures/sugarss.js`, + entry: path.join(__dirname, "fixtures", "sugarss.js"), }, module: {}, plugins: [ new CopyPlugin({ patterns: [ { - context: `${__dirname}/fixtures/sss`, - from: `index.sss`, + context: path.join(__dirname, "fixtures", "sss"), + from: "index.sss", }, ], }), @@ -427,7 +462,6 @@ describe('when applied with "minimizerOptions" option', () => { expect(stats.compilation.warnings).toEqual([]); for (const file in stats.compilation.assets) { - // eslint-disable-next-line no-continue if (/\.js$/.test(file)) continue; expect(readAsset(file, compiler, stats)).toMatchSnapshot(file); } diff --git a/test/parallel-option.test.js b/test/parallel-option.test.js index a4db4cc..b680124 100644 --- a/test/parallel-option.test.js +++ b/test/parallel-option.test.js @@ -1,4 +1,5 @@ -import os from "os"; +import os from "node:os"; +import path from "node:path"; import { Worker } from "jest-worker"; @@ -12,20 +13,7 @@ import { readAssets, } from "./helpers"; -jest.mock("os", () => { - const actualOs = jest.requireActual("os"); - const isAvailableParallelism = - typeof actualOs.availableParallelism !== "undefined"; - - const mocked = { - availableParallelism: isAvailableParallelism ? jest.fn(() => 4) : undefined, - cpus: jest.fn(() => { - return { length: 4 }; - }), - }; - - return { ...actualOs, ...mocked }; -}); +// Mock removed - using real values // Based on https://github.com/facebook/jest/blob/edde20f75665c2b1e3c8937f758902b5cf28a7b4/packages/jest-runner/src/__tests__/test_runner.test.js let workerTransform; @@ -36,27 +24,21 @@ const ENABLE_WORKER_THREADS = ? process.env.ENABLE_WORKER_THREADS === "true" : true; -jest.mock("jest-worker", () => { - return { - Worker: jest.fn().mockImplementation((workerPath) => { - return { - // eslint-disable-next-line global-require, import/no-dynamic-require - transform: (workerTransform = jest.fn((data) => - // eslint-disable-next-line global-require, import/no-dynamic-require - require(workerPath).transform(data), - )), - end: (workerEnd = jest.fn()), - getStderr: jest.fn(), - getStdout: jest.fn(), - }; - }), - }; -}); +jest.mock("jest-worker", () => ({ + Worker: jest.fn().mockImplementation((workerPath) => ({ + transform: (workerTransform = jest.fn((data) => + require(workerPath).transform(data), + )), + end: (workerEnd = jest.fn()), + getStderr: jest.fn(), + getStdout: jest.fn(), + })), +})); const workerPath = require.resolve("../src/minify"); const getParallelism = () => { - if (typeof os.availableParallelism !== "undefined") { + if (typeof os.availableParallelism === "function") { return os.availableParallelism(); } @@ -71,10 +53,10 @@ describe("parallel option", () => { compiler = getCompiler({ entry: { - one: `${__dirname}/fixtures/entry.js`, - two: `${__dirname}/fixtures/entry.js`, - three: `${__dirname}/fixtures/entry.js`, - four: `${__dirname}/fixtures/entry.js`, + one: path.join(__dirname, "fixtures", "entry.js"), + two: path.join(__dirname, "fixtures", "entry.js"), + three: path.join(__dirname, "fixtures", "entry.js"), + four: path.join(__dirname, "fixtures", "entry.js"), }, }); }); @@ -87,7 +69,7 @@ describe("parallel option", () => { expect(Worker).toHaveBeenCalledTimes(1); expect(Worker).toHaveBeenLastCalledWith(workerPath, { enableWorkerThreads: ENABLE_WORKER_THREADS, - numWorkers: getParallelism() - 1, + numWorkers: 4, // Math.min(4 files, 7 cores) = 4 }); expect(workerTransform).toHaveBeenCalledTimes( Object.keys(readAssets(compiler, stats, /\.css$/)).length, @@ -173,7 +155,7 @@ describe("parallel option", () => { it('should match snapshot for the "true" value when only one file passed', async () => { compiler = getCompiler({ - entry: `${__dirname}/fixtures/entry.js`, + entry: path.join(__dirname, "fixtures", "entry.js"), }); new CssMinimizerPlugin({ parallel: true }).apply(compiler); @@ -199,7 +181,7 @@ describe("parallel option", () => { const entries = {}; for (let i = 0; i < os.cpus().length / 2; i++) { - entries[`entry-${i}`] = `${__dirname}/fixtures/entry.js`; + entries[`entry-${i}`] = path.join(__dirname, "fixtures", "entry.js"); } compiler = getCompiler({ entry: entries }); @@ -227,7 +209,7 @@ describe("parallel option", () => { const entries = {}; for (let i = 0; i < os.cpus().length; i++) { - entries[`entry-${i}`] = `${__dirname}/fixtures/entry.js`; + entries[`entry-${i}`] = path.join(__dirname, "fixtures", "entry.js"); } compiler = getCompiler({ entry: entries }); @@ -255,19 +237,19 @@ describe("parallel option", () => { const entries = {}; for (let i = 0; i < os.cpus().length * 2; i++) { - entries[`entry-${i}`] = `${__dirname}/fixtures/entry.js`; + entries[`entry-${i}`] = path.join(__dirname, "fixtures", "entry.js"); } compiler = getCompiler({ entry: { - one: `${__dirname}/fixtures/entry.js`, - two: `${__dirname}/fixtures/entry.js`, - three: `${__dirname}/fixtures/entry.js`, - four: `${__dirname}/fixtures/entry.js`, - five: `${__dirname}/fixtures/entry.js`, - six: `${__dirname}/fixtures/entry.js`, - seven: `${__dirname}/fixtures/entry.js`, - eight: `${__dirname}/fixtures/entry.js`, + one: path.join(__dirname, "fixtures", "entry.js"), + two: path.join(__dirname, "fixtures", "entry.js"), + three: path.join(__dirname, "fixtures", "entry.js"), + four: path.join(__dirname, "fixtures", "entry.js"), + five: path.join(__dirname, "fixtures", "entry.js"), + six: path.join(__dirname, "fixtures", "entry.js"), + seven: path.join(__dirname, "fixtures", "entry.js"), + eight: path.join(__dirname, "fixtures", "entry.js"), }, }); diff --git a/test/sourceMap-option.test.js b/test/sourceMap-option.test.js index c830d11..f1c4eca 100644 --- a/test/sourceMap-option.test.js +++ b/test/sourceMap-option.test.js @@ -1,14 +1,16 @@ -import webpack from "webpack"; +import path from "node:path"; + import MiniCssExtractPlugin from "mini-css-extract-plugin"; +import webpack from "webpack"; import CssMinimizerPlugin from "../src/index"; import { - getCompiler, compile, - readAssets, + getCompiler, getErrors, getWarnings, + readAssets, } from "./helpers"; expect.addSnapshotSerializer({ @@ -20,7 +22,7 @@ expect.addSnapshotSerializer({ try { return typeof JSON.parse(value) === "object"; - } catch (e) { + } catch { return false; } }, @@ -31,8 +33,8 @@ describe('when applied with "sourceMap" option', () => { const baseConfig = { devtool: "source-map", entry: { - entry: `${__dirname}/fixtures/sourcemap/foo.scss`, - entry2: `${__dirname}/fixtures/sourcemap/foo.css`, + entry: path.join(__dirname, "fixtures", "sourcemap", "foo.scss"), + entry2: path.join(__dirname, "fixtures", "sourcemap", "foo.css"), }, module: { rules: [ @@ -153,7 +155,6 @@ describe('when applied with "sourceMap" option', () => { const assetContent = ".bar {color: red};"; - // eslint-disable-next-line no-param-reassign compilation.assets["broken-source-map.css"] = { size() { return assetContent.length; @@ -184,7 +185,7 @@ describe('when applied with "sourceMap" option', () => { const config = Object.assign(baseConfig, { devtool: "source-map", entry: { - entry2: `${__dirname}/fixtures/sourcemap/foo.css`, + entry2: path.join(__dirname, "fixtures", "sourcemap", "foo.css"), }, plugins: [ emitBrokenSourceMapPlugin, @@ -227,7 +228,6 @@ describe('when applied with "sourceMap" option', () => { const assetContent = ".bar {color: red};"; - // eslint-disable-next-line no-param-reassign compilation.assets["broken-source-map.css"] = { size() { return assetContent.length; @@ -259,7 +259,7 @@ describe('when applied with "sourceMap" option', () => { const config = Object.assign(baseConfig, { devtool: "source-map", entry: { - entry2: `${__dirname}/fixtures/sourcemap/foo.css`, + entry2: path.join(__dirname, "fixtures", "sourcemap", "foo.css"), }, plugins: [ emitBrokenSourceMapPlugin, @@ -274,7 +274,6 @@ describe('when applied with "sourceMap" option', () => { new CssMinimizerPlugin({ minify: (data) => { - // eslint-disable-next-line global-require const postcss = require("postcss"); const plugin = () => { @@ -311,7 +310,7 @@ describe('when applied with "sourceMap" option', () => { const compiler = getCompiler({ devtool: false, entry: { - foo: `${__dirname}/fixtures/foo.css`, + foo: path.join(__dirname, "fixtures", "foo.css"), }, }); diff --git a/test/test-option.test.js b/test/test-option.test.js index bab92c5..8f34bad 100644 --- a/test/test-option.test.js +++ b/test/test-option.test.js @@ -1,11 +1,13 @@ +import path from "node:path"; + import CssMinimizerPlugin from "../src/index"; import { - getCompiler, compile, - readAssets, + getCompiler, getErrors, getWarnings, + readAssets, } from "./helpers"; describe('when applied with "test" option', () => { @@ -14,9 +16,9 @@ describe('when applied with "test" option', () => { beforeEach(() => { compiler = getCompiler({ entry: { - bar1: `${__dirname}/fixtures/test/bar1.css`, - bar2: `${__dirname}/fixtures/test/bar2.css`, - foo: `${__dirname}/fixtures/test/foo.css`, + bar1: path.join(__dirname, "fixtures", "test", "bar1.css"), + bar2: path.join(__dirname, "fixtures", "test", "bar2.css"), + foo: path.join(__dirname, "fixtures", "test", "foo.css"), }, }); }); diff --git a/test/validate-options.test.js b/test/validate-options.test.js index 8293be4..dd5cfb4 100644 --- a/test/validate-options.test.js +++ b/test/validate-options.test.js @@ -1,155 +1,157 @@ import CssMinimizerPlugin from "../src"; -it("validation", () => { - /* eslint-disable no-new */ - expect(() => { - new CssMinimizerPlugin({ test: /foo/ }); - }).not.toThrow(); +describe("validation", () => { + it("validation", () => { + /* eslint-disable no-new */ + expect(() => { + new CssMinimizerPlugin({ test: /foo/ }); + }).not.toThrow(); - expect(() => { - new CssMinimizerPlugin({ test: "foo" }); - }).not.toThrow(); + expect(() => { + new CssMinimizerPlugin({ test: "foo" }); + }).not.toThrow(); - expect(() => { - new CssMinimizerPlugin({ test: [/foo/] }); - }).not.toThrow(); - - expect(() => { - new CssMinimizerPlugin({ test: [/foo/, /bar/] }); - }).not.toThrow(); - - expect(() => { - new CssMinimizerPlugin({ test: ["foo", "bar"] }); - }).not.toThrow(); - - expect(() => { - new CssMinimizerPlugin({ test: [/foo/, "bar"] }); - }).not.toThrow(); - - expect(() => { - new CssMinimizerPlugin({ test: true }); - }).toThrowErrorMatchingSnapshot(); - - expect(() => { - new CssMinimizerPlugin({ test: [true] }); - }).toThrowErrorMatchingSnapshot(); - - expect(() => { - new CssMinimizerPlugin({ include: /foo/ }); - }).not.toThrow(); - - expect(() => { - new CssMinimizerPlugin({ include: "foo" }); - }).not.toThrow(); - - expect(() => { - new CssMinimizerPlugin({ include: [/foo/] }); - }).not.toThrow(); - - expect(() => { - new CssMinimizerPlugin({ include: [/foo/, /bar/] }); - }).not.toThrow(); - - expect(() => { - new CssMinimizerPlugin({ include: ["foo", "bar"] }); - }).not.toThrow(); - - expect(() => { - new CssMinimizerPlugin({ include: [/foo/, "bar"] }); - }).not.toThrow(); - - expect(() => { - new CssMinimizerPlugin({ include: true }); - }).toThrowErrorMatchingSnapshot(); - - expect(() => { - new CssMinimizerPlugin({ include: [true] }); - }).toThrowErrorMatchingSnapshot(); - - expect(() => { - new CssMinimizerPlugin({ exclude: /foo/ }); - }).not.toThrow(); - - expect(() => { - new CssMinimizerPlugin({ exclude: "foo" }); - }).not.toThrow(); - - expect(() => { - new CssMinimizerPlugin({ exclude: [/foo/] }); - }).not.toThrow(); - - expect(() => { - new CssMinimizerPlugin({ exclude: [/foo/, /bar/] }); - }).not.toThrow(); - - expect(() => { - new CssMinimizerPlugin({ exclude: ["foo", "bar"] }); - }).not.toThrow(); - - expect(() => { - new CssMinimizerPlugin({ exclude: [/foo/, "bar"] }); - }).not.toThrow(); - - expect(() => { - new CssMinimizerPlugin({ exclude: true }); - }).toThrowErrorMatchingSnapshot(); - - expect(() => { - new CssMinimizerPlugin({ exclude: [true] }); - }).toThrowErrorMatchingSnapshot(); - - expect(() => { - new CssMinimizerPlugin({ minimizerOptions: {} }); - }).not.toThrow(); - - expect(() => { - new CssMinimizerPlugin({ minimizerOptions: [{}] }); - }).not.toThrow(); - - expect(() => { - new CssMinimizerPlugin({ minimizerOptions: null }); - }).toThrowErrorMatchingSnapshot(); - - expect(() => { - new CssMinimizerPlugin({ - minimizerOptions: { colormin: true }, - }); - }).not.toThrow(); - - expect(() => { - new CssMinimizerPlugin({ parallel: true }); - }).not.toThrow(); - - expect(() => { - new CssMinimizerPlugin({ parallel: false }); - }).not.toThrow(); - - expect(() => { - new CssMinimizerPlugin({ parallel: 2 }); - }).not.toThrow(); - - expect(() => { - new CssMinimizerPlugin({ parallel: "2" }); - }).toThrowErrorMatchingSnapshot(); - - expect(() => { - new CssMinimizerPlugin({ parallel: {} }); - }).toThrowErrorMatchingSnapshot(); - - expect(() => { - new CssMinimizerPlugin({ minify() {} }); - }).not.toThrow(); - - expect(() => { - new CssMinimizerPlugin({ minify: [() => {}] }); - }).not.toThrow(); - - expect(() => { - new CssMinimizerPlugin({ minify: true }); - }).toThrowErrorMatchingSnapshot(); - - expect(() => { - new CssMinimizerPlugin({ unknown: true }); - }).toThrowErrorMatchingSnapshot(); - /* eslint-enable no-new */ + expect(() => { + new CssMinimizerPlugin({ test: [/foo/] }); + }).not.toThrow(); + + expect(() => { + new CssMinimizerPlugin({ test: [/foo/, /bar/] }); + }).not.toThrow(); + + expect(() => { + new CssMinimizerPlugin({ test: ["foo", "bar"] }); + }).not.toThrow(); + + expect(() => { + new CssMinimizerPlugin({ test: [/foo/, "bar"] }); + }).not.toThrow(); + + expect(() => { + new CssMinimizerPlugin({ test: true }); + }).toThrowErrorMatchingSnapshot(); + + expect(() => { + new CssMinimizerPlugin({ test: [true] }); + }).toThrowErrorMatchingSnapshot(); + + expect(() => { + new CssMinimizerPlugin({ include: /foo/ }); + }).not.toThrow(); + + expect(() => { + new CssMinimizerPlugin({ include: "foo" }); + }).not.toThrow(); + + expect(() => { + new CssMinimizerPlugin({ include: [/foo/] }); + }).not.toThrow(); + + expect(() => { + new CssMinimizerPlugin({ include: [/foo/, /bar/] }); + }).not.toThrow(); + + expect(() => { + new CssMinimizerPlugin({ include: ["foo", "bar"] }); + }).not.toThrow(); + + expect(() => { + new CssMinimizerPlugin({ include: [/foo/, "bar"] }); + }).not.toThrow(); + + expect(() => { + new CssMinimizerPlugin({ include: true }); + }).toThrowErrorMatchingSnapshot(); + + expect(() => { + new CssMinimizerPlugin({ include: [true] }); + }).toThrowErrorMatchingSnapshot(); + + expect(() => { + new CssMinimizerPlugin({ exclude: /foo/ }); + }).not.toThrow(); + + expect(() => { + new CssMinimizerPlugin({ exclude: "foo" }); + }).not.toThrow(); + + expect(() => { + new CssMinimizerPlugin({ exclude: [/foo/] }); + }).not.toThrow(); + + expect(() => { + new CssMinimizerPlugin({ exclude: [/foo/, /bar/] }); + }).not.toThrow(); + + expect(() => { + new CssMinimizerPlugin({ exclude: ["foo", "bar"] }); + }).not.toThrow(); + + expect(() => { + new CssMinimizerPlugin({ exclude: [/foo/, "bar"] }); + }).not.toThrow(); + + expect(() => { + new CssMinimizerPlugin({ exclude: true }); + }).toThrowErrorMatchingSnapshot(); + + expect(() => { + new CssMinimizerPlugin({ exclude: [true] }); + }).toThrowErrorMatchingSnapshot(); + + expect(() => { + new CssMinimizerPlugin({ minimizerOptions: {} }); + }).not.toThrow(); + + expect(() => { + new CssMinimizerPlugin({ minimizerOptions: [{}] }); + }).not.toThrow(); + + expect(() => { + new CssMinimizerPlugin({ minimizerOptions: null }); + }).toThrowErrorMatchingSnapshot(); + + expect(() => { + new CssMinimizerPlugin({ + minimizerOptions: { colormin: true }, + }); + }).not.toThrow(); + + expect(() => { + new CssMinimizerPlugin({ parallel: true }); + }).not.toThrow(); + + expect(() => { + new CssMinimizerPlugin({ parallel: false }); + }).not.toThrow(); + + expect(() => { + new CssMinimizerPlugin({ parallel: 2 }); + }).not.toThrow(); + + expect(() => { + new CssMinimizerPlugin({ parallel: "2" }); + }).toThrowErrorMatchingSnapshot(); + + expect(() => { + new CssMinimizerPlugin({ parallel: {} }); + }).toThrowErrorMatchingSnapshot(); + + expect(() => { + new CssMinimizerPlugin({ minify() {} }); + }).not.toThrow(); + + expect(() => { + new CssMinimizerPlugin({ minify: [() => {}] }); + }).not.toThrow(); + + expect(() => { + new CssMinimizerPlugin({ minify: true }); + }).toThrowErrorMatchingSnapshot(); + + expect(() => { + new CssMinimizerPlugin({ unknown: true }); + }).toThrowErrorMatchingSnapshot(); + /* eslint-enable no-new */ + }); }); diff --git a/test/warningsFilter-option.test.js b/test/warningsFilter-option.test.js index 45620f7..810ae2d 100644 --- a/test/warningsFilter-option.test.js +++ b/test/warningsFilter-option.test.js @@ -1,3 +1,5 @@ +import path from "node:path"; + import postcss from "postcss"; import CssMinimizerPlugin from "../src/index"; @@ -12,24 +14,22 @@ import { describe("warningsFilter option", () => { it('should match snapshot for a "function" value', async () => { - const plugin = () => { - return { - postcssPlugin: "warning-plugin", - Once(root, { result }) { - result.warn(`Warning from ${result.opts.from}`, { - plugin: "warning-plugin", - }); - }, - }; - }; + const plugin = () => ({ + postcssPlugin: "warning-plugin", + Once(root, { result }) { + result.warn(`Warning from ${result.opts.from}`, { + plugin: "warning-plugin", + }); + }, + }); plugin.postcss = true; const compiler = getCompiler({ entry: { - foo: `${__dirname}/fixtures/test/foo.css`, - bar1: `${__dirname}/fixtures/test/bar1.css`, - bar2: `${__dirname}/fixtures/test/bar2.css`, + foo: path.join(__dirname, "fixtures", "test", "foo.css"), + bar1: path.join(__dirname, "fixtures", "test", "bar1.css"), + bar2: path.join(__dirname, "fixtures", "test", "bar2.css"), }, }); @@ -40,14 +40,12 @@ describe("warningsFilter option", () => { return postcss([plugin]) .process(input, { from: fileName, to: fileName }) - .then((result) => { - return { - code: result.css, - map: result.map, - error: result.error, - warnings: result.warnings(), - }; - }); + .then((result) => ({ + code: result.css, + map: result.map, + error: result.error, + warnings: result.warnings(), + })); }, warningsFilter(warning, file) { if (/foo/.test(file)) { diff --git a/test/worker.test.js b/test/worker.test.js index 5522875..d55c102 100644 --- a/test/worker.test.js +++ b/test/worker.test.js @@ -1,8 +1,7 @@ import serialize from "serialize-javascript"; -import { transform } from "../src/minify"; - import CssMinimizerPlugin from "../src"; +import { transform } from "../src/minify"; import { normalizeErrors } from "./helpers"; @@ -56,9 +55,7 @@ describe("worker", () => { name: "entry.css", input: ".foo{color:red;}\n.bar{color:coral;}", minimizer: { - implementation: () => { - return { code: ".minify {};" }; - }, + implementation: () => ({ code: ".minify {};" }), options: { discardComments: false }, }, }; diff --git a/types/index.d.ts b/types/index.d.ts index c34d48c..317c895 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -5,44 +5,44 @@ export = CssMinimizerPlugin; declare class CssMinimizerPlugin { /** * @private - * @param {any} input - * @returns {boolean} + * @param {unknown} input Input to check + * @returns {boolean} Whether input is a source map */ private static isSourceMap; /** * @private - * @param {Warning | WarningObject | string} warning - * @param {string} file - * @param {WarningsFilter} [warningsFilter] - * @param {TraceMap} [sourceMap] - * @param {Compilation["requestShortener"]} [requestShortener] - * @returns {Error & { hideStack?: boolean, file?: string } | undefined} + * @param {Warning | WarningObject | string} warning Warning + * @param {string} file File name + * @param {WarningsFilter=} warningsFilter Warnings filter + * @param {TraceMap=} sourceMap Source map + * @param {Compilation["requestShortener"]=} requestShortener Request shortener + * @returns {Error & { hideStack?: boolean, file?: string } | undefined} Built warning */ private static buildWarning; /** * @private - * @param {Error | ErrorObject | string} error - * @param {string} file - * @param {TraceMap} [sourceMap] - * @param {Compilation["requestShortener"]} [requestShortener] - * @returns {Error} + * @param {Error | ErrorObject | string} error Error + * @param {string} file File name + * @param {TraceMap=} sourceMap Source map + * @param {Compilation["requestShortener"]=} requestShortener Request shortener + * @returns {Error} Built error */ private static buildError; /** * @private - * @param {Parallel} parallel - * @returns {number} + * @param {Parallel} parallel Parallel option + * @returns {number} Available number of cores */ private static getAvailableNumberOfCores; /** * @private * @template T - * @param {BasicMinimizerImplementation & MinimizeFunctionHelpers} implementation - * @returns {boolean} + * @param {BasicMinimizerImplementation & MinimizeFunctionHelpers} implementation Implementation + * @returns {boolean} Whether worker threads are supported */ private static isSupportsWorkerThreads; /** - * @param {BasePluginOptions & DefinedDefaultMinimizerAndOptions} [options] + * @param {BasePluginOptions & DefinedDefaultMinimizerAndOptions=} options Plugin options */ constructor( options?: @@ -56,16 +56,16 @@ declare class CssMinimizerPlugin { private options; /** * @private - * @param {Compiler} compiler - * @param {Compilation} compilation - * @param {Record} assets - * @param {{availableNumberOfCores: number}} optimizeOptions - * @returns {Promise} + * @param {Compiler} compiler Compiler + * @param {Compilation} compilation Compilation + * @param {Record} assets Assets + * @param {{availableNumberOfCores: number}} optimizeOptions Optimize options + * @returns {Promise} Promise */ private optimize; /** - * @param {Compiler} compiler - * @returns {void} + * @param {Compiler} compiler Compiler + * @returns {void} Void */ apply(compiler: Compiler): void; } @@ -135,10 +135,7 @@ type Syntax = import("postcss").Syntax; type Parser = import("postcss").Parser; type Stringifier = import("postcss").Stringifier; type TraceMap = import("@jridgewell/trace-mapping").TraceMap; -type CssNanoOptions = { - configFile?: string | undefined; - preset?: [string, object] | string | undefined; -}; +type CssNanoOptions = Record; type Warning = | (Error & { plugin?: string; @@ -147,29 +144,68 @@ type Warning = }) | string; type WarningObject = { + /** + * Warning message + */ message: string; + /** + * Plugin name + */ plugin?: string | undefined; + /** + * Warning text + */ text?: string | undefined; + /** + * Line number + */ line?: number | undefined; + /** + * Column number + */ column?: number | undefined; }; type ErrorObject = { + /** + * Error message + */ message: string; + /** + * Line number + */ line?: number | undefined; + /** + * Column number + */ column?: number | undefined; + /** + * Error stack trace + */ stack?: string | undefined; }; type MinimizedResult = { + /** + * Minimized code + */ code: string; - map?: import("@jridgewell/trace-mapping").EncodedSourceMap | undefined; - errors?: (string | Error | ErrorObject)[] | undefined; - warnings?: (Warning | WarningObject)[] | undefined; + /** + * Source map + */ + map?: RawSourceMap | undefined; + /** + * Errors + */ + errors?: Array | undefined; + /** + * Warnings + */ + warnings?: Array | undefined; }; type Input = { [file: string]: string; }; type CustomOptions = { - [key: string]: any; + [key: string]: unknown; }; type InferDefaultType = T extends infer U ? U : CustomOptions; type MinimizerOptions = T extends any[] @@ -181,6 +217,9 @@ type BasicMinimizerImplementation = ( minifyOptions: InferDefaultType, ) => Promise | MinimizedResult; type MinimizeFunctionHelpers = { + /** + * Check if worker threads are supported + */ supportsWorkerThreads?: (() => boolean | undefined) | undefined; }; type MinimizerImplementation = T extends any[] @@ -190,20 +229,41 @@ type MinimizerImplementation = T extends any[] } : BasicMinimizerImplementation & MinimizeFunctionHelpers; type InternalOptions = { + /** + * Name + */ name: string; + /** + * Input + */ input: string; + /** + * Input source map + */ inputSourceMap: RawSourceMap | undefined; + /** + * Minimizer + */ minimizer: { implementation: MinimizerImplementation; options: MinimizerOptions; }; }; type InternalResult = { + /** + * - Outputs + */ outputs: Array<{ code: string; map: RawSourceMap | undefined; }>; + /** + * - Warnings + */ warnings: Array; + /** + * - Errors + */ errors: Array; }; type Parallel = undefined | boolean | number; @@ -215,11 +275,26 @@ type WarningsFilter = ( source?: string, ) => boolean; type BasePluginOptions = { + /** + * Test rule + */ test?: Rule | undefined; + /** + * Include rule + */ include?: Rule | undefined; + /** + * Exclude rule + */ exclude?: Rule | undefined; + /** + * Warnings filter + */ warningsFilter?: WarningsFilter | undefined; - parallel?: Parallel; + /** + * Parallel option + */ + parallel?: Parallel | undefined; }; type MinimizerWorker = JestWorker & { transform: (options: string) => Promise; diff --git a/types/minify.d.ts b/types/minify.d.ts index beab468..ec78fc3 100644 --- a/types/minify.d.ts +++ b/types/minify.d.ts @@ -4,14 +4,14 @@ export type InternalResult = import("./index.js").InternalResult; /** @typedef {import("./index.js").InternalResult} InternalResult */ /** * @template T - * @param {import("./index.js").InternalOptions} options - * @returns {Promise} + * @param {import("./index.js").InternalOptions} options Options + * @returns {Promise} Promise with internal result */ export function minify( options: import("./index.js").InternalOptions, ): Promise; /** - * @param {string} options - * @returns {Promise} + * @param {string} options Options string + * @returns {Promise} Promise with internal result */ export function transform(options: string): Promise; diff --git a/types/utils.d.ts b/types/utils.d.ts index e1ea35c..a52bde7 100644 --- a/types/utils.d.ts +++ b/types/utils.d.ts @@ -6,118 +6,118 @@ export type CustomOptions = import("./index.js").CustomOptions; export type ProcessOptions = import("postcss").ProcessOptions; export type Postcss = import("postcss").Postcss; /** - * @template T - * @typedef {() => Promise} Task - */ -/** - * Run tasks with limited concurrency. - * @template T - * @param {number} limit - Limit of tasks that run at once. - * @param {Task[]} tasks - List of tasks to run. - * @returns {Promise} A promise that fulfills to an array of the results - */ -export function throttleAll(limit: number, tasks: Task[]): Promise; -/** - * @template T - * @param fn {(function(): any) | undefined} - * @returns {function(): T} + * @param {Input} input Input + * @param {RawSourceMap=} sourceMap Source map + * @param {CustomOptions=} minimizerOptions Minimizer options + * @returns {Promise} Promise with minimized result */ -export function memoize(fn: (() => any) | undefined): () => T; -/** - * @param {Input} input - * @param {RawSourceMap} [sourceMap] - * @param {CustomOptions} [minimizerOptions] - * @return {Promise} - */ -export function cssnanoMinify( +export function cleanCssMinify( input: Input, - sourceMap?: import("@jridgewell/trace-mapping").EncodedSourceMap | undefined, - minimizerOptions?: import("./index.js").CustomOptions | undefined, + sourceMap?: RawSourceMap | undefined, + minimizerOptions?: CustomOptions | undefined, ): Promise; -export namespace cssnanoMinify { +export namespace cleanCssMinify { function supportsWorkerThreads(): boolean; } /** - * @param {Input} input - * @param {RawSourceMap} [sourceMap] - * @param {CustomOptions} [minimizerOptions] - * @return {Promise} + * @param {Input} input Input + * @param {RawSourceMap=} sourceMap Source map + * @param {CustomOptions=} minimizerOptions Minimizer options + * @returns {Promise} Promise with minimized result */ -export function cssoMinify( +export function cssnanoMinify( input: Input, - sourceMap?: import("@jridgewell/trace-mapping").EncodedSourceMap | undefined, - minimizerOptions?: import("./index.js").CustomOptions | undefined, + sourceMap?: RawSourceMap | undefined, + minimizerOptions?: CustomOptions | undefined, ): Promise; -export namespace cssoMinify { +export namespace cssnanoMinify { function supportsWorkerThreads(): boolean; } /** - * @param {Input} input - * @param {RawSourceMap} [sourceMap] - * @param {CustomOptions} [minimizerOptions] - * @return {Promise} + * @param {Input} input Input + * @param {RawSourceMap=} sourceMap Source map + * @param {CustomOptions=} minimizerOptions Minimizer options + * @returns {Promise} Promise with minimized result */ -export function cleanCssMinify( +export function cssoMinify( input: Input, - sourceMap?: import("@jridgewell/trace-mapping").EncodedSourceMap | undefined, - minimizerOptions?: import("./index.js").CustomOptions | undefined, + sourceMap?: RawSourceMap | undefined, + minimizerOptions?: CustomOptions | undefined, ): Promise; -export namespace cleanCssMinify { +export namespace cssoMinify { function supportsWorkerThreads(): boolean; } /** - * @param {Input} input - * @param {RawSourceMap} [sourceMap] - * @param {CustomOptions} [minimizerOptions] - * @return {Promise} + * @param {Input} input Input + * @param {RawSourceMap=} sourceMap Source map + * @param {CustomOptions=} minimizerOptions Minimizer options + * @returns {Promise} Promise with minimized result */ export function esbuildMinify( input: Input, - sourceMap?: import("@jridgewell/trace-mapping").EncodedSourceMap | undefined, - minimizerOptions?: import("./index.js").CustomOptions | undefined, + sourceMap?: RawSourceMap | undefined, + minimizerOptions?: CustomOptions | undefined, ): Promise; export namespace esbuildMinify { function supportsWorkerThreads(): boolean; } /** - * @param {Input} input - * @param {RawSourceMap} [sourceMap] - * @param {CustomOptions} [minimizerOptions] - * @return {Promise} + * @param {Input} input Input + * @param {RawSourceMap=} sourceMap Source map + * @param {CustomOptions=} minimizerOptions Minimizer options + * @returns {Promise} Promise with minimized result */ -export function parcelCssMinify( +export function lightningCssMinify( input: Input, - sourceMap?: import("@jridgewell/trace-mapping").EncodedSourceMap | undefined, - minimizerOptions?: import("./index.js").CustomOptions | undefined, + sourceMap?: RawSourceMap | undefined, + minimizerOptions?: CustomOptions | undefined, ): Promise; -export namespace parcelCssMinify { +export namespace lightningCssMinify { function supportsWorkerThreads(): boolean; } /** - * @param {Input} input - * @param {RawSourceMap} [sourceMap] - * @param {CustomOptions} [minimizerOptions] - * @return {Promise} + * @template T + * @param {(() => unknown) | undefined} fn Function to memoize + * @returns {() => T} Memoized function */ -export function lightningCssMinify( +export function memoize(fn: (() => unknown) | undefined): () => T; +/** + * @param {Input} input Input + * @param {RawSourceMap=} sourceMap Source map + * @param {CustomOptions=} minimizerOptions Minimizer options + * @returns {Promise} Promise with minimized result + */ +export function parcelCssMinify( input: Input, - sourceMap?: import("@jridgewell/trace-mapping").EncodedSourceMap | undefined, - minimizerOptions?: import("./index.js").CustomOptions | undefined, + sourceMap?: RawSourceMap | undefined, + minimizerOptions?: CustomOptions | undefined, ): Promise; -export namespace lightningCssMinify { +export namespace parcelCssMinify { function supportsWorkerThreads(): boolean; } /** - * @param {Input} input - * @param {RawSourceMap} [sourceMap] - * @param {CustomOptions} [minimizerOptions] - * @return {Promise} + * @param {Input} input Input + * @param {RawSourceMap=} sourceMap Source map + * @param {CustomOptions=} minimizerOptions Minimizer options + * @returns {Promise} Promise with minimized result */ export function swcMinify( input: Input, - sourceMap?: import("@jridgewell/trace-mapping").EncodedSourceMap | undefined, - minimizerOptions?: import("./index.js").CustomOptions | undefined, + sourceMap?: RawSourceMap | undefined, + minimizerOptions?: CustomOptions | undefined, ): Promise; export namespace swcMinify { function supportsWorkerThreads(): boolean; } +/** + * @template T + * @typedef {() => Promise} Task + */ +/** + * Run tasks with limited concurrency. + * @template T + * @param {number} limit Limit of tasks that run at once. + * @param {Task[]} tasks List of tasks to run. + * @returns {Promise} A promise that fulfills to an array of the results + */ +export function throttleAll(limit: number, tasks: Task[]): Promise;