diff --git a/README.md b/README.md index 976322b6f..34d0b8068 100644 --- a/README.md +++ b/README.md @@ -281,7 +281,7 @@ colorizeOutput: false
-module.exports = {
+export default {
   colorizeOutput: false
 };
 
@@ -327,7 +327,7 @@ errorsOnly: true
-module.exports = {
+export default {
   errorsOnly: true
 };
 
@@ -378,7 +378,7 @@ files:
-module.exports = {
+export default {
   files: [
     'file1.json',
     'file2.yaml'
@@ -437,7 +437,7 @@ ignoreFiles:
 
 
 
-module.exports = {
+export default {
   ignoreFiles: [
     '/my/apis/file1.yml'
   ]
@@ -490,7 +490,7 @@ limits:
 
 
 
-module.exports = {
+export default {
   limits: {
     warnings: 25
   }
@@ -543,7 +543,7 @@ logLevels:
 
 
 
-module.exports = {
+export default {
   logLevels: {
     root: 'error',
     'ibm-schema-description-exists': 'debug'
@@ -592,7 +592,7 @@ outputFormat: json
 
 
 
-module.exports = {
+export default {
   outputFormat: 'json'
 };
 
@@ -648,7 +648,7 @@ ruleset: my-custom-rules.yaml
-module.exports = {
+export default {
   ruleset: 'my-custom-rules.yaml'
 };
 
@@ -694,7 +694,7 @@ summaryOnly: true
-module.exports = {
+export default {
   summaryOnly: true
 };
 
@@ -747,7 +747,7 @@ produceQualityScore: true
-module.exports = {
+export default {
   produceQualityScore: true
 };
 
@@ -799,7 +799,7 @@ markdownReport: true
-module.exports = {
+export default {
   markdownReport: true
 };
 
@@ -815,13 +815,13 @@ and the [IBM OpenAPI Ruleset package](https://www.npmjs.com/package/@ibm-cloud/o Here is a simple example of what that might look like: ```js -const ibmOpenapiRuleset = require('@ibm-cloud/openapi-ruleset'); -const { Spectral } = require('@stoplight/spectral-core'); +import ibmOpenapiRuleset from '@ibm-cloud/openapi-ruleset'; +import { Spectral } from '@stoplight/spectral-core'; -function async runSpectral(openapiDocument) { +async function runSpectral(openapiDocument) { const spectral = new Spectral(); spectral.setRuleset(ibmOpenapiRuleset); - results = await spectral.run(openapiDocument); + const results = await spectral.run(openapiDocument); console.log(results); } ``` diff --git a/docs/ibm-cloud-rules.md b/docs/ibm-cloud-rules.md index a40a7f14e..f65868786 100644 --- a/docs/ibm-cloud-rules.md +++ b/docs/ibm-cloud-rules.md @@ -843,11 +843,11 @@ For this reason, we must implement our custom ruleset using javascript instead o Here is our custom ruleset file (`.spectral.js`): ```javascript -const ibmCloudValidationRules = require('@ibm-cloud/openapi-ruleset'); // Note 1 -const { propertyCasingConvention } = require('@ibm-cloud/openapi-ruleset/src/functions'); -const { schemas } = require('@ibm-cloud/openapi-ruleset-utilities/src/collections'); +import ibmCloudValidationRules from '@ibm-cloud/openapi-ruleset'; // Note 1 +import { propertyCasingConvention } from '@ibm-cloud/openapi-ruleset/src/functions'; +import { schemas } from '@ibm-cloud/openapi-ruleset-utilities/src/collections'; -module.exports = { +export default { extends: ibmCloudValidationRules, rules: { 'ibm-property-casing-convention': { // Note 2 @@ -868,7 +868,7 @@ module.exports = { ``` Notes: 1. This custom ruleset extends `@ibm-cloud/openapi-ruleset` and also references the `propertyCasingConvention` function and the -`schemas` JSONPath collection, so we need to import each of these with `require` statements. In addition, be sure to install +`schemas` JSONPath collection, so we need to import each of these with `import` statements. In addition, be sure to install the `@ibm-cloud/openapi-ruleset` package: `npm install @ibm-cloud/openapi-ruleset`. 2. This custom rule is re-defining (overriding) the `ibm-property-casing-convention` rule from the `@ibm-cloud/openapi-ruleset` package so we need to use the same rule id (`ibm-property-casing-convention`). Alternatively, we could have used a different rule id of our choosing, diff --git a/eslint.config.mjs b/eslint.config.mjs index eecbc4631..b977d4874 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -13,7 +13,7 @@ export default [ languageOptions: { globals: { ...globals.node, - ...globals.jest, + ...globals.vitest, ...globals.mocha, }, }, @@ -22,8 +22,8 @@ export default [ ...prettier, files: ['**/*.js'], languageOptions: { - ecmaVersion: 13, - sourceType: 'commonjs', + ecmaVersion: 2025, + sourceType: 'module', globals: { ...globals.node, ...globals.es2021, diff --git a/package-lock.json b/package-lock.json index 106d488c8..8bf89e509 100644 --- a/package-lock.json +++ b/package-lock.json @@ -22,10 +22,10 @@ "eslint-config-prettier": "10.1.8", "eslint-plugin-prettier": "5.5.5", "globals": "17.6.0", - "jest": "29.7.0", "jsdoc": "4.0.5", "mustache": "4.2.0", - "semantic-release": "25.0.9" + "semantic-release": "25.0.9", + "vitest": "4.1.8" } }, "node_modules/@actions/core": { @@ -91,1638 +91,1521 @@ "node": ">=6.9.0" } }, - "node_modules/@babel/compat-data": { + "node_modules/@babel/helper-string-parser": { "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.29.7.tgz", - "integrity": "sha512-locTkQyKvwIEgBzVrn8693ebc97F2U8ZHjbXwDXJ5Fn2TCpNwTlKcaKLkdHop5c/icOFE7qt7Q9JC5hnKNa6Gg==", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.7.tgz", + "integrity": "sha512-Pb5ijPrZ89GDH8223L4UP8i6QApWxs04RbPQJTeWDV0/keR2E36MeKnyr6LYmUUvqRRI+Iv87SuF1W6ErINzYw==", "dev": true, "license": "MIT", "engines": { "node": ">=6.9.0" } }, - "node_modules/@babel/core": { + "node_modules/@babel/helper-validator-identifier": { "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.29.7.tgz", - "integrity": "sha512-RgHBCvtjbOK2gXSNBNIkNoEc9qoVEtau3hj8gEqKQuL3HZAibKarWFEI3Lfm6EYKkLalOh8eSrj9b+ch9H/VBA==", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.29.7.tgz", + "integrity": "sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==", "dev": true, "license": "MIT", - "dependencies": { - "@babel/code-frame": "^7.29.7", - "@babel/generator": "^7.29.7", - "@babel/helper-compilation-targets": "^7.29.7", - "@babel/helper-module-transforms": "^7.29.7", - "@babel/helpers": "^7.29.7", - "@babel/parser": "^7.29.7", - "@babel/template": "^7.29.7", - "@babel/traverse": "^7.29.7", - "@babel/types": "^7.29.7", - "@jridgewell/remapping": "^2.3.5", - "convert-source-map": "^2.0.0", - "debug": "^4.1.0", - "gensync": "^1.0.0-beta.2", - "json5": "^2.2.3", - "semver": "^6.3.1" - }, "engines": { "node": ">=6.9.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/babel" } }, - "node_modules/@babel/core/node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "node_modules/@babel/parser": { + "version": "7.29.8", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.8.tgz", + "integrity": "sha512-E8lTAYNB1KW+FH+VGJuZM1ioAx2E6oVlvQFRrf5P8ZZmsiJXYAD9vTFV7yyEURNzgh1dFqMZuO6tUwcARbqFCA==", "dev": true, - "license": "ISC", + "license": "MIT", + "dependencies": { + "@babel/types": "^7.29.8" + }, "bin": { - "semver": "bin/semver.js" + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" } }, - "node_modules/@babel/generator": { + "node_modules/@babel/types": { "version": "7.29.8", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.8.tgz", - "integrity": "sha512-gZbepsdh3WDtgZKWL+vTPh71LSBrm/Y4/QDZBVCcYfmeTEEuoOYwlSy+G1StfJg+/Zy550u/3TATbm7qDbbMtg==", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.8.tgz", + "integrity": "sha512-Vj1jF3cPfxg7OAfoI7QnVKLoILlm2JF9pnVHrX8qx7AHMiYWT+NDAA7jChlNgRS4WTLc/fD1lXLmPixluj+3Gg==", "dev": true, "license": "MIT", "dependencies": { - "@babel/parser": "^7.29.8", - "@babel/types": "^7.29.8", - "@jridgewell/gen-mapping": "^0.3.12", - "@jridgewell/trace-mapping": "^0.3.28", - "jsesc": "^3.0.2" + "@babel/helper-string-parser": "^7.29.7", + "@babel/helper-validator-identifier": "^7.29.7" }, "engines": { "node": ">=6.9.0" } }, - "node_modules/@babel/helper-compilation-targets": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.29.7.tgz", - "integrity": "sha512-wem6WaBj4NaVYVdNhLPPVacES6ZJ+KBBfSkTMD3YZxbP3rm3Di85tJU5ljaUNhaOynt+Aj0xruhYuzQBt8n71g==", + "node_modules/@colors/colors": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@colors/colors/-/colors-1.5.0.tgz", + "integrity": "sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ==", "dev": true, "license": "MIT", - "dependencies": { - "@babel/compat-data": "^7.29.7", - "@babel/helper-validator-option": "^7.29.7", - "browserslist": "^4.24.0", - "lru-cache": "^5.1.1", - "semver": "^6.3.1" - }, + "optional": true, "engines": { - "node": ">=6.9.0" + "node": ">=0.1.90" } }, - "node_modules/@babel/helper-compilation-targets/node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "node_modules/@emnapi/core": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.10.0.tgz", + "integrity": "sha512-yq6OkJ4p82CAfPl0u9mQebQHKPJkY7WrIuk205cTYnYe+k2Z8YBh11FrbRG/H6ihirqcacOgl2BIO8oyMQLeXw==", "dev": true, - "license": "ISC", - "bin": { - "semver": "bin/semver.js" + "license": "MIT", + "optional": true, + "dependencies": { + "@emnapi/wasi-threads": "1.2.1", + "tslib": "^2.4.0" } }, - "node_modules/@babel/helper-globals": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.29.7.tgz", - "integrity": "sha512-3nQVUAtvkKH9zahfWgw96Jc/uFOmjACE1kQz82E2lqWmHBgjzbNlsC22nuQTfahmWeQtTq5nQ/4Nnd2A1wj4zA==", + "node_modules/@emnapi/runtime": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.10.0.tgz", + "integrity": "sha512-ewvYlk86xUoGI0zQRNq/mC+16R1QeDlKQy21Ki3oSYXNgLb45GV1P6A0M+/s6nyCuNDqe5VpaY84BzXGwVbwFA==", "dev": true, "license": "MIT", - "engines": { - "node": ">=6.9.0" + "optional": true, + "dependencies": { + "tslib": "^2.4.0" } }, - "node_modules/@babel/helper-module-imports": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.29.7.tgz", - "integrity": "sha512-ejHwrQQYcm9xnTivShn2IDOlIzInN34AXskvq9QicvCtEzq1Vzclu/tKF8Jq1Cg8JG2GL6/EmjgsCT7lXepE3g==", + "node_modules/@emnapi/wasi-threads": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-1.2.1.tgz", + "integrity": "sha512-uTII7OYF+/Mes/MrcIOYp5yOtSMLBWSIoLPpcgwipoiKbli6k322tcoFsxoIIxPDqW01SQGAgko4EzZi2BNv2w==", "dev": true, "license": "MIT", + "optional": true, "dependencies": { - "@babel/traverse": "^7.29.7", - "@babel/types": "^7.29.7" - }, - "engines": { - "node": ">=6.9.0" + "tslib": "^2.4.0" } }, - "node_modules/@babel/helper-module-transforms": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.29.7.tgz", - "integrity": "sha512-UPUVSyXbOh627KiCIGQSgwWzGeBKLkaJ9PJEdrngIwMSzxLR4jS4+f1f1jb7VzBbg8nFLaYotvVPFCTqdrmTAg==", + "node_modules/@eslint-community/eslint-utils": { + "version": "4.10.1", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.10.1.tgz", + "integrity": "sha512-cuadcxVFE8sDK6iWJbs8Sn0av2Nrh2QSGQhVlBW9AaAHqHwjWsZHT8LJ4hFGPh7ASBV2deFdM7H/DPjulmh8rg==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-module-imports": "^7.29.7", - "@babel/helper-validator-identifier": "^7.29.7", - "@babel/traverse": "^7.29.7" + "eslint-visitor-keys": "^3.4.3" }, "engines": { - "node": ">=6.9.0" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" }, "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-plugin-utils": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.29.7.tgz", - "integrity": "sha512-G7sHYigPY17oO5SYWnfD/0MTBwVR781S/JI643e/JhUYgVgWE/61SoW3NH9KWUKyKq5LVh3npif99Wkt6j86Jw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" } }, - "node_modules/@babel/helper-string-parser": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.7.tgz", - "integrity": "sha512-Pb5ijPrZ89GDH8223L4UP8i6QApWxs04RbPQJTeWDV0/keR2E36MeKnyr6LYmUUvqRRI+Iv87SuF1W6ErINzYw==", + "node_modules/@eslint-community/regexpp": { + "version": "4.12.2", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.2.tgz", + "integrity": "sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==", "dev": true, "license": "MIT", "engines": { - "node": ">=6.9.0" + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" } }, - "node_modules/@babel/helper-validator-identifier": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.29.7.tgz", - "integrity": "sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==", + "node_modules/@eslint/config-array": { + "version": "0.23.5", + "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.23.5.tgz", + "integrity": "sha512-Y3kKLvC1dvTOT+oGlqNQ1XLqK6D1HU2YXPc52NmAlJZbMMWDzGYXMiPRJ8TYD39muD/OTjlZmNJ4ib7dvSrMBA==", "dev": true, - "license": "MIT", + "license": "Apache-2.0", + "dependencies": { + "@eslint/object-schema": "^3.0.5", + "debug": "^4.3.1", + "minimatch": "^10.2.4" + }, "engines": { - "node": ">=6.9.0" + "node": "^20.19.0 || ^22.13.0 || >=24" } }, - "node_modules/@babel/helper-validator-option": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.29.7.tgz", - "integrity": "sha512-N9ZErrD+yW5geCDtBqnOoxmR8+tNKiGuxKlDpuJxfsqpa2dFcexaziGAE/qoHLiDDreVNMupxGmSoNlyvsA3gw==", + "node_modules/@eslint/config-array/node_modules/balanced-match": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz", + "integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==", "dev": true, "license": "MIT", "engines": { - "node": ">=6.9.0" + "node": "18 || 20 || >=22" } }, - "node_modules/@babel/helpers": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.29.7.tgz", - "integrity": "sha512-1k2lAGRMfHTcwuNYcCNUmaUffmQv8KWMfh2iJUUeRlwlwH4FdNG7mfPI10NPfLHJFThE4Tyr4mv7kTNZOiPuBg==", + "node_modules/@eslint/config-array/node_modules/brace-expansion": { + "version": "5.0.12", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.12.tgz", + "integrity": "sha512-YovQ3rzhaLMIrDjNDMkNS01tea93qhEhG5xy8f6+R0l+dw3Ki+5sCoIoI942iuLZTHWogWktgwVDhU09iNEimQ==", "dev": true, "license": "MIT", "dependencies": { - "@babel/template": "^7.29.7", - "@babel/types": "^7.29.7" + "balanced-match": "^4.0.2" }, "engines": { - "node": ">=6.9.0" + "node": "20 || >=22" } }, - "node_modules/@babel/parser": { - "version": "7.29.8", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.8.tgz", - "integrity": "sha512-E8lTAYNB1KW+FH+VGJuZM1ioAx2E6oVlvQFRrf5P8ZZmsiJXYAD9vTFV7yyEURNzgh1dFqMZuO6tUwcARbqFCA==", + "node_modules/@eslint/config-array/node_modules/minimatch": { + "version": "10.2.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.5.tgz", + "integrity": "sha512-MULkVLfKGYDFYejP07QOurDLLQpcjk7Fw+7jXS2R2czRQzR56yHRveU5NDJEOviH+hETZKSkIk5c+T23GjFUMg==", "dev": true, - "license": "MIT", + "license": "BlueOak-1.0.0", "dependencies": { - "@babel/types": "^7.29.8" - }, - "bin": { - "parser": "bin/babel-parser.js" + "brace-expansion": "^5.0.5" }, "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@babel/plugin-syntax-async-generators": { - "version": "7.8.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", - "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" + "node": "18 || 20 || >=22" }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/@babel/plugin-syntax-bigint": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz", - "integrity": "sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==", + "node_modules/@eslint/config-helpers": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.6.0.tgz", + "integrity": "sha512-ii6Bw9jJ2zi2cWA2Z+9/QZ/+3DX6kwaV5Q986D/CdP3Lap3w/pgQZ373FV7byY/i7L4IRH/G43I5dz1ClsCbpA==", "dev": true, - "license": "MIT", + "license": "Apache-2.0", "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" + "@eslint/core": "^1.2.1" }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" } }, - "node_modules/@babel/plugin-syntax-class-properties": { - "version": "7.12.13", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", - "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", + "node_modules/@eslint/core": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@eslint/core/-/core-1.2.1.tgz", + "integrity": "sha512-MwcE1P+AZ4C6DWlpin/OmOA54mmIZ/+xZuJiQd4SyB29oAJjN30UW9wkKNptW2ctp4cEsvhlLY/CsQ1uoHDloQ==", "dev": true, - "license": "MIT", + "license": "Apache-2.0", "dependencies": { - "@babel/helper-plugin-utils": "^7.12.13" + "@types/json-schema": "^7.0.15" }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" } }, - "node_modules/@babel/plugin-syntax-class-static-block": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz", - "integrity": "sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==", + "node_modules/@eslint/js": { + "version": "10.0.1", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-10.0.1.tgz", + "integrity": "sha512-zeR9k5pd4gxjZ0abRoIaxdc7I3nDktoXZk2qOv9gCNWx3mVwEn32VRhyLaRsDiJjTs0xq/T8mfPtyuXu7GWBcA==", "dev": true, "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.14.5" - }, "engines": { - "node": ">=6.9.0" + "node": "^20.19.0 || ^22.13.0 || >=24" + }, + "funding": { + "url": "https://eslint.org/donate" }, "peerDependencies": { - "@babel/core": "^7.0.0-0" + "eslint": "^10.0.0" + }, + "peerDependenciesMeta": { + "eslint": { + "optional": true + } } }, - "node_modules/@babel/plugin-syntax-import-attributes": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.29.7.tgz", - "integrity": "sha512-zGYcYfq/WmZ4V+kBIXQon9dSSc8ircGZqw9ZaNhhGj9nZkeBu1jHLBDQqYYi5WA9uawvA2sIMbry2nCFhf5Djg==", + "node_modules/@eslint/object-schema": { + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-3.0.5.tgz", + "integrity": "sha512-vqTaUEgxzm+YDSdElad6PiRoX4t8VGDjCtt05zn4nU810UIx/uNEV7/lZJ6KwFThKZOzOxzXy48da+No7HZaMw==", "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.29.7" - }, + "license": "Apache-2.0", "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" + "node": "^20.19.0 || ^22.13.0 || >=24" } }, - "node_modules/@babel/plugin-syntax-import-meta": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", - "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", + "node_modules/@eslint/plugin-kit": { + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.7.1.tgz", + "integrity": "sha512-rZAP3aVgB9ds9KOeUSL+zZ21hPmo8dh6fnIFwRQj5EAZl9gzR7wxYbYXYysAM8CTqGmUGyp2S4kUdV17MnGuWQ==", "dev": true, - "license": "MIT", + "license": "Apache-2.0", "dependencies": { - "@babel/helper-plugin-utils": "^7.10.4" + "@eslint/core": "^1.2.1", + "levn": "^0.4.1" }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" } }, - "node_modules/@babel/plugin-syntax-json-strings": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", - "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", + "node_modules/@humanfs/core": { + "version": "0.19.2", + "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.2.tgz", + "integrity": "sha512-UhXNm+CFMWcbChXywFwkmhqjs3PRCmcSa/hfBgLIb7oQ5HNb1wS0icWsGtSAUNgefHeI+eBrA8I1fxmbHsGdvA==", "dev": true, - "license": "MIT", + "license": "Apache-2.0", "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" + "@humanfs/types": "^0.15.0" }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" + "engines": { + "node": ">=18.18.0" } }, - "node_modules/@babel/plugin-syntax-jsx": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.29.7.tgz", - "integrity": "sha512-TSu8+mHCoEaaCDEZ0I3+6mvTBYR4PCxQwf2z9/r5Tbztv6NaLR3B9thGTTxX2WGuGHJqRiAbKPeGTJ5XWXVg6A==", + "node_modules/@humanfs/node": { + "version": "0.16.8", + "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.8.tgz", + "integrity": "sha512-gE1eQNZ3R++kTzFUpdGlpmy8kDZD/MLyHqDwqjkVQI0JMdI1D51sy1H958PNXYkM2rAac7e5/CnIKZrHtPh3BQ==", "dev": true, - "license": "MIT", + "license": "Apache-2.0", "dependencies": { - "@babel/helper-plugin-utils": "^7.29.7" + "@humanfs/core": "^0.19.2", + "@humanfs/types": "^0.15.0", + "@humanwhocodes/retry": "^0.4.0" }, "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" + "node": ">=18.18.0" } }, - "node_modules/@babel/plugin-syntax-logical-assignment-operators": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", - "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", + "node_modules/@humanfs/types": { + "version": "0.15.0", + "resolved": "https://registry.npmjs.org/@humanfs/types/-/types-0.15.0.tgz", + "integrity": "sha512-ZZ1w0aoQkwuUuC7Yf+7sdeaNfqQiiLcSRbfI08oAxqLtpXQr9AIVX7Ay7HLDuiLYAaFPu8oBYNq/QIi9URHJ3Q==", "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.10.4" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" + "license": "Apache-2.0", + "engines": { + "node": ">=18.18.0" } }, - "node_modules/@babel/plugin-syntax-nullish-coalescing-operator": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", - "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", + "node_modules/@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" + "license": "Apache-2.0", + "engines": { + "node": ">=12.22" }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" } }, - "node_modules/@babel/plugin-syntax-numeric-separator": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", - "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.10.4" + "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" }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" } }, - "node_modules/@babel/plugin-syntax-object-rest-spread": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", - "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", + "node_modules/@ibm-cloud/openapi-ruleset": { + "resolved": "packages/ruleset", + "link": true + }, + "node_modules/@ibm-cloud/openapi-ruleset-utilities": { + "resolved": "packages/utilities", + "link": true + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.13", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", + "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" + "@jridgewell/sourcemap-codec": "^1.5.0", + "@jridgewell/trace-mapping": "^0.3.24" } }, - "node_modules/@babel/plugin-syntax-optional-catch-binding": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", - "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", "dev": true, "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" + "engines": { + "node": ">=6.0.0" } }, - "node_modules/@babel/plugin-syntax-optional-chaining": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", - "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.6.0.tgz", + "integrity": "sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.31", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", + "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" } }, - "node_modules/@babel/plugin-syntax-private-property-in-object": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz", - "integrity": "sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==", + "node_modules/@jsdoc/salty": { + "version": "0.2.12", + "resolved": "https://registry.npmjs.org/@jsdoc/salty/-/salty-0.2.12.tgz", + "integrity": "sha512-TuB0x50EoAvEX/UEWITd8Mkn3WhiTjSvbTMCLj0BhsQEl5iUzjXdA0bETEVpTk+5TGTLR6QktI9H4hLviVeaAQ==", "dev": true, - "license": "MIT", + "license": "Apache-2.0", "dependencies": { - "@babel/helper-plugin-utils": "^7.14.5" + "lodash": "^4.18.1" }, "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" + "node": ">=v12.0.0" } }, - "node_modules/@babel/plugin-syntax-top-level-await": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", - "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", - "dev": true, + "node_modules/@jsep-plugin/assignment": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@jsep-plugin/assignment/-/assignment-1.3.0.tgz", + "integrity": "sha512-VVgV+CXrhbMI3aSusQyclHkenWSAm95WaiKrMxRFam3JSUiIaQjoMIw2sEs/OX4XifnqeQUN4DYbJjlA8EfktQ==", "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.14.5" - }, "engines": { - "node": ">=6.9.0" + "node": ">= 10.16.0" }, "peerDependencies": { - "@babel/core": "^7.0.0-0" + "jsep": "^0.4.0||^1.0.0" } }, - "node_modules/@babel/plugin-syntax-typescript": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.29.7.tgz", - "integrity": "sha512-ngr+82Sh0xMz25TPCZi+nC2iTzjfCdWS2ONXTp/PtSCHCgaCNBpdMqgvJ2ccdLlClVZ7sisIgB914j/JFe+RZA==", - "dev": true, + "node_modules/@jsep-plugin/regex": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@jsep-plugin/regex/-/regex-1.0.4.tgz", + "integrity": "sha512-q7qL4Mgjs1vByCaTnDFcBnV9HS7GVPJX5vyVoCgZHNSC9rjwIlmbXG5sUuorR5ndfHAIlJ8pVStxvjXHbNvtUg==", "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.29.7" - }, "engines": { - "node": ">=6.9.0" + "node": ">= 10.16.0" }, "peerDependencies": { - "@babel/core": "^7.0.0-0" + "jsep": "^0.4.0||^1.0.0" } }, - "node_modules/@babel/template": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.29.7.tgz", - "integrity": "sha512-puq+Gf35oI24FeN11LkoUQFqv9uwNeWpxXZi/Ji3rRIoKAzKnxRaZ+Gkj0vKS9ZCiTESfng1N9LyOyXvo+m+Gg==", - "dev": true, + "node_modules/@jsep-plugin/ternary": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/@jsep-plugin/ternary/-/ternary-1.1.4.tgz", + "integrity": "sha512-ck5wiqIbqdMX6WRQztBL7ASDty9YLgJ3sSAK5ZpBzXeySvFGCzIvM6UiAI4hTZ22fEcYQVV/zhUbNscggW+Ukg==", "license": "MIT", - "dependencies": { - "@babel/code-frame": "^7.29.7", - "@babel/parser": "^7.29.7", - "@babel/types": "^7.29.7" - }, "engines": { - "node": ">=6.9.0" + "node": ">= 10.16.0" + }, + "peerDependencies": { + "jsep": "^0.4.0||^1.0.0" } }, - "node_modules/@babel/traverse": { - "version": "7.29.8", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.8.tgz", - "integrity": "sha512-I5z7H3bf/41ktsNVLtpN0wAa336HkqIHQ5BuPLEhTkt1jVSyZpeNKIzTgEWmlxjdg81R0IgUCcaE+Ok3NvrfZg==", + "node_modules/@napi-rs/wasm-runtime": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.1.4.tgz", + "integrity": "sha512-3NQNNgA1YSlJb/kMH1ildASP9HW7/7kYnRI2szWJaofaS1hWmbGI4H+d3+22aGzXXN9IJ+n+GiFVcGipJP18ow==", "dev": true, "license": "MIT", + "optional": true, "dependencies": { - "@babel/code-frame": "^7.29.7", - "@babel/generator": "^7.29.8", - "@babel/helper-globals": "^7.29.7", - "@babel/parser": "^7.29.8", - "@babel/template": "^7.29.7", - "@babel/types": "^7.29.8", - "debug": "^4.3.1" + "@tybys/wasm-util": "^0.10.1" }, - "engines": { - "node": ">=6.9.0" + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Brooooooklyn" + }, + "peerDependencies": { + "@emnapi/core": "^1.7.1", + "@emnapi/runtime": "^1.7.1" } }, - "node_modules/@babel/types": { - "version": "7.29.8", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.8.tgz", - "integrity": "sha512-Vj1jF3cPfxg7OAfoI7QnVKLoILlm2JF9pnVHrX8qx7AHMiYWT+NDAA7jChlNgRS4WTLc/fD1lXLmPixluj+3Gg==", - "dev": true, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", "license": "MIT", "dependencies": { - "@babel/helper-string-parser": "^7.29.7", - "@babel/helper-validator-identifier": "^7.29.7" + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" }, "engines": { - "node": ">=6.9.0" + "node": ">= 8" } }, - "node_modules/@bcoe/v8-coverage": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", - "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", - "dev": true, - "license": "MIT" - }, - "node_modules/@colors/colors": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/@colors/colors/-/colors-1.5.0.tgz", - "integrity": "sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ==", - "dev": true, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", "license": "MIT", - "optional": true, "engines": { - "node": ">=0.1.90" + "node": ">= 8" } }, - "node_modules/@eslint-community/eslint-utils": { - "version": "4.10.1", - "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.10.1.tgz", - "integrity": "sha512-cuadcxVFE8sDK6iWJbs8Sn0av2Nrh2QSGQhVlBW9AaAHqHwjWsZHT8LJ4hFGPh7ASBV2deFdM7H/DPjulmh8rg==", - "dev": true, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", "license": "MIT", "dependencies": { - "eslint-visitor-keys": "^3.4.3" + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" }, "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": ">= 8" } }, - "node_modules/@eslint-community/regexpp": { - "version": "4.12.2", - "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.2.tgz", - "integrity": "sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==", + "node_modules/@octokit/auth-token": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-6.0.0.tgz", + "integrity": "sha512-P4YJBPdPSpWTQ1NU4XYdvHvXJJDxM6YwpS0FZHRgP7YFkdVxsWcpWGy/NVqlAA7PcPCnMacXlRm1y2PFZRWL/w==", "dev": true, "license": "MIT", "engines": { - "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + "node": ">= 20" } }, - "node_modules/@eslint/config-array": { - "version": "0.23.5", - "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.23.5.tgz", - "integrity": "sha512-Y3kKLvC1dvTOT+oGlqNQ1XLqK6D1HU2YXPc52NmAlJZbMMWDzGYXMiPRJ8TYD39muD/OTjlZmNJ4ib7dvSrMBA==", + "node_modules/@octokit/core": { + "version": "7.0.8", + "resolved": "https://registry.npmjs.org/@octokit/core/-/core-7.0.8.tgz", + "integrity": "sha512-L7y8eYc+AwxGr2PWI4WFt1VG4TiJ66c26BD16mXpYIlXxG0SMigM1+m4aTSlYyBr5BlQsGAlz8uDCoZN4SEMcg==", "dev": true, - "license": "Apache-2.0", + "license": "MIT", "dependencies": { - "@eslint/object-schema": "^3.0.5", - "debug": "^4.3.1", - "minimatch": "^10.2.4" + "@octokit/auth-token": "^6.0.0", + "@octokit/graphql": "^9.0.5", + "@octokit/request": "^10.0.16", + "@octokit/request-error": "^7.1.2", + "@octokit/types": "^18.0.0", + "before-after-hook": "^4.0.0", + "universal-user-agent": "^7.0.0" }, "engines": { - "node": "^20.19.0 || ^22.13.0 || >=24" + "node": ">= 20" } }, - "node_modules/@eslint/config-array/node_modules/balanced-match": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz", - "integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==", + "node_modules/@octokit/endpoint": { + "version": "11.0.5", + "resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-11.0.5.tgz", + "integrity": "sha512-iXa654H3yFafF/ieHkukfbgWo2rmXD2ceD0ZOtrPhw1bc3FDch1d9N/TNs0FQ1/cIbwb7kspUX8jzIs8nzb9DQ==", "dev": true, "license": "MIT", + "dependencies": { + "@octokit/types": "^18.0.0", + "universal-user-agent": "^7.0.2" + }, "engines": { - "node": "18 || 20 || >=22" + "node": ">= 20" } }, - "node_modules/@eslint/config-array/node_modules/brace-expansion": { - "version": "5.0.12", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.12.tgz", - "integrity": "sha512-YovQ3rzhaLMIrDjNDMkNS01tea93qhEhG5xy8f6+R0l+dw3Ki+5sCoIoI942iuLZTHWogWktgwVDhU09iNEimQ==", + "node_modules/@octokit/graphql": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-9.0.5.tgz", + "integrity": "sha512-bt/hm03LeU6Vy7FwTrkkC9p3XGT/lBwClglMqxBSe5/q0E5CdJTXeAqEI0vlw89/LF/G6tryTIH8HirZ3prMVg==", "dev": true, "license": "MIT", "dependencies": { - "balanced-match": "^4.0.2" + "@octokit/request": "^10.0.16", + "@octokit/types": "^18.0.0", + "universal-user-agent": "^7.0.0" }, "engines": { - "node": "20 || >=22" + "node": ">= 20" } }, - "node_modules/@eslint/config-array/node_modules/minimatch": { - "version": "10.2.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.5.tgz", - "integrity": "sha512-MULkVLfKGYDFYejP07QOurDLLQpcjk7Fw+7jXS2R2czRQzR56yHRveU5NDJEOviH+hETZKSkIk5c+T23GjFUMg==", + "node_modules/@octokit/openapi-types": { + "version": "29.0.1", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-29.0.1.tgz", + "integrity": "sha512-9qWOMFNxxLokERcms42rU0PTLqQmVs7g5E41TI4mCOxmpFayD1rfC7XxOL55cG9MBZLFlC31BrR37myMKardwg==", "dev": true, - "license": "BlueOak-1.0.0", - "dependencies": { - "brace-expansion": "^5.0.5" - }, - "engines": { - "node": "18 || 20 || >=22" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } + "license": "MIT" }, - "node_modules/@eslint/config-helpers": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.6.0.tgz", - "integrity": "sha512-ii6Bw9jJ2zi2cWA2Z+9/QZ/+3DX6kwaV5Q986D/CdP3Lap3w/pgQZ373FV7byY/i7L4IRH/G43I5dz1ClsCbpA==", + "node_modules/@octokit/plugin-paginate-rest": { + "version": "14.0.0", + "resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-14.0.0.tgz", + "integrity": "sha512-fNVRE7ufJiAA3XUrha2omTA39M6IXIc6GIZLvlbsm8QOQCYvpq/LkMNGyFlB1d8hTDzsAXa3OKtybdMAYsV/fw==", "dev": true, - "license": "Apache-2.0", + "license": "MIT", "dependencies": { - "@eslint/core": "^1.2.1" + "@octokit/types": "^16.0.0" }, "engines": { - "node": "^20.19.0 || ^22.13.0 || >=24" + "node": ">= 20" + }, + "peerDependencies": { + "@octokit/core": ">=6" } }, - "node_modules/@eslint/core": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/@eslint/core/-/core-1.2.1.tgz", - "integrity": "sha512-MwcE1P+AZ4C6DWlpin/OmOA54mmIZ/+xZuJiQd4SyB29oAJjN30UW9wkKNptW2ctp4cEsvhlLY/CsQ1uoHDloQ==", + "node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/openapi-types": { + "version": "27.0.0", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-27.0.0.tgz", + "integrity": "sha512-whrdktVs1h6gtR+09+QsNk2+FO+49j6ga1c55YZudfEG+oKJVvJLQi3zkOm5JjiUXAagWK2tI2kTGKJ2Ys7MGA==", "dev": true, - "license": "Apache-2.0", + "license": "MIT" + }, + "node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types": { + "version": "16.0.0", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-16.0.0.tgz", + "integrity": "sha512-sKq+9r1Mm4efXW1FCk7hFSeJo4QKreL/tTbR0rz/qx/r1Oa2VV83LTA/H/MuCOX7uCIJmQVRKBcbmWoySjAnSg==", + "dev": true, + "license": "MIT", "dependencies": { - "@types/json-schema": "^7.0.15" - }, - "engines": { - "node": "^20.19.0 || ^22.13.0 || >=24" + "@octokit/openapi-types": "^27.0.0" } }, - "node_modules/@eslint/js": { - "version": "10.0.1", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-10.0.1.tgz", - "integrity": "sha512-zeR9k5pd4gxjZ0abRoIaxdc7I3nDktoXZk2qOv9gCNWx3mVwEn32VRhyLaRsDiJjTs0xq/T8mfPtyuXu7GWBcA==", + "node_modules/@octokit/plugin-retry": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/@octokit/plugin-retry/-/plugin-retry-8.1.1.tgz", + "integrity": "sha512-VCVvZ/R1+u3WuiBWpNavZ0mY4aaJNAsENrpBP9aLSR2QyOpQgd7DhM5j4AW7z4MQpnJYgwBPf0XqPQoNBRdQwg==", "dev": true, "license": "MIT", - "engines": { - "node": "^20.19.0 || ^22.13.0 || >=24" + "dependencies": { + "@octokit/request-error": "^7.1.1", + "@octokit/types": "^17.0.0", + "bottleneck": "^2.15.3" }, - "funding": { - "url": "https://eslint.org/donate" + "engines": { + "node": ">= 20" }, "peerDependencies": { - "eslint": "^10.0.0" - }, - "peerDependenciesMeta": { - "eslint": { - "optional": true - } + "@octokit/core": ">=7" } }, - "node_modules/@eslint/object-schema": { - "version": "3.0.5", - "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-3.0.5.tgz", - "integrity": "sha512-vqTaUEgxzm+YDSdElad6PiRoX4t8VGDjCtt05zn4nU810UIx/uNEV7/lZJ6KwFThKZOzOxzXy48da+No7HZaMw==", + "node_modules/@octokit/plugin-retry/node_modules/@octokit/openapi-types": { + "version": "28.0.0", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-28.0.0.tgz", + "integrity": "sha512-0rFyLuyHvIj6uuZWuDslxkowFYdPXoNIkeAv4b27dzm2Tf4vGWXnPsMcxs7d65kLdMERgP3wc1AEPlqMz8e1cQ==", "dev": true, - "license": "Apache-2.0", - "engines": { - "node": "^20.19.0 || ^22.13.0 || >=24" - } + "license": "MIT" }, - "node_modules/@eslint/plugin-kit": { - "version": "0.7.1", - "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.7.1.tgz", - "integrity": "sha512-rZAP3aVgB9ds9KOeUSL+zZ21hPmo8dh6fnIFwRQj5EAZl9gzR7wxYbYXYysAM8CTqGmUGyp2S4kUdV17MnGuWQ==", + "node_modules/@octokit/plugin-retry/node_modules/@octokit/types": { + "version": "17.0.0", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-17.0.0.tgz", + "integrity": "sha512-ByP1v7YL5SMveFPP7+sj0/ZuWCOOg/Chs4NafOMpq6WNIM/hdGY0S7C0TCGDBWu1aGmOxmUIhMx3cO+IdwYZ1Q==", "dev": true, - "license": "Apache-2.0", + "license": "MIT", "dependencies": { - "@eslint/core": "^1.2.1", - "levn": "^0.4.1" - }, - "engines": { - "node": "^20.19.0 || ^22.13.0 || >=24" + "@octokit/openapi-types": "^28.0.0" } }, - "node_modules/@humanfs/core": { - "version": "0.19.2", - "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.2.tgz", - "integrity": "sha512-UhXNm+CFMWcbChXywFwkmhqjs3PRCmcSa/hfBgLIb7oQ5HNb1wS0icWsGtSAUNgefHeI+eBrA8I1fxmbHsGdvA==", + "node_modules/@octokit/plugin-throttling": { + "version": "11.0.5", + "resolved": "https://registry.npmjs.org/@octokit/plugin-throttling/-/plugin-throttling-11.0.5.tgz", + "integrity": "sha512-LIdrkrUv+DWbKeg/49rGuFJ3SU0d3hUS+B4MhNZLepBoNUFXms8Ic9edJjrlx+zycqJHjrMRudVpVb/bAXM2Lw==", "dev": true, - "license": "Apache-2.0", + "license": "MIT", "dependencies": { - "@humanfs/types": "^0.15.0" + "@octokit/types": "^17.0.0", + "bottleneck": "^2.15.3" }, "engines": { - "node": ">=18.18.0" - } - }, - "node_modules/@humanfs/node": { - "version": "0.16.8", - "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.8.tgz", - "integrity": "sha512-gE1eQNZ3R++kTzFUpdGlpmy8kDZD/MLyHqDwqjkVQI0JMdI1D51sy1H958PNXYkM2rAac7e5/CnIKZrHtPh3BQ==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@humanfs/core": "^0.19.2", - "@humanfs/types": "^0.15.0", - "@humanwhocodes/retry": "^0.4.0" + "node": ">= 20" }, - "engines": { - "node": ">=18.18.0" + "peerDependencies": { + "@octokit/core": "^7.0.0" } }, - "node_modules/@humanfs/types": { - "version": "0.15.0", - "resolved": "https://registry.npmjs.org/@humanfs/types/-/types-0.15.0.tgz", - "integrity": "sha512-ZZ1w0aoQkwuUuC7Yf+7sdeaNfqQiiLcSRbfI08oAxqLtpXQr9AIVX7Ay7HLDuiLYAaFPu8oBYNq/QIi9URHJ3Q==", + "node_modules/@octokit/plugin-throttling/node_modules/@octokit/openapi-types": { + "version": "28.0.0", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-28.0.0.tgz", + "integrity": "sha512-0rFyLuyHvIj6uuZWuDslxkowFYdPXoNIkeAv4b27dzm2Tf4vGWXnPsMcxs7d65kLdMERgP3wc1AEPlqMz8e1cQ==", "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">=18.18.0" - } + "license": "MIT" }, - "node_modules/@humanwhocodes/module-importer": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", - "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "node_modules/@octokit/plugin-throttling/node_modules/@octokit/types": { + "version": "17.0.0", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-17.0.0.tgz", + "integrity": "sha512-ByP1v7YL5SMveFPP7+sj0/ZuWCOOg/Chs4NafOMpq6WNIM/hdGY0S7C0TCGDBWu1aGmOxmUIhMx3cO+IdwYZ1Q==", "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">=12.22" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/nzakas" + "license": "MIT", + "dependencies": { + "@octokit/openapi-types": "^28.0.0" } }, - "node_modules/@humanwhocodes/retry": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.3.tgz", - "integrity": "sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==", + "node_modules/@octokit/request": { + "version": "10.0.16", + "resolved": "https://registry.npmjs.org/@octokit/request/-/request-10.0.16.tgz", + "integrity": "sha512-A0zWGjHzISIb+9ccG8s0dq7LKO5zVpJLRICjgUb+sJxEWqn8RUHB1rD3AE51+PECvXHIxqZ1VVvs4fHTSD9nUQ==", "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">=18.18" + "license": "MIT", + "dependencies": { + "@octokit/endpoint": "^11.0.5", + "@octokit/request-error": "^7.1.2", + "@octokit/types": "^18.0.0", + "content-type": "^3.0.0", + "json-with-bigint": "^3.5.12", + "universal-user-agent": "^7.0.2" }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/nzakas" + "engines": { + "node": ">= 20" } }, - "node_modules/@ibm-cloud/openapi-ruleset": { - "resolved": "packages/ruleset", - "link": true - }, - "node_modules/@ibm-cloud/openapi-ruleset-utilities": { - "resolved": "packages/utilities", - "link": true - }, - "node_modules/@istanbuljs/load-nyc-config": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", - "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", + "node_modules/@octokit/request-error": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-7.1.2.tgz", + "integrity": "sha512-XZRuT3xZ84D3gYErI1DZvhJ33dCWVV6uzBtWkaBB4TvA/L6eOeTZodxLFVB44bBEEo3vEx7y00UfX1tBLrtLRg==", "dev": true, - "license": "ISC", + "license": "MIT", "dependencies": { - "camelcase": "^5.3.1", - "find-up": "^4.1.0", - "get-package-type": "^0.1.0", - "js-yaml": "^3.13.1", - "resolve-from": "^5.0.0" + "@octokit/types": "^18.0.0" }, "engines": { - "node": ">=8" + "node": ">= 20" } }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/argparse": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "node_modules/@octokit/types": { + "version": "18.0.0", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-18.0.0.tgz", + "integrity": "sha512-l6bAF43PNxkJp6g+W4PjoUSSkxHomXw2nOum5CTftJz1NlV3vu93NImgOYtLf6CbBUb5j+fiuzW0PPQ5JTSvZA==", "dev": true, "license": "MIT", "dependencies": { - "sprintf-js": "~1.0.2" + "@octokit/openapi-types": "^29.0.1" } }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "node_modules/@oxc-project/types": { + "version": "0.133.0", + "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.133.0.tgz", + "integrity": "sha512-KzkdCd6Uxqnf6l3HOw1xfatAlUURA0g14cvBYFyJ5SaNOQbOUvBr9PKArcPcrNIeRsBdgcUzOGrhKveVpvOIGA==", "dev": true, "license": "MIT", - "dependencies": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=8" + "funding": { + "url": "https://github.com/sponsors/Boshen" } }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/js-yaml": { - "version": "3.15.2", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.15.2.tgz", - "integrity": "sha512-6EuL879VkRA+1Cz578mKMiKvjPNEuk6+r1JaFzoSWejZmtf7xWbIyw1e3KkxlkzTIt9Taw6JBhEppG7utc1P+w==", + "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", - "dependencies": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" + "engines": { + "node": "^14.18.0 || >=16.0.0" }, - "bin": { - "js-yaml": "bin/js-yaml.js" + "funding": { + "url": "https://opencollective.com/pkgr" } }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "node_modules/@pnpm/config.env-replace": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@pnpm/config.env-replace/-/config.env-replace-1.1.0.tgz", + "integrity": "sha512-htyl8TWnKL7K/ESFa1oW2UB5lVDxuF5DpM7tBi6Hu2LNL3mWkIzNLG6N4zoCUP1lCKNxWy/3iu8mS8MvToGd6w==", "dev": true, "license": "MIT", - "dependencies": { - "p-locate": "^4.1.0" - }, "engines": { - "node": ">=8" + "node": ">=12.22.0" } }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "node_modules/@pnpm/network.ca-file": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@pnpm/network.ca-file/-/network.ca-file-1.0.2.tgz", + "integrity": "sha512-YcPQ8a0jwYU9bTdJDpXjMi7Brhkr1mXsXrUJvjqM2mQDgkRiz8jFaQGOdaLxgjtUfQgZhKy/O3cG/YwmgKaxLA==", "dev": true, "license": "MIT", "dependencies": { - "p-try": "^2.0.0" + "graceful-fs": "4.2.10" }, "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=12.22.0" } }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "node_modules/@pnpm/network.ca-file/node_modules/graceful-fs": { + "version": "4.2.10", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz", + "integrity": "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==", + "dev": true, + "license": "ISC" + }, + "node_modules/@pnpm/npm-conf": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@pnpm/npm-conf/-/npm-conf-3.0.3.tgz", + "integrity": "sha512-//0sR/cow/s4ICQaYoAobOl4aU8cjU6x/V24V7XkKotb9+O+3zySIYp146vpaobYHnxa4pZX8NkV54Z5AwbDKA==", "dev": true, "license": "MIT", "dependencies": { - "p-limit": "^2.2.0" + "@pnpm/config.env-replace": "^1.1.0", + "@pnpm/network.ca-file": "^1.0.1", + "config-chain": "^1.1.11" }, "engines": { - "node": ">=8" + "node": ">=12" } }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/resolve-from": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", - "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "node_modules/@rolldown/binding-android-arm64": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm64/-/binding-android-arm64-1.0.3.tgz", + "integrity": "sha512-454rs7jHngixp/NMxd5srYD57OnzSlZ/eFTETjORQHLwJG1lRtmNOJcBerZlfu4GjKqeq8aCCIQrMdHyhI51Hw==", + "cpu": [ + "arm64" + ], "dev": true, "license": "MIT", + "optional": true, + "os": [ + "android" + ], "engines": { - "node": ">=8" + "node": "^20.19.0 || >=22.12.0" } }, - "node_modules/@istanbuljs/schema": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.6.tgz", - "integrity": "sha512-+Sg6GCR/wy1oSmQDFq4LQDAhm3ETKnorxN+y5nbLULOR3P0c14f2Wurzj3/xqPXtasLFfHd5iRFQ7AJt4KH2cw==", + "node_modules/@rolldown/binding-darwin-arm64": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-arm64/-/binding-darwin-arm64-1.0.3.tgz", + "integrity": "sha512-PcAhP+ynjURNyy8SKGl5DQP94aGuB/7JrXJb/t7P+hanXvQVMWzUvRRhBAcg/lNRadBhoUPqSoP4xw5tR/KBEA==", + "cpu": [ + "arm64" + ], "dev": true, "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], "engines": { - "node": ">=8" + "node": "^20.19.0 || >=22.12.0" } }, - "node_modules/@jest/console": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/@jest/console/-/console-29.7.0.tgz", - "integrity": "sha512-5Ni4CU7XHQi32IJ398EEP4RrB8eV09sXP2ROqD4bksHrnTree52PsxvX8tpL8LvTZ3pFzXyPbNQReSN41CAhOg==", - "dev": true, + "node_modules/@rolldown/binding-darwin-x64": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-x64/-/binding-darwin-x64-1.0.3.tgz", + "integrity": "sha512-9YpfeUvSE2RS7wysJ81uOZkXJz7f7Q55H2Gvp3VEw/EsahqDtrphrZ0EwDLK5vvKOzaCrBsjF8JmnMLcUt78Gg==", + "cpu": [ + "x64" + ], + "dev": true, "license": "MIT", - "dependencies": { - "@jest/types": "^29.6.3", - "@types/node": "*", - "chalk": "^4.0.0", - "jest-message-util": "^29.7.0", - "jest-util": "^29.7.0", - "slash": "^3.0.0" - }, + "optional": true, + "os": [ + "darwin" + ], "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": "^20.19.0 || >=22.12.0" } }, - "node_modules/@jest/core": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/@jest/core/-/core-29.7.0.tgz", - "integrity": "sha512-n7aeXWKMnGtDA48y8TLWJPJmLmmZ642Ceo78cYWEpiD7FzDgmNDV/GCVRorPABdXLJZ/9wzzgZAlHjXjxDHGsg==", + "node_modules/@rolldown/binding-freebsd-x64": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@rolldown/binding-freebsd-x64/-/binding-freebsd-x64-1.0.3.tgz", + "integrity": "sha512-yB1IlAsSNHncV6SCTL27/MVGR5htvQsoGxIv5KMGXALp+Ll1wYsn+x98M9MW7qa+NdSbvrrY7ANI4wLJ0n1e6g==", + "cpu": [ + "x64" + ], "dev": true, "license": "MIT", - "dependencies": { - "@jest/console": "^29.7.0", - "@jest/reporters": "^29.7.0", - "@jest/test-result": "^29.7.0", - "@jest/transform": "^29.7.0", - "@jest/types": "^29.6.3", - "@types/node": "*", - "ansi-escapes": "^4.2.1", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "exit": "^0.1.2", - "graceful-fs": "^4.2.9", - "jest-changed-files": "^29.7.0", - "jest-config": "^29.7.0", - "jest-haste-map": "^29.7.0", - "jest-message-util": "^29.7.0", - "jest-regex-util": "^29.6.3", - "jest-resolve": "^29.7.0", - "jest-resolve-dependencies": "^29.7.0", - "jest-runner": "^29.7.0", - "jest-runtime": "^29.7.0", - "jest-snapshot": "^29.7.0", - "jest-util": "^29.7.0", - "jest-validate": "^29.7.0", - "jest-watcher": "^29.7.0", - "micromatch": "^4.0.4", - "pretty-format": "^29.7.0", - "slash": "^3.0.0", - "strip-ansi": "^6.0.0" - }, + "optional": true, + "os": [ + "freebsd" + ], "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "peerDependencies": { - "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" - }, - "peerDependenciesMeta": { - "node-notifier": { - "optional": true - } + "node": "^20.19.0 || >=22.12.0" } }, - "node_modules/@jest/environment": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-29.7.0.tgz", - "integrity": "sha512-aQIfHDq33ExsN4jP1NWGXhxgQ/wixs60gDiKO+XVMd8Mn0NWPWgc34ZQDTb2jKaUWQ7MuwoitXAsN2XVXNMpAw==", + "node_modules/@rolldown/binding-linux-arm-gnueabihf": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.0.3.tgz", + "integrity": "sha512-Yi30IVAAfLUCy2MseFjbB1jAMDl1VMCAas5StnYp8da9+CKvMd2H2cbEjWcw5NPaPqzvYkVIaF1nNUG+b7u/sw==", + "cpu": [ + "arm" + ], "dev": true, "license": "MIT", - "dependencies": { - "@jest/fake-timers": "^29.7.0", - "@jest/types": "^29.6.3", - "@types/node": "*", - "jest-mock": "^29.7.0" - }, + "optional": true, + "os": [ + "linux" + ], "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": "^20.19.0 || >=22.12.0" } }, - "node_modules/@jest/expect": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/@jest/expect/-/expect-29.7.0.tgz", - "integrity": "sha512-8uMeAMycttpva3P1lBHB8VciS9V0XAr3GymPpipdyQXbBcuhkLQOSe8E/p92RyAdToS6ZD1tFkX+CkhoECE0dQ==", + "node_modules/@rolldown/binding-linux-arm64-gnu": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.0.3.tgz", + "integrity": "sha512-jsO7R8To+AdlYgUmN5sHSCZbfhtMBkO0WUx8iORQnPcMMdgr7qM2DQmMwgabs3GhNztdmoKkMKQFHD6DTMCIQw==", + "cpu": [ + "arm64" + ], "dev": true, "license": "MIT", - "dependencies": { - "expect": "^29.7.0", - "jest-snapshot": "^29.7.0" - }, + "optional": true, + "os": [ + "linux" + ], "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": "^20.19.0 || >=22.12.0" } }, - "node_modules/@jest/expect-utils": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-29.7.0.tgz", - "integrity": "sha512-GlsNBWiFQFCVi9QVSx7f5AgMeLxe9YCCs5PuP2O2LdjDAA8Jh9eX7lA1Jq/xdXw3Wb3hyvlFNfZIfcRetSzYcA==", + "node_modules/@rolldown/binding-linux-arm64-musl": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.0.3.tgz", + "integrity": "sha512-VWkUHwWriDciit80wleYwKILoR/KMvxh/IdwS/paX+ZgpuRpCrKLUdadJbc0NpBEiyhpYawsJ73j9aCvOH+f7Q==", + "cpu": [ + "arm64" + ], "dev": true, "license": "MIT", - "dependencies": { - "jest-get-type": "^29.6.3" - }, + "optional": true, + "os": [ + "linux" + ], "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": "^20.19.0 || >=22.12.0" } }, - "node_modules/@jest/fake-timers": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-29.7.0.tgz", - "integrity": "sha512-q4DH1Ha4TTFPdxLsqDXK1d3+ioSL7yL5oCMJZgDYm6i+6CygW5E5xVr/D1HdsGxjt1ZWSfUAs9OxSB/BNelWrQ==", + "node_modules/@rolldown/binding-linux-ppc64-gnu": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.0.3.tgz", + "integrity": "sha512-5f1laC0SlIR0yDbFCd8acUhvJIag6N3zC5P7oUPN6wX0aOma+uKJ0wBDH5aq7I1PVI2ttTlhJwzwRIBnLiSGEg==", + "cpu": [ + "ppc64" + ], "dev": true, "license": "MIT", - "dependencies": { - "@jest/types": "^29.6.3", - "@sinonjs/fake-timers": "^10.0.2", - "@types/node": "*", - "jest-message-util": "^29.7.0", - "jest-mock": "^29.7.0", - "jest-util": "^29.7.0" - }, + "optional": true, + "os": [ + "linux" + ], "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": "^20.19.0 || >=22.12.0" } }, - "node_modules/@jest/globals": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-29.7.0.tgz", - "integrity": "sha512-mpiz3dutLbkW2MNFubUGUEVLkTGiqW6yLVTA+JbP6fI6J5iL9Y0Nlg8k95pcF8ctKwCS7WVxteBs29hhfAotzQ==", + "node_modules/@rolldown/binding-linux-s390x-gnu": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.0.3.tgz", + "integrity": "sha512-Iq4ko0r4XsgbrF/LunNgHtAGLRRVE2kXonAXQ/MV0mC6jQpMOhW1SvtZja2EhC/kd05++bP78dsqBeIQyYJ6Yg==", + "cpu": [ + "s390x" + ], "dev": true, "license": "MIT", - "dependencies": { - "@jest/environment": "^29.7.0", - "@jest/expect": "^29.7.0", - "@jest/types": "^29.6.3", - "jest-mock": "^29.7.0" - }, + "optional": true, + "os": [ + "linux" + ], "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": "^20.19.0 || >=22.12.0" } }, - "node_modules/@jest/reporters": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-29.7.0.tgz", - "integrity": "sha512-DApq0KJbJOEzAFYjHADNNxAE3KbhxQB1y5Kplb5Waqw6zVbuWatSnMjE5gs8FUgEPmNsnZA3NCWl9NG0ia04Pg==", + "node_modules/@rolldown/binding-linux-x64-gnu": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.0.3.tgz", + "integrity": "sha512-B8m6tD5+/N5FeNQFbKlLA/2yVq9ycQP1SeedyEYYKWBNR3ZQbkvIUcNnDNM03lO1l5F2roiiFJGgvoLLyZXtSg==", + "cpu": [ + "x64" + ], "dev": true, "license": "MIT", - "dependencies": { - "@bcoe/v8-coverage": "^0.2.3", - "@jest/console": "^29.7.0", - "@jest/test-result": "^29.7.0", - "@jest/transform": "^29.7.0", - "@jest/types": "^29.6.3", - "@jridgewell/trace-mapping": "^0.3.18", - "@types/node": "*", - "chalk": "^4.0.0", - "collect-v8-coverage": "^1.0.0", - "exit": "^0.1.2", - "glob": "^7.1.3", - "graceful-fs": "^4.2.9", - "istanbul-lib-coverage": "^3.0.0", - "istanbul-lib-instrument": "^6.0.0", - "istanbul-lib-report": "^3.0.0", - "istanbul-lib-source-maps": "^4.0.0", - "istanbul-reports": "^3.1.3", - "jest-message-util": "^29.7.0", - "jest-util": "^29.7.0", - "jest-worker": "^29.7.0", - "slash": "^3.0.0", - "string-length": "^4.0.1", - "strip-ansi": "^6.0.0", - "v8-to-istanbul": "^9.0.1" - }, + "optional": true, + "os": [ + "linux" + ], "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "peerDependencies": { - "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" - }, - "peerDependenciesMeta": { - "node-notifier": { - "optional": true - } + "node": "^20.19.0 || >=22.12.0" } }, - "node_modules/@jest/schemas": { - "version": "29.6.3", - "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.6.3.tgz", - "integrity": "sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==", + "node_modules/@rolldown/binding-linux-x64-musl": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.0.3.tgz", + "integrity": "sha512-pSdpdUJHkuCxun9LE7jvgUB9qsRgaiyNNCX7m/AvHTcq67AiT/Yhoxvw5zPfhrM8k/BfP8ce/hMOpthKDpEUow==", + "cpu": [ + "x64" + ], "dev": true, "license": "MIT", - "dependencies": { - "@sinclair/typebox": "^0.27.8" - }, + "optional": true, + "os": [ + "linux" + ], "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": "^20.19.0 || >=22.12.0" } }, - "node_modules/@jest/source-map": { - "version": "29.6.3", - "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-29.6.3.tgz", - "integrity": "sha512-MHjT95QuipcPrpLM+8JMSzFx6eHp5Bm+4XeFDJlwsvVBjmKNiIAvasGK2fxz2WbGRlnvqehFbh07MMa7n3YJnw==", + "node_modules/@rolldown/binding-openharmony-arm64": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@rolldown/binding-openharmony-arm64/-/binding-openharmony-arm64-1.0.3.tgz", + "integrity": "sha512-OXXS3RKJgX2uLwM+gYyuH5omcH8fL1LJs96pZGgtetVCahON57+d4SJHzTgZiOjxgGkSnpXpOsWuPDGAKAigEg==", + "cpu": [ + "arm64" + ], "dev": true, "license": "MIT", - "dependencies": { - "@jridgewell/trace-mapping": "^0.3.18", - "callsites": "^3.0.0", - "graceful-fs": "^4.2.9" - }, + "optional": true, + "os": [ + "openharmony" + ], "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": "^20.19.0 || >=22.12.0" } }, - "node_modules/@jest/test-result": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-29.7.0.tgz", - "integrity": "sha512-Fdx+tv6x1zlkJPcWXmMDAG2HBnaR9XPSd5aDWQVsfrZmLVT3lU1cwyxLgRmXR9yrq4NBoEm9BMsfgFzTQAbJYA==", + "node_modules/@rolldown/binding-wasm32-wasi": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@rolldown/binding-wasm32-wasi/-/binding-wasm32-wasi-1.0.3.tgz", + "integrity": "sha512-JTtb8BWFynicNSoPrehsCzBtOKjZ6jhMiPFEmOiuXg1Fl8dn2KHQob+GuPSGR0dryQa1PQJbzjF3dqO/whhjLg==", + "cpu": [ + "wasm32" + ], "dev": true, "license": "MIT", + "optional": true, "dependencies": { - "@jest/console": "^29.7.0", - "@jest/types": "^29.6.3", - "@types/istanbul-lib-coverage": "^2.0.0", - "collect-v8-coverage": "^1.0.0" + "@emnapi/core": "1.10.0", + "@emnapi/runtime": "1.10.0", + "@napi-rs/wasm-runtime": "^1.1.4" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": "^20.19.0 || >=22.12.0" } }, - "node_modules/@jest/test-sequencer": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-29.7.0.tgz", - "integrity": "sha512-GQwJ5WZVrKnOJuiYiAF52UNUJXgTZx1NHjFSEB0qEMmSZKAkdMoIzw/Cj6x6NF4AvV23AUqDpFzQkN/eYCYTxw==", + "node_modules/@rolldown/binding-win32-arm64-msvc": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.0.3.tgz", + "integrity": "sha512-gEdFFEN70A/jxb2svrWsN3aDL7OUtmvlOy+6fa2jxG8K0wQ1ZbdeLGnidov6Yu5/733dI5ySfzFlQ/cb0bSz1g==", + "cpu": [ + "arm64" + ], "dev": true, "license": "MIT", - "dependencies": { - "@jest/test-result": "^29.7.0", - "graceful-fs": "^4.2.9", - "jest-haste-map": "^29.7.0", - "slash": "^3.0.0" - }, + "optional": true, + "os": [ + "win32" + ], "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": "^20.19.0 || >=22.12.0" } }, - "node_modules/@jest/transform": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-29.7.0.tgz", - "integrity": "sha512-ok/BTPFzFKVMwO5eOHRrvnBVHdRy9IrsrW1GpMaQ9MCnilNLXQKmAX8s1YXDFaai9xJpac2ySzV0YeRRECr2Vw==", + "node_modules/@rolldown/binding-win32-x64-msvc": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.0.3.tgz", + "integrity": "sha512-eXB7CHuaQdqmJcc3koCNtNPmT/bj2gc999kUFgBxG8Ac0NdgXc4rkCHhqrgrhN3zddvvvrgzj1e90SuSfmyIXA==", + "cpu": [ + "x64" + ], "dev": true, "license": "MIT", - "dependencies": { - "@babel/core": "^7.11.6", - "@jest/types": "^29.6.3", - "@jridgewell/trace-mapping": "^0.3.18", - "babel-plugin-istanbul": "^6.1.1", - "chalk": "^4.0.0", - "convert-source-map": "^2.0.0", - "fast-json-stable-stringify": "^2.1.0", - "graceful-fs": "^4.2.9", - "jest-haste-map": "^29.7.0", - "jest-regex-util": "^29.6.3", - "jest-util": "^29.7.0", - "micromatch": "^4.0.4", - "pirates": "^4.0.4", - "slash": "^3.0.0", - "write-file-atomic": "^4.0.2" - }, + "optional": true, + "os": [ + "win32" + ], "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": "^20.19.0 || >=22.12.0" } }, - "node_modules/@jest/types": { - "version": "29.6.3", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-29.6.3.tgz", - "integrity": "sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw==", + "node_modules/@rolldown/pluginutils": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.1.tgz", + "integrity": "sha512-2j9bGt5Jh8hj+vPtgzPtl72j0yRxHAyumoo6TNfAjsLB04UtpSvPbPcDcBMxz7n+9CYB0c1GxQFxYRg2jimqGw==", "dev": true, + "license": "MIT" + }, + "node_modules/@rollup/plugin-commonjs": { + "version": "22.0.2", + "resolved": "https://registry.npmjs.org/@rollup/plugin-commonjs/-/plugin-commonjs-22.0.2.tgz", + "integrity": "sha512-//NdP6iIwPbMTcazYsiBMbJW7gfmpHom33u1beiIoHDEM0Q9clvtQB1T0efvMqHeKsGohiHo97BCPCkBXdscwg==", "license": "MIT", "dependencies": { - "@jest/schemas": "^29.6.3", - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^17.0.8", - "chalk": "^4.0.0" + "@rollup/pluginutils": "^3.1.0", + "commondir": "^1.0.1", + "estree-walker": "^2.0.1", + "glob": "^7.1.6", + "is-reference": "^1.2.1", + "magic-string": "^0.25.7", + "resolve": "^1.17.0" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": ">= 12.0.0" + }, + "peerDependencies": { + "rollup": "^2.68.0" } }, - "node_modules/@jridgewell/gen-mapping": { - "version": "0.3.13", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", - "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", - "dev": true, + "node_modules/@rollup/pluginutils": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-3.1.0.tgz", + "integrity": "sha512-GksZ6pr6TpIjHm8h9lSQ8pi8BE9VeubNT0OMJ3B5uZJ8pz73NPiqOtCog/x2/QzM1ENChPKxMDhiQuRHsqc+lg==", "license": "MIT", "dependencies": { - "@jridgewell/sourcemap-codec": "^1.5.0", - "@jridgewell/trace-mapping": "^0.3.24" + "@types/estree": "0.0.39", + "estree-walker": "^1.0.1", + "picomatch": "^2.2.2" + }, + "engines": { + "node": ">= 8.0.0" + }, + "peerDependencies": { + "rollup": "^1.20.0||^2.0.0" } }, - "node_modules/@jridgewell/remapping": { - "version": "2.3.5", - "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz", - "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/gen-mapping": "^0.3.5", - "@jridgewell/trace-mapping": "^0.3.24" - } + "node_modules/@rollup/pluginutils/node_modules/estree-walker": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-1.0.1.tgz", + "integrity": "sha512-1fMXF3YP4pZZVozF8j/ZLfvnR8NSIljt56UhbZ5PeeDmmGHpgpdwQt7ITlGvYaQukCvuBRMLEiKiYC+oeIg4cg==", + "license": "MIT" }, - "node_modules/@jridgewell/resolve-uri": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", - "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.0.0" - } + "node_modules/@scarf/scarf": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@scarf/scarf/-/scarf-1.4.0.tgz", + "integrity": "sha512-xxeapPiUXdZAE3che6f3xogoJPeZgig6omHEy1rIY5WVsB3H2BHNnZH+gHG6x91SCWyQCzWGsuL2Hh3ClO5/qQ==", + "hasInstallScript": true, + "license": "Apache-2.0" }, - "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.6.0.tgz", - "integrity": "sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==", + "node_modules/@sec-ant/readable-stream": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/@sec-ant/readable-stream/-/readable-stream-0.4.1.tgz", + "integrity": "sha512-831qok9r2t8AlxLko40y2ebgSDhenenCatLVeW/uBtnHPyhHOvG0C7TvfgecV+wHzIm5KUICgzmVpWS+IMEAeg==", "dev": true, "license": "MIT" }, - "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.31", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", - "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", + "node_modules/@semantic-release/changelog": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/@semantic-release/changelog/-/changelog-6.0.3.tgz", + "integrity": "sha512-dZuR5qByyfe3Y03TpmCvAxCyTnp7r5XwtHRf/8vD9EAn4ZWbavUX8adMtXYzE86EVh0gyLA7lm5yW4IV30XUag==", "dev": true, "license": "MIT", "dependencies": { - "@jridgewell/resolve-uri": "^3.1.0", - "@jridgewell/sourcemap-codec": "^1.4.14" - } - }, - "node_modules/@jsdoc/salty": { - "version": "0.2.12", - "resolved": "https://registry.npmjs.org/@jsdoc/salty/-/salty-0.2.12.tgz", - "integrity": "sha512-TuB0x50EoAvEX/UEWITd8Mkn3WhiTjSvbTMCLj0BhsQEl5iUzjXdA0bETEVpTk+5TGTLR6QktI9H4hLviVeaAQ==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "lodash": "^4.18.1" + "@semantic-release/error": "^3.0.0", + "aggregate-error": "^3.0.0", + "fs-extra": "^11.0.0", + "lodash": "^4.17.4" }, "engines": { - "node": ">=v12.0.0" + "node": ">=14.17" + }, + "peerDependencies": { + "semantic-release": ">=18.0.0" } }, - "node_modules/@jsep-plugin/assignment": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@jsep-plugin/assignment/-/assignment-1.3.0.tgz", - "integrity": "sha512-VVgV+CXrhbMI3aSusQyclHkenWSAm95WaiKrMxRFam3JSUiIaQjoMIw2sEs/OX4XifnqeQUN4DYbJjlA8EfktQ==", + "node_modules/@semantic-release/commit-analyzer": { + "version": "13.0.1", + "resolved": "https://registry.npmjs.org/@semantic-release/commit-analyzer/-/commit-analyzer-13.0.1.tgz", + "integrity": "sha512-wdnBPHKkr9HhNhXOhZD5a2LNl91+hs8CC2vsAVYxtZH3y0dV3wKn+uZSN61rdJQZ8EGxzWB3inWocBHV9+u/CQ==", + "dev": true, "license": "MIT", + "dependencies": { + "conventional-changelog-angular": "^8.0.0", + "conventional-changelog-writer": "^8.0.0", + "conventional-commits-filter": "^5.0.0", + "conventional-commits-parser": "^6.0.0", + "debug": "^4.0.0", + "import-from-esm": "^2.0.0", + "lodash-es": "^4.17.21", + "micromatch": "^4.0.2" + }, "engines": { - "node": ">= 10.16.0" + "node": ">=20.8.1" }, "peerDependencies": { - "jsep": "^0.4.0||^1.0.0" + "semantic-release": ">=20.1.0" } }, - "node_modules/@jsep-plugin/regex": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/@jsep-plugin/regex/-/regex-1.0.4.tgz", - "integrity": "sha512-q7qL4Mgjs1vByCaTnDFcBnV9HS7GVPJX5vyVoCgZHNSC9rjwIlmbXG5sUuorR5ndfHAIlJ8pVStxvjXHbNvtUg==", + "node_modules/@semantic-release/error": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@semantic-release/error/-/error-3.0.0.tgz", + "integrity": "sha512-5hiM4Un+tpl4cKw3lV4UgzJj+SmfNIDCLLw0TepzQxz9ZGV5ixnqkzIVF+3tp0ZHgcMKE+VNGHJjEeyFG2dcSw==", + "dev": true, "license": "MIT", "engines": { - "node": ">= 10.16.0" - }, - "peerDependencies": { - "jsep": "^0.4.0||^1.0.0" + "node": ">=14.17" } }, - "node_modules/@jsep-plugin/ternary": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/@jsep-plugin/ternary/-/ternary-1.1.4.tgz", - "integrity": "sha512-ck5wiqIbqdMX6WRQztBL7ASDty9YLgJ3sSAK5ZpBzXeySvFGCzIvM6UiAI4hTZ22fEcYQVV/zhUbNscggW+Ukg==", + "node_modules/@semantic-release/git": { + "version": "10.0.1", + "resolved": "https://registry.npmjs.org/@semantic-release/git/-/git-10.0.1.tgz", + "integrity": "sha512-eWrx5KguUcU2wUPaO6sfvZI0wPafUKAMNC18aXY4EnNcrZL86dEmpNVnC9uMpGZkmZJ9EfCVJBQx4pV4EMGT1w==", + "dev": true, "license": "MIT", + "dependencies": { + "@semantic-release/error": "^3.0.0", + "aggregate-error": "^3.0.0", + "debug": "^4.0.0", + "dir-glob": "^3.0.0", + "execa": "^5.0.0", + "lodash": "^4.17.4", + "micromatch": "^4.0.0", + "p-reduce": "^2.0.0" + }, "engines": { - "node": ">= 10.16.0" + "node": ">=14.17" }, "peerDependencies": { - "jsep": "^0.4.0||^1.0.0" + "semantic-release": ">=18.0.0" } }, - "node_modules/@nodelib/fs.scandir": { - "version": "2.1.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", - "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "node_modules/@semantic-release/github": { + "version": "12.0.9", + "resolved": "https://registry.npmjs.org/@semantic-release/github/-/github-12.0.9.tgz", + "integrity": "sha512-ODIqb0V3QqndipryEEiaBxUQCFjvv7Oese5Dt4omMGa60YRNEW0Sx3K+zri0uac2Y6S9nOlMehciWIzvvRCTGQ==", + "dev": true, "license": "MIT", "dependencies": { - "@nodelib/fs.stat": "2.0.5", - "run-parallel": "^1.1.9" + "@octokit/core": "^7.0.0", + "@octokit/plugin-paginate-rest": "^14.0.0", + "@octokit/plugin-retry": "^8.0.0", + "@octokit/plugin-throttling": "^11.0.0", + "@semantic-release/error": "^4.0.0", + "aggregate-error": "^5.0.0", + "debug": "^4.3.4", + "dir-glob": "^3.0.1", + "http-proxy-agent": "^9.0.0", + "https-proxy-agent": "^9.0.0", + "issue-parser": "^7.0.0", + "lodash-es": "^4.17.21", + "mime": "^4.0.0", + "p-filter": "^4.0.0", + "tinyglobby": "^0.2.14", + "undici": "^7.0.0", + "url-join": "^5.0.0" }, "engines": { - "node": ">= 8" - } - }, - "node_modules/@nodelib/fs.stat": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", - "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", - "license": "MIT", - "engines": { - "node": ">= 8" + "node": "^22.14.0 || >= 24.10.0" + }, + "peerDependencies": { + "semantic-release": ">=24.1.0" } }, - "node_modules/@nodelib/fs.walk": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", - "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "node_modules/@semantic-release/github/node_modules/@semantic-release/error": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@semantic-release/error/-/error-4.0.0.tgz", + "integrity": "sha512-mgdxrHTLOjOddRVYIYDo0fR3/v61GNN1YGkfbrjuIKg/uMgCd+Qzo3UAXJ+woLQQpos4pl5Esuw5A7AoNlzjUQ==", + "dev": true, "license": "MIT", - "dependencies": { - "@nodelib/fs.scandir": "2.1.5", - "fastq": "^1.6.0" - }, "engines": { - "node": ">= 8" + "node": ">=18" } }, - "node_modules/@octokit/auth-token": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-6.0.0.tgz", - "integrity": "sha512-P4YJBPdPSpWTQ1NU4XYdvHvXJJDxM6YwpS0FZHRgP7YFkdVxsWcpWGy/NVqlAA7PcPCnMacXlRm1y2PFZRWL/w==", + "node_modules/@semantic-release/github/node_modules/agent-base": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-9.0.0.tgz", + "integrity": "sha512-TQf59BsZnytt8GdJKLPfUZ54g/iaUL2OWDSFCCvMOhsHduDQxO8xC4PNeyIkVcA5KwL2phPSv0douC0fgWzmnA==", "dev": true, "license": "MIT", "engines": { "node": ">= 20" } }, - "node_modules/@octokit/core": { - "version": "7.0.8", - "resolved": "https://registry.npmjs.org/@octokit/core/-/core-7.0.8.tgz", - "integrity": "sha512-L7y8eYc+AwxGr2PWI4WFt1VG4TiJ66c26BD16mXpYIlXxG0SMigM1+m4aTSlYyBr5BlQsGAlz8uDCoZN4SEMcg==", + "node_modules/@semantic-release/github/node_modules/aggregate-error": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-5.0.0.tgz", + "integrity": "sha512-gOsf2YwSlleG6IjRYG2A7k0HmBMEo6qVNk9Bp/EaLgAJT5ngH6PXbqa4ItvnEwCm/velL5jAnQgsHsWnjhGmvw==", "dev": true, "license": "MIT", "dependencies": { - "@octokit/auth-token": "^6.0.0", - "@octokit/graphql": "^9.0.5", - "@octokit/request": "^10.0.16", - "@octokit/request-error": "^7.1.2", - "@octokit/types": "^18.0.0", - "before-after-hook": "^4.0.0", - "universal-user-agent": "^7.0.0" + "clean-stack": "^5.2.0", + "indent-string": "^5.0.0" }, "engines": { - "node": ">= 20" + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/@octokit/endpoint": { - "version": "11.0.5", - "resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-11.0.5.tgz", - "integrity": "sha512-iXa654H3yFafF/ieHkukfbgWo2rmXD2ceD0ZOtrPhw1bc3FDch1d9N/TNs0FQ1/cIbwb7kspUX8jzIs8nzb9DQ==", + "node_modules/@semantic-release/github/node_modules/clean-stack": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-5.3.0.tgz", + "integrity": "sha512-9ngPTOhYGQqNVSfeJkYXHmF7AGWp4/nN5D/QqNQs3Dvxd1Kk/WpjHfNujKHYUQ/5CoGyOyFNoWSPk5afzP0QVg==", "dev": true, "license": "MIT", "dependencies": { - "@octokit/types": "^18.0.0", - "universal-user-agent": "^7.0.2" + "escape-string-regexp": "5.0.0" }, "engines": { - "node": ">= 20" + "node": ">=14.16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/@octokit/graphql": { - "version": "9.0.5", - "resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-9.0.5.tgz", - "integrity": "sha512-bt/hm03LeU6Vy7FwTrkkC9p3XGT/lBwClglMqxBSe5/q0E5CdJTXeAqEI0vlw89/LF/G6tryTIH8HirZ3prMVg==", + "node_modules/@semantic-release/github/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", - "dependencies": { - "@octokit/request": "^10.0.16", - "@octokit/types": "^18.0.0", - "universal-user-agent": "^7.0.0" - }, "engines": { - "node": ">= 20" + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/@octokit/openapi-types": { - "version": "29.0.1", - "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-29.0.1.tgz", - "integrity": "sha512-9qWOMFNxxLokERcms42rU0PTLqQmVs7g5E41TI4mCOxmpFayD1rfC7XxOL55cG9MBZLFlC31BrR37myMKardwg==", - "dev": true, - "license": "MIT" - }, - "node_modules/@octokit/plugin-paginate-rest": { - "version": "14.0.0", - "resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-14.0.0.tgz", - "integrity": "sha512-fNVRE7ufJiAA3XUrha2omTA39M6IXIc6GIZLvlbsm8QOQCYvpq/LkMNGyFlB1d8hTDzsAXa3OKtybdMAYsV/fw==", + "node_modules/@semantic-release/github/node_modules/https-proxy-agent": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-9.1.0.tgz", + "integrity": "sha512-ag87y7cJJ9/3+GxFr8Oy4O5faDsGRGnBGsJj/YjOSsSx/5eadKLYTMPlzuR6obgoCDDm0abAAZitXXQkMOPSpA==", "dev": true, "license": "MIT", "dependencies": { - "@octokit/types": "^16.0.0" + "agent-base": "9.0.0", + "debug": "^4.3.4", + "proxy-agent-negotiate": "1.1.0" }, "engines": { "node": ">= 20" - }, - "peerDependencies": { - "@octokit/core": ">=6" } }, - "node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/openapi-types": { - "version": "27.0.0", - "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-27.0.0.tgz", - "integrity": "sha512-whrdktVs1h6gtR+09+QsNk2+FO+49j6ga1c55YZudfEG+oKJVvJLQi3zkOm5JjiUXAagWK2tI2kTGKJ2Ys7MGA==", + "node_modules/@semantic-release/github/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, - "license": "MIT" + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } }, - "node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types": { - "version": "16.0.0", - "resolved": "https://registry.npmjs.org/@octokit/types/-/types-16.0.0.tgz", - "integrity": "sha512-sKq+9r1Mm4efXW1FCk7hFSeJo4QKreL/tTbR0rz/qx/r1Oa2VV83LTA/H/MuCOX7uCIJmQVRKBcbmWoySjAnSg==", + "node_modules/@semantic-release/github/node_modules/undici": { + "version": "7.29.1", + "resolved": "https://registry.npmjs.org/undici/-/undici-7.29.1.tgz", + "integrity": "sha512-RYONW2MeafgYlkVOKYKkA/Ag7BmXqgIWCa8t1m0JcxrQg9pI9lEqRhAOruOBCbAohOa/gkCF+iPi9hrgvTzu6Q==", "dev": true, "license": "MIT", - "dependencies": { - "@octokit/openapi-types": "^27.0.0" + "engines": { + "node": ">=20.18.1" } }, - "node_modules/@octokit/plugin-retry": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/@octokit/plugin-retry/-/plugin-retry-8.1.1.tgz", - "integrity": "sha512-VCVvZ/R1+u3WuiBWpNavZ0mY4aaJNAsENrpBP9aLSR2QyOpQgd7DhM5j4AW7z4MQpnJYgwBPf0XqPQoNBRdQwg==", + "node_modules/@semantic-release/npm": { + "version": "13.1.5", + "resolved": "https://registry.npmjs.org/@semantic-release/npm/-/npm-13.1.5.tgz", + "integrity": "sha512-Hq5UxzoatN3LHiq2rTsWS54nCdqJHlsssGERCo8WlvdfFA9LoN0vO+OuKVSjtNapIc/S8C2LBj206wKLHg62mg==", "dev": true, "license": "MIT", "dependencies": { - "@octokit/request-error": "^7.1.1", - "@octokit/types": "^17.0.0", - "bottleneck": "^2.15.3" + "@actions/core": "^3.0.0", + "@semantic-release/error": "^4.0.0", + "aggregate-error": "^5.0.0", + "env-ci": "^11.2.0", + "execa": "^9.0.0", + "fs-extra": "^11.0.0", + "lodash-es": "^4.17.21", + "nerf-dart": "^1.0.0", + "normalize-url": "^9.0.0", + "npm": "^11.6.2", + "rc": "^1.2.8", + "read-pkg": "^10.0.0", + "registry-auth-token": "^5.0.0", + "semver": "^7.1.2", + "tempy": "^3.0.0" }, "engines": { - "node": ">= 20" + "node": "^22.14.0 || >= 24.10.0" }, "peerDependencies": { - "@octokit/core": ">=7" + "semantic-release": ">=20.1.0" } }, - "node_modules/@octokit/plugin-retry/node_modules/@octokit/openapi-types": { - "version": "28.0.0", - "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-28.0.0.tgz", - "integrity": "sha512-0rFyLuyHvIj6uuZWuDslxkowFYdPXoNIkeAv4b27dzm2Tf4vGWXnPsMcxs7d65kLdMERgP3wc1AEPlqMz8e1cQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/@octokit/plugin-retry/node_modules/@octokit/types": { - "version": "17.0.0", - "resolved": "https://registry.npmjs.org/@octokit/types/-/types-17.0.0.tgz", - "integrity": "sha512-ByP1v7YL5SMveFPP7+sj0/ZuWCOOg/Chs4NafOMpq6WNIM/hdGY0S7C0TCGDBWu1aGmOxmUIhMx3cO+IdwYZ1Q==", + "node_modules/@semantic-release/npm/node_modules/@semantic-release/error": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@semantic-release/error/-/error-4.0.0.tgz", + "integrity": "sha512-mgdxrHTLOjOddRVYIYDo0fR3/v61GNN1YGkfbrjuIKg/uMgCd+Qzo3UAXJ+woLQQpos4pl5Esuw5A7AoNlzjUQ==", "dev": true, "license": "MIT", - "dependencies": { - "@octokit/openapi-types": "^28.0.0" + "engines": { + "node": ">=18" } }, - "node_modules/@octokit/plugin-throttling": { - "version": "11.0.5", - "resolved": "https://registry.npmjs.org/@octokit/plugin-throttling/-/plugin-throttling-11.0.5.tgz", - "integrity": "sha512-LIdrkrUv+DWbKeg/49rGuFJ3SU0d3hUS+B4MhNZLepBoNUFXms8Ic9edJjrlx+zycqJHjrMRudVpVb/bAXM2Lw==", + "node_modules/@semantic-release/npm/node_modules/aggregate-error": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-5.0.0.tgz", + "integrity": "sha512-gOsf2YwSlleG6IjRYG2A7k0HmBMEo6qVNk9Bp/EaLgAJT5ngH6PXbqa4ItvnEwCm/velL5jAnQgsHsWnjhGmvw==", "dev": true, "license": "MIT", "dependencies": { - "@octokit/types": "^17.0.0", - "bottleneck": "^2.15.3" + "clean-stack": "^5.2.0", + "indent-string": "^5.0.0" }, "engines": { - "node": ">= 20" + "node": ">=18" }, - "peerDependencies": { - "@octokit/core": "^7.0.0" + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/@octokit/plugin-throttling/node_modules/@octokit/openapi-types": { - "version": "28.0.0", - "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-28.0.0.tgz", - "integrity": "sha512-0rFyLuyHvIj6uuZWuDslxkowFYdPXoNIkeAv4b27dzm2Tf4vGWXnPsMcxs7d65kLdMERgP3wc1AEPlqMz8e1cQ==", + "node_modules/@semantic-release/npm/node_modules/clean-stack": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-5.3.0.tgz", + "integrity": "sha512-9ngPTOhYGQqNVSfeJkYXHmF7AGWp4/nN5D/QqNQs3Dvxd1Kk/WpjHfNujKHYUQ/5CoGyOyFNoWSPk5afzP0QVg==", "dev": true, - "license": "MIT" + "license": "MIT", + "dependencies": { + "escape-string-regexp": "5.0.0" + }, + "engines": { + "node": ">=14.16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } }, - "node_modules/@octokit/plugin-throttling/node_modules/@octokit/types": { - "version": "17.0.0", - "resolved": "https://registry.npmjs.org/@octokit/types/-/types-17.0.0.tgz", - "integrity": "sha512-ByP1v7YL5SMveFPP7+sj0/ZuWCOOg/Chs4NafOMpq6WNIM/hdGY0S7C0TCGDBWu1aGmOxmUIhMx3cO+IdwYZ1Q==", + "node_modules/@semantic-release/npm/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", - "dependencies": { - "@octokit/openapi-types": "^28.0.0" + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/@octokit/request": { - "version": "10.0.16", - "resolved": "https://registry.npmjs.org/@octokit/request/-/request-10.0.16.tgz", - "integrity": "sha512-A0zWGjHzISIb+9ccG8s0dq7LKO5zVpJLRICjgUb+sJxEWqn8RUHB1rD3AE51+PECvXHIxqZ1VVvs4fHTSD9nUQ==", + "node_modules/@semantic-release/npm/node_modules/execa": { + "version": "9.6.1", + "resolved": "https://registry.npmjs.org/execa/-/execa-9.6.1.tgz", + "integrity": "sha512-9Be3ZoN4LmYR90tUoVu2te2BsbzHfhJyfEiAVfz7N5/zv+jduIfLrV2xdQXOHbaD6KgpGdO9PRPM1Y4Q9QkPkA==", "dev": true, "license": "MIT", "dependencies": { - "@octokit/endpoint": "^11.0.5", - "@octokit/request-error": "^7.1.2", - "@octokit/types": "^18.0.0", - "content-type": "^3.0.0", - "json-with-bigint": "^3.5.12", - "universal-user-agent": "^7.0.2" + "@sindresorhus/merge-streams": "^4.0.0", + "cross-spawn": "^7.0.6", + "figures": "^6.1.0", + "get-stream": "^9.0.0", + "human-signals": "^8.0.1", + "is-plain-obj": "^4.1.0", + "is-stream": "^4.0.1", + "npm-run-path": "^6.0.0", + "pretty-ms": "^9.2.0", + "signal-exit": "^4.1.0", + "strip-final-newline": "^4.0.0", + "yoctocolors": "^2.1.1" }, "engines": { - "node": ">= 20" + "node": "^18.19.0 || >=20.5.0" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" } }, - "node_modules/@octokit/request-error": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-7.1.2.tgz", - "integrity": "sha512-XZRuT3xZ84D3gYErI1DZvhJ33dCWVV6uzBtWkaBB4TvA/L6eOeTZodxLFVB44bBEEo3vEx7y00UfX1tBLrtLRg==", + "node_modules/@semantic-release/npm/node_modules/get-stream": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-9.0.1.tgz", + "integrity": "sha512-kVCxPF3vQM/N0B1PmoqVUqgHP+EeVjmZSQn+1oCRPxd2P21P2F19lIgbR3HBosbB1PUhOAoctJnfEn2GbN2eZA==", "dev": true, "license": "MIT", "dependencies": { - "@octokit/types": "^18.0.0" + "@sec-ant/readable-stream": "^0.4.1", + "is-stream": "^4.0.1" }, "engines": { - "node": ">= 20" + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/@octokit/types": { - "version": "18.0.0", - "resolved": "https://registry.npmjs.org/@octokit/types/-/types-18.0.0.tgz", - "integrity": "sha512-l6bAF43PNxkJp6g+W4PjoUSSkxHomXw2nOum5CTftJz1NlV3vu93NImgOYtLf6CbBUb5j+fiuzW0PPQ5JTSvZA==", + "node_modules/@semantic-release/npm/node_modules/human-signals": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-8.0.1.tgz", + "integrity": "sha512-eKCa6bwnJhvxj14kZk5NCPc6Hb6BdsU9DZcOnmQKSnO1VKrfV0zCvtttPZUsBvjmNDn8rpcJfpwSYnHBjc95MQ==", "dev": true, - "license": "MIT", - "dependencies": { - "@octokit/openapi-types": "^29.0.1" + "license": "Apache-2.0", + "engines": { + "node": ">=18.18.0" } }, - "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==", + "node_modules/@semantic-release/npm/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, "license": "MIT", "engines": { - "node": "^14.18.0 || >=16.0.0" + "node": ">=12" }, "funding": { - "url": "https://opencollective.com/pkgr" + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/@pnpm/config.env-replace": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@pnpm/config.env-replace/-/config.env-replace-1.1.0.tgz", - "integrity": "sha512-htyl8TWnKL7K/ESFa1oW2UB5lVDxuF5DpM7tBi6Hu2LNL3mWkIzNLG6N4zoCUP1lCKNxWy/3iu8mS8MvToGd6w==", + "node_modules/@semantic-release/npm/node_modules/is-stream": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-4.0.1.tgz", + "integrity": "sha512-Dnz92NInDqYckGEUJv689RbRiTSEHCQ7wOVeALbkOz999YpqT46yMRIGtSNl2iCL1waAZSx40+h59NV/EwzV/A==", "dev": true, "license": "MIT", "engines": { - "node": ">=12.22.0" + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/@pnpm/network.ca-file": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@pnpm/network.ca-file/-/network.ca-file-1.0.2.tgz", - "integrity": "sha512-YcPQ8a0jwYU9bTdJDpXjMi7Brhkr1mXsXrUJvjqM2mQDgkRiz8jFaQGOdaLxgjtUfQgZhKy/O3cG/YwmgKaxLA==", + "node_modules/@semantic-release/npm/node_modules/npm-run-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-6.0.0.tgz", + "integrity": "sha512-9qny7Z9DsQU8Ou39ERsPU4OZQlSTP47ShQzuKZ6PRXpYLtIFgl/DEBYEXKlvcEa+9tHVcK8CF81Y2V72qaZhWA==", "dev": true, "license": "MIT", "dependencies": { - "graceful-fs": "4.2.10" + "path-key": "^4.0.0", + "unicorn-magic": "^0.3.0" }, "engines": { - "node": ">=12.22.0" + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/@pnpm/network.ca-file/node_modules/graceful-fs": { - "version": "4.2.10", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz", - "integrity": "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==", - "dev": true, - "license": "ISC" - }, - "node_modules/@pnpm/npm-conf": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/@pnpm/npm-conf/-/npm-conf-3.0.3.tgz", - "integrity": "sha512-//0sR/cow/s4ICQaYoAobOl4aU8cjU6x/V24V7XkKotb9+O+3zySIYp146vpaobYHnxa4pZX8NkV54Z5AwbDKA==", + "node_modules/@semantic-release/npm/node_modules/path-key": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-4.0.0.tgz", + "integrity": "sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==", "dev": true, "license": "MIT", - "dependencies": { - "@pnpm/config.env-replace": "^1.1.0", - "@pnpm/network.ca-file": "^1.0.1", - "config-chain": "^1.1.11" - }, "engines": { "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/@rollup/plugin-commonjs": { - "version": "22.0.2", - "resolved": "https://registry.npmjs.org/@rollup/plugin-commonjs/-/plugin-commonjs-22.0.2.tgz", - "integrity": "sha512-//NdP6iIwPbMTcazYsiBMbJW7gfmpHom33u1beiIoHDEM0Q9clvtQB1T0efvMqHeKsGohiHo97BCPCkBXdscwg==", - "license": "MIT", - "dependencies": { - "@rollup/pluginutils": "^3.1.0", - "commondir": "^1.0.1", - "estree-walker": "^2.0.1", - "glob": "^7.1.6", - "is-reference": "^1.2.1", - "magic-string": "^0.25.7", - "resolve": "^1.17.0" - }, + "node_modules/@semantic-release/npm/node_modules/signal-exit": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", + "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", + "dev": true, + "license": "ISC", "engines": { - "node": ">= 12.0.0" + "node": ">=14" }, - "peerDependencies": { - "rollup": "^2.68.0" + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/@rollup/pluginutils": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-3.1.0.tgz", - "integrity": "sha512-GksZ6pr6TpIjHm8h9lSQ8pi8BE9VeubNT0OMJ3B5uZJ8pz73NPiqOtCog/x2/QzM1ENChPKxMDhiQuRHsqc+lg==", + "node_modules/@semantic-release/npm/node_modules/strip-final-newline": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-4.0.0.tgz", + "integrity": "sha512-aulFJcD6YK8V1G7iRB5tigAP4TsHBZZrOV8pjV++zdUwmeV8uzbY7yn6h9MswN62adStNZFuCIx4haBnRuMDaw==", + "dev": true, "license": "MIT", - "dependencies": { - "@types/estree": "0.0.39", - "estree-walker": "^1.0.1", - "picomatch": "^2.2.2" - }, "engines": { - "node": ">= 8.0.0" + "node": ">=18" }, - "peerDependencies": { - "rollup": "^1.20.0||^2.0.0" + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/@rollup/pluginutils/node_modules/estree-walker": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-1.0.1.tgz", - "integrity": "sha512-1fMXF3YP4pZZVozF8j/ZLfvnR8NSIljt56UhbZ5PeeDmmGHpgpdwQt7ITlGvYaQukCvuBRMLEiKiYC+oeIg4cg==", - "license": "MIT" - }, - "node_modules/@scarf/scarf": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/@scarf/scarf/-/scarf-1.4.0.tgz", - "integrity": "sha512-xxeapPiUXdZAE3che6f3xogoJPeZgig6omHEy1rIY5WVsB3H2BHNnZH+gHG6x91SCWyQCzWGsuL2Hh3ClO5/qQ==", - "hasInstallScript": true, - "license": "Apache-2.0" - }, - "node_modules/@sec-ant/readable-stream": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/@sec-ant/readable-stream/-/readable-stream-0.4.1.tgz", - "integrity": "sha512-831qok9r2t8AlxLko40y2ebgSDhenenCatLVeW/uBtnHPyhHOvG0C7TvfgecV+wHzIm5KUICgzmVpWS+IMEAeg==", - "dev": true, - "license": "MIT" - }, - "node_modules/@semantic-release/changelog": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/@semantic-release/changelog/-/changelog-6.0.3.tgz", - "integrity": "sha512-dZuR5qByyfe3Y03TpmCvAxCyTnp7r5XwtHRf/8vD9EAn4ZWbavUX8adMtXYzE86EVh0gyLA7lm5yW4IV30XUag==", + "node_modules/@semantic-release/npm/node_modules/unicorn-magic": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/unicorn-magic/-/unicorn-magic-0.3.0.tgz", + "integrity": "sha512-+QBBXBCvifc56fsbuxZQ6Sic3wqqc3WWaqxs58gvJrcOuN83HGTCwz3oS5phzU9LthRNE9VrJCFCLUgHeeFnfA==", "dev": true, "license": "MIT", - "dependencies": { - "@semantic-release/error": "^3.0.0", - "aggregate-error": "^3.0.0", - "fs-extra": "^11.0.0", - "lodash": "^4.17.4" - }, "engines": { - "node": ">=14.17" + "node": ">=18" }, - "peerDependencies": { - "semantic-release": ">=18.0.0" + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/@semantic-release/commit-analyzer": { - "version": "13.0.1", - "resolved": "https://registry.npmjs.org/@semantic-release/commit-analyzer/-/commit-analyzer-13.0.1.tgz", - "integrity": "sha512-wdnBPHKkr9HhNhXOhZD5a2LNl91+hs8CC2vsAVYxtZH3y0dV3wKn+uZSN61rdJQZ8EGxzWB3inWocBHV9+u/CQ==", - "dev": true, - "license": "MIT", + "node_modules/@semantic-release/release-notes-generator": { + "version": "14.1.1", + "resolved": "https://registry.npmjs.org/@semantic-release/release-notes-generator/-/release-notes-generator-14.1.1.tgz", + "integrity": "sha512-Pbd2e2XRMUD0OxehHpgd5/YghsE76cddkRHSoDvKLK+OCy4Ewxn49rWR631MEUU01lgwF/uyVXvbnVuu6+Z6VA==", + "dev": true, + "license": "MIT", "dependencies": { "conventional-changelog-angular": "^8.0.0", "conventional-changelog-writer": "^8.0.0", @@ -1731,7 +1614,7 @@ "debug": "^4.0.0", "import-from-esm": "^2.0.0", "lodash-es": "^4.17.21", - "micromatch": "^4.0.2" + "read-package-up": "^11.0.0" }, "engines": { "node": ">=20.8.1" @@ -1740,100 +1623,69 @@ "semantic-release": ">=20.1.0" } }, - "node_modules/@semantic-release/error": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@semantic-release/error/-/error-3.0.0.tgz", - "integrity": "sha512-5hiM4Un+tpl4cKw3lV4UgzJj+SmfNIDCLLw0TepzQxz9ZGV5ixnqkzIVF+3tp0ZHgcMKE+VNGHJjEeyFG2dcSw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=14.17" - } - }, - "node_modules/@semantic-release/git": { - "version": "10.0.1", - "resolved": "https://registry.npmjs.org/@semantic-release/git/-/git-10.0.1.tgz", - "integrity": "sha512-eWrx5KguUcU2wUPaO6sfvZI0wPafUKAMNC18aXY4EnNcrZL86dEmpNVnC9uMpGZkmZJ9EfCVJBQx4pV4EMGT1w==", + "node_modules/@semantic-release/release-notes-generator/node_modules/hosted-git-info": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-7.0.2.tgz", + "integrity": "sha512-puUZAUKT5m8Zzvs72XWy3HtvVbTWljRE66cP60bxJzAqf2DgICo7lYTY2IHUmLnNpjYvw5bvmoHvPc0QO2a62w==", "dev": true, - "license": "MIT", + "license": "ISC", "dependencies": { - "@semantic-release/error": "^3.0.0", - "aggregate-error": "^3.0.0", - "debug": "^4.0.0", - "dir-glob": "^3.0.0", - "execa": "^5.0.0", - "lodash": "^4.17.4", - "micromatch": "^4.0.0", - "p-reduce": "^2.0.0" + "lru-cache": "^10.0.1" }, "engines": { - "node": ">=14.17" - }, - "peerDependencies": { - "semantic-release": ">=18.0.0" + "node": "^16.14.0 || >=18.0.0" } }, - "node_modules/@semantic-release/github": { - "version": "12.0.9", - "resolved": "https://registry.npmjs.org/@semantic-release/github/-/github-12.0.9.tgz", - "integrity": "sha512-ODIqb0V3QqndipryEEiaBxUQCFjvv7Oese5Dt4omMGa60YRNEW0Sx3K+zri0uac2Y6S9nOlMehciWIzvvRCTGQ==", + "node_modules/@semantic-release/release-notes-generator/node_modules/lru-cache": { + "version": "10.4.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", + "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==", "dev": true, - "license": "MIT", + "license": "ISC" + }, + "node_modules/@semantic-release/release-notes-generator/node_modules/normalize-package-data": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-6.0.2.tgz", + "integrity": "sha512-V6gygoYb/5EmNI+MEGrWkC+e6+Rr7mTmfHrxDbLzxQogBkgzo76rkok0Am6thgSF7Mv2nLOajAJj5vDJZEFn7g==", + "dev": true, + "license": "BSD-2-Clause", "dependencies": { - "@octokit/core": "^7.0.0", - "@octokit/plugin-paginate-rest": "^14.0.0", - "@octokit/plugin-retry": "^8.0.0", - "@octokit/plugin-throttling": "^11.0.0", - "@semantic-release/error": "^4.0.0", - "aggregate-error": "^5.0.0", - "debug": "^4.3.4", - "dir-glob": "^3.0.1", - "http-proxy-agent": "^9.0.0", - "https-proxy-agent": "^9.0.0", - "issue-parser": "^7.0.0", - "lodash-es": "^4.17.21", - "mime": "^4.0.0", - "p-filter": "^4.0.0", - "tinyglobby": "^0.2.14", - "undici": "^7.0.0", - "url-join": "^5.0.0" + "hosted-git-info": "^7.0.0", + "semver": "^7.3.5", + "validate-npm-package-license": "^3.0.4" }, "engines": { - "node": "^22.14.0 || >= 24.10.0" - }, - "peerDependencies": { - "semantic-release": ">=24.1.0" + "node": "^16.14.0 || >=18.0.0" } }, - "node_modules/@semantic-release/github/node_modules/@semantic-release/error": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@semantic-release/error/-/error-4.0.0.tgz", - "integrity": "sha512-mgdxrHTLOjOddRVYIYDo0fR3/v61GNN1YGkfbrjuIKg/uMgCd+Qzo3UAXJ+woLQQpos4pl5Esuw5A7AoNlzjUQ==", + "node_modules/@semantic-release/release-notes-generator/node_modules/parse-json": { + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-8.3.0.tgz", + "integrity": "sha512-ybiGyvspI+fAoRQbIPRddCcSTV9/LsJbf0e/S85VLowVGzRmokfneg2kwVW/KU5rOXrPSbF1qAKPMgNTqqROQQ==", "dev": true, "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.26.2", + "index-to-position": "^1.1.0", + "type-fest": "^4.39.1" + }, "engines": { "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/@semantic-release/github/node_modules/agent-base": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-9.0.0.tgz", - "integrity": "sha512-TQf59BsZnytt8GdJKLPfUZ54g/iaUL2OWDSFCCvMOhsHduDQxO8xC4PNeyIkVcA5KwL2phPSv0douC0fgWzmnA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 20" - } - }, - "node_modules/@semantic-release/github/node_modules/aggregate-error": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-5.0.0.tgz", - "integrity": "sha512-gOsf2YwSlleG6IjRYG2A7k0HmBMEo6qVNk9Bp/EaLgAJT5ngH6PXbqa4ItvnEwCm/velL5jAnQgsHsWnjhGmvw==", + "node_modules/@semantic-release/release-notes-generator/node_modules/read-package-up": { + "version": "11.0.0", + "resolved": "https://registry.npmjs.org/read-package-up/-/read-package-up-11.0.0.tgz", + "integrity": "sha512-MbgfoNPANMdb4oRBNg5eqLbB2t2r+o5Ua1pNt8BqGp4I0FJZhuVSOj3PaBPni4azWuSzEdNn2evevzVmEk1ohQ==", "dev": true, "license": "MIT", "dependencies": { - "clean-stack": "^5.2.0", - "indent-string": "^5.0.0" + "find-up-simple": "^1.0.0", + "read-pkg": "^9.0.0", + "type-fest": "^4.6.0" }, "engines": { "node": ">=18" @@ -1842,123 +1694,84 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/@semantic-release/github/node_modules/clean-stack": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-5.3.0.tgz", - "integrity": "sha512-9ngPTOhYGQqNVSfeJkYXHmF7AGWp4/nN5D/QqNQs3Dvxd1Kk/WpjHfNujKHYUQ/5CoGyOyFNoWSPk5afzP0QVg==", + "node_modules/@semantic-release/release-notes-generator/node_modules/read-pkg": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-9.0.1.tgz", + "integrity": "sha512-9viLL4/n1BJUCT1NXVTdS1jtm80yDEgR5T4yCelII49Mbj0v1rZdKqj7zCiYdbB0CuCgdrvHcNogAKTFPBocFA==", "dev": true, "license": "MIT", "dependencies": { - "escape-string-regexp": "5.0.0" + "@types/normalize-package-data": "^2.4.3", + "normalize-package-data": "^6.0.0", + "parse-json": "^8.0.0", + "type-fest": "^4.6.0", + "unicorn-magic": "^0.1.0" }, "engines": { - "node": ">=14.16" + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/@semantic-release/github/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==", + "node_modules/@semantic-release/release-notes-generator/node_modules/type-fest": { + "version": "4.41.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-4.41.0.tgz", + "integrity": "sha512-TeTSQ6H5YHvpqVwBRcnLDCBnDOHWYu7IvGbHT6N8AOymcr9PJGjc1GTtiWZTYg0NCgYwvnYWEkVChQAr9bjfwA==", "dev": true, - "license": "MIT", + "license": "(MIT OR CC0-1.0)", "engines": { - "node": ">=12" + "node": ">=16" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/@semantic-release/github/node_modules/https-proxy-agent": { - "version": "9.1.0", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-9.1.0.tgz", - "integrity": "sha512-ag87y7cJJ9/3+GxFr8Oy4O5faDsGRGnBGsJj/YjOSsSx/5eadKLYTMPlzuR6obgoCDDm0abAAZitXXQkMOPSpA==", - "dev": true, - "license": "MIT", - "dependencies": { - "agent-base": "9.0.0", - "debug": "^4.3.4", - "proxy-agent-negotiate": "1.1.0" - }, - "engines": { - "node": ">= 20" - } - }, - "node_modules/@semantic-release/github/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==", + "node_modules/@semantic-release/release-notes-generator/node_modules/unicorn-magic": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/unicorn-magic/-/unicorn-magic-0.1.0.tgz", + "integrity": "sha512-lRfVq8fE8gz6QMBuDM6a+LO3IAzTi05H6gCVaUpir2E1Rwpo4ZUog45KpNXKC/Mn3Yb9UDuHumeFTo9iV/D9FQ==", "dev": true, "license": "MIT", "engines": { - "node": ">=12" + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/@semantic-release/github/node_modules/undici": { - "version": "7.29.1", - "resolved": "https://registry.npmjs.org/undici/-/undici-7.29.1.tgz", - "integrity": "sha512-RYONW2MeafgYlkVOKYKkA/Ag7BmXqgIWCa8t1m0JcxrQg9pI9lEqRhAOruOBCbAohOa/gkCF+iPi9hrgvTzu6Q==", + "node_modules/@simple-libs/stream-utils": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@simple-libs/stream-utils/-/stream-utils-1.2.0.tgz", + "integrity": "sha512-KxXvfapcixpz6rVEB6HPjOUZT22yN6v0vI0urQSk1L8MlEWPDFCZkhw2xmkyoTGYeFw7tWTZd7e3lVzRZRN/EA==", "dev": true, "license": "MIT", "engines": { - "node": ">=20.18.1" + "node": ">=18" + }, + "funding": { + "url": "https://ko-fi.com/dangreen" } }, - "node_modules/@semantic-release/npm": { - "version": "13.1.5", - "resolved": "https://registry.npmjs.org/@semantic-release/npm/-/npm-13.1.5.tgz", - "integrity": "sha512-Hq5UxzoatN3LHiq2rTsWS54nCdqJHlsssGERCo8WlvdfFA9LoN0vO+OuKVSjtNapIc/S8C2LBj206wKLHg62mg==", + "node_modules/@sindresorhus/is": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-4.6.0.tgz", + "integrity": "sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw==", "dev": true, "license": "MIT", - "dependencies": { - "@actions/core": "^3.0.0", - "@semantic-release/error": "^4.0.0", - "aggregate-error": "^5.0.0", - "env-ci": "^11.2.0", - "execa": "^9.0.0", - "fs-extra": "^11.0.0", - "lodash-es": "^4.17.21", - "nerf-dart": "^1.0.0", - "normalize-url": "^9.0.0", - "npm": "^11.6.2", - "rc": "^1.2.8", - "read-pkg": "^10.0.0", - "registry-auth-token": "^5.0.0", - "semver": "^7.1.2", - "tempy": "^3.0.0" - }, "engines": { - "node": "^22.14.0 || >= 24.10.0" + "node": ">=10" }, - "peerDependencies": { - "semantic-release": ">=20.1.0" + "funding": { + "url": "https://github.com/sindresorhus/is?sponsor=1" } }, - "node_modules/@semantic-release/npm/node_modules/@semantic-release/error": { + "node_modules/@sindresorhus/merge-streams": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@semantic-release/error/-/error-4.0.0.tgz", - "integrity": "sha512-mgdxrHTLOjOddRVYIYDo0fR3/v61GNN1YGkfbrjuIKg/uMgCd+Qzo3UAXJ+woLQQpos4pl5Esuw5A7AoNlzjUQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18" - } - }, - "node_modules/@semantic-release/npm/node_modules/aggregate-error": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-5.0.0.tgz", - "integrity": "sha512-gOsf2YwSlleG6IjRYG2A7k0HmBMEo6qVNk9Bp/EaLgAJT5ngH6PXbqa4ItvnEwCm/velL5jAnQgsHsWnjhGmvw==", + "resolved": "https://registry.npmjs.org/@sindresorhus/merge-streams/-/merge-streams-4.0.0.tgz", + "integrity": "sha512-tlqY9xq5ukxTUZBmoOp+m61cqwQD5pHJtFY3Mn8CA8ps6yghLH/Hw8UPdqg4OLmFW3IFlcXnQNmo/dh8HzXYIQ==", "dev": true, "license": "MIT", - "dependencies": { - "clean-stack": "^5.2.0", - "indent-string": "^5.0.0" - }, "engines": { "node": ">=18" }, @@ -1966,2228 +1779,1237 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/@semantic-release/npm/node_modules/clean-stack": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-5.3.0.tgz", - "integrity": "sha512-9ngPTOhYGQqNVSfeJkYXHmF7AGWp4/nN5D/QqNQs3Dvxd1Kk/WpjHfNujKHYUQ/5CoGyOyFNoWSPk5afzP0QVg==", + "node_modules/@standard-schema/spec": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@standard-schema/spec/-/spec-1.1.0.tgz", + "integrity": "sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==", "dev": true, - "license": "MIT", + "license": "MIT" + }, + "node_modules/@stoplight/better-ajv-errors": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@stoplight/better-ajv-errors/-/better-ajv-errors-1.0.3.tgz", + "integrity": "sha512-0p9uXkuB22qGdNfy3VeEhxkU5uwvp/KrBTAbrLBURv6ilxIVwanKwjMc41lQfIVgPGcOkmLbTolfFrSsueu7zA==", + "license": "Apache-2.0", "dependencies": { - "escape-string-regexp": "5.0.0" + "jsonpointer": "^5.0.0", + "leven": "^3.1.0" }, "engines": { - "node": ">=14.16" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@semantic-release/npm/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" + "node": "^12.20 || >= 14.13" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "peerDependencies": { + "ajv": ">=8" } }, - "node_modules/@semantic-release/npm/node_modules/execa": { - "version": "9.6.1", - "resolved": "https://registry.npmjs.org/execa/-/execa-9.6.1.tgz", - "integrity": "sha512-9Be3ZoN4LmYR90tUoVu2te2BsbzHfhJyfEiAVfz7N5/zv+jduIfLrV2xdQXOHbaD6KgpGdO9PRPM1Y4Q9QkPkA==", - "dev": true, - "license": "MIT", + "node_modules/@stoplight/json": { + "version": "3.21.7", + "resolved": "https://registry.npmjs.org/@stoplight/json/-/json-3.21.7.tgz", + "integrity": "sha512-xcJXgKFqv/uCEgtGlPxy3tPA+4I+ZI4vAuMJ885+ThkTHFVkC+0Fm58lA9NlsyjnkpxFh4YiQWpH+KefHdbA0A==", + "license": "Apache-2.0", "dependencies": { - "@sindresorhus/merge-streams": "^4.0.0", - "cross-spawn": "^7.0.6", - "figures": "^6.1.0", - "get-stream": "^9.0.0", - "human-signals": "^8.0.1", - "is-plain-obj": "^4.1.0", - "is-stream": "^4.0.1", - "npm-run-path": "^6.0.0", - "pretty-ms": "^9.2.0", - "signal-exit": "^4.1.0", - "strip-final-newline": "^4.0.0", - "yoctocolors": "^2.1.1" + "@stoplight/ordered-object-literal": "^1.0.3", + "@stoplight/path": "^1.3.2", + "@stoplight/types": "^13.6.0", + "jsonc-parser": "~2.2.1", + "lodash": "^4.17.21", + "safe-stable-stringify": "^1.1" }, "engines": { - "node": "^18.19.0 || >=20.5.0" - }, - "funding": { - "url": "https://github.com/sindresorhus/execa?sponsor=1" + "node": ">=8.3.0" } }, - "node_modules/@semantic-release/npm/node_modules/get-stream": { - "version": "9.0.1", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-9.0.1.tgz", - "integrity": "sha512-kVCxPF3vQM/N0B1PmoqVUqgHP+EeVjmZSQn+1oCRPxd2P21P2F19lIgbR3HBosbB1PUhOAoctJnfEn2GbN2eZA==", - "dev": true, - "license": "MIT", + "node_modules/@stoplight/json-ref-readers": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/@stoplight/json-ref-readers/-/json-ref-readers-1.2.2.tgz", + "integrity": "sha512-nty0tHUq2f1IKuFYsLM4CXLZGHdMn+X/IwEUIpeSOXt0QjMUbL0Em57iJUDzz+2MkWG83smIigNZ3fauGjqgdQ==", + "license": "Apache-2.0", "dependencies": { - "@sec-ant/readable-stream": "^0.4.1", - "is-stream": "^4.0.1" + "node-fetch": "^2.6.0", + "tslib": "^1.14.1" }, "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=8.3.0" } }, - "node_modules/@semantic-release/npm/node_modules/human-signals": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-8.0.1.tgz", - "integrity": "sha512-eKCa6bwnJhvxj14kZk5NCPc6Hb6BdsU9DZcOnmQKSnO1VKrfV0zCvtttPZUsBvjmNDn8rpcJfpwSYnHBjc95MQ==", - "dev": true, + "node_modules/@stoplight/json-ref-readers/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "license": "0BSD" + }, + "node_modules/@stoplight/json-ref-resolver": { + "version": "3.1.6", + "resolved": "https://registry.npmjs.org/@stoplight/json-ref-resolver/-/json-ref-resolver-3.1.6.tgz", + "integrity": "sha512-YNcWv3R3n3U6iQYBsFOiWSuRGE5su1tJSiX6pAPRVk7dP0L7lqCteXGzuVRQ0gMZqUl8v1P0+fAKxF6PLo9B5A==", "license": "Apache-2.0", + "dependencies": { + "@stoplight/json": "^3.21.0", + "@stoplight/path": "^1.3.2", + "@stoplight/types": "^12.3.0 || ^13.0.0", + "@types/urijs": "^1.19.19", + "dependency-graph": "~0.11.0", + "fast-memoize": "^2.5.2", + "immer": "^9.0.6", + "lodash": "^4.17.21", + "tslib": "^2.6.0", + "urijs": "^1.19.11" + }, "engines": { - "node": ">=18.18.0" + "node": ">=8.3.0" } }, - "node_modules/@semantic-release/npm/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, - "license": "MIT", + "node_modules/@stoplight/ordered-object-literal": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/@stoplight/ordered-object-literal/-/ordered-object-literal-1.0.5.tgz", + "integrity": "sha512-COTiuCU5bgMUtbIFBuyyh2/yVVzlr5Om0v5utQDgBCuQUOPgU1DwoffkTfg4UBQOvByi5foF4w4T+H9CoRe5wg==", + "license": "Apache-2.0", "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=8" } }, - "node_modules/@semantic-release/npm/node_modules/is-stream": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-4.0.1.tgz", - "integrity": "sha512-Dnz92NInDqYckGEUJv689RbRiTSEHCQ7wOVeALbkOz999YpqT46yMRIGtSNl2iCL1waAZSx40+h59NV/EwzV/A==", - "dev": true, - "license": "MIT", + "node_modules/@stoplight/path": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/@stoplight/path/-/path-1.3.2.tgz", + "integrity": "sha512-lyIc6JUlUA8Ve5ELywPC8I2Sdnh1zc1zmbYgVarhXIp9YeAB0ReeqmGEOWNtlHkbP2DAA1AL65Wfn2ncjK/jtQ==", + "license": "Apache-2.0", "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=8" } }, - "node_modules/@semantic-release/npm/node_modules/npm-run-path": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-6.0.0.tgz", - "integrity": "sha512-9qny7Z9DsQU8Ou39ERsPU4OZQlSTP47ShQzuKZ6PRXpYLtIFgl/DEBYEXKlvcEa+9tHVcK8CF81Y2V72qaZhWA==", - "dev": true, - "license": "MIT", + "node_modules/@stoplight/spectral-cli": { + "version": "6.16.3", + "resolved": "https://registry.npmjs.org/@stoplight/spectral-cli/-/spectral-cli-6.16.3.tgz", + "integrity": "sha512-corAOQ/WhGoPJOQ3Tcipyn64TgKYDkEhsDplS6vNSGys3kzi9+zzxiVOlbzk9mWuafovzoW+TpGCoNwIZvFf5w==", + "license": "Apache-2.0", "dependencies": { - "path-key": "^4.0.0", - "unicorn-magic": "^0.3.0" - }, - "engines": { - "node": ">=18" + "@scarf/scarf": "^1.4.0", + "@stoplight/json": "~3.21.0", + "@stoplight/path": "1.3.2", + "@stoplight/spectral-core": "^1.19.5", + "@stoplight/spectral-formatters": "^1.4.1", + "@stoplight/spectral-parsers": "^1.0.4", + "@stoplight/spectral-ref-resolver": "^1.0.4", + "@stoplight/spectral-ruleset-bundler": "^1.6.0", + "@stoplight/spectral-ruleset-migrator": "^1.11.0", + "@stoplight/spectral-rulesets": ">=1", + "@stoplight/spectral-runtime": "^1.1.2", + "@stoplight/types": "^13.6.0", + "chalk": "4.1.2", + "fast-glob": "~3.2.12", + "hpagent": "~1.2.0", + "lodash": "^4.18.1", + "pony-cause": "^1.1.1", + "stacktracey": "^2.1.8", + "tslib": "^2.8.1", + "yargs": "~17.7.2" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@semantic-release/npm/node_modules/path-key": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-4.0.0.tgz", - "integrity": "sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" + "bin": { + "spectral": "dist/index.js" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@semantic-release/npm/node_modules/signal-exit": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", - "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", - "dev": true, - "license": "ISC", "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" + "node": "^16.20 || ^18.18 || >= 20.17" } }, - "node_modules/@semantic-release/npm/node_modules/strip-final-newline": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-4.0.0.tgz", - "integrity": "sha512-aulFJcD6YK8V1G7iRB5tigAP4TsHBZZrOV8pjV++zdUwmeV8uzbY7yn6h9MswN62adStNZFuCIx4haBnRuMDaw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18" + "node_modules/@stoplight/spectral-core": { + "version": "1.24.1", + "resolved": "https://registry.npmjs.org/@stoplight/spectral-core/-/spectral-core-1.24.1.tgz", + "integrity": "sha512-Q1i41CoYtzdRoxGkVH0arhv9jSNkByU/TbJ77CHMXvtgbLCTUMVCbB6W9IEIu+NndESki1tnJzt59SPifB9NWQ==", + "license": "Apache-2.0", + "dependencies": { + "@scarf/scarf": "^1.4.0", + "@stoplight/better-ajv-errors": "1.0.3", + "@stoplight/json": "~3.21.0", + "@stoplight/path": "1.3.2", + "@stoplight/spectral-parsers": "^1.0.0", + "@stoplight/spectral-ref-resolver": "^1.0.4", + "@stoplight/spectral-runtime": "^1.1.2", + "@stoplight/types": "~13.6.0", + "@types/es-aggregate-error": "^1.0.2", + "@types/json-schema": "^7.0.11", + "ajv": "^8.18.0", + "ajv-errors": "~3.0.0", + "ajv-formats": "~2.1.1", + "es-aggregate-error": "^1.0.7", + "expr-eval-fork": "^3.0.1", + "jsonpath-plus": "^10.3.0", + "lodash": "^4.18.1", + "lodash.topath": "^4.5.2", + "minimatch": "^3.1.4", + "nimma": "0.2.3", + "pony-cause": "^1.1.1", + "tslib": "^2.8.1" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@semantic-release/npm/node_modules/unicorn-magic": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/unicorn-magic/-/unicorn-magic-0.3.0.tgz", - "integrity": "sha512-+QBBXBCvifc56fsbuxZQ6Sic3wqqc3WWaqxs58gvJrcOuN83HGTCwz3oS5phzU9LthRNE9VrJCFCLUgHeeFnfA==", - "dev": true, - "license": "MIT", "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": "^16.20 || ^18.18 || >= 20.17" } }, - "node_modules/@semantic-release/release-notes-generator": { - "version": "14.1.1", - "resolved": "https://registry.npmjs.org/@semantic-release/release-notes-generator/-/release-notes-generator-14.1.1.tgz", - "integrity": "sha512-Pbd2e2XRMUD0OxehHpgd5/YghsE76cddkRHSoDvKLK+OCy4Ewxn49rWR631MEUU01lgwF/uyVXvbnVuu6+Z6VA==", - "dev": true, - "license": "MIT", - "dependencies": { - "conventional-changelog-angular": "^8.0.0", - "conventional-changelog-writer": "^8.0.0", - "conventional-commits-filter": "^5.0.0", - "conventional-commits-parser": "^6.0.0", - "debug": "^4.0.0", - "import-from-esm": "^2.0.0", - "lodash-es": "^4.17.21", - "read-package-up": "^11.0.0" - }, - "engines": { - "node": ">=20.8.1" - }, - "peerDependencies": { - "semantic-release": ">=20.1.0" - } - }, - "node_modules/@semantic-release/release-notes-generator/node_modules/hosted-git-info": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-7.0.2.tgz", - "integrity": "sha512-puUZAUKT5m8Zzvs72XWy3HtvVbTWljRE66cP60bxJzAqf2DgICo7lYTY2IHUmLnNpjYvw5bvmoHvPc0QO2a62w==", - "dev": true, - "license": "ISC", - "dependencies": { - "lru-cache": "^10.0.1" - }, - "engines": { - "node": "^16.14.0 || >=18.0.0" - } - }, - "node_modules/@semantic-release/release-notes-generator/node_modules/lru-cache": { - "version": "10.4.3", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", - "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==", - "dev": true, - "license": "ISC" - }, - "node_modules/@semantic-release/release-notes-generator/node_modules/normalize-package-data": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-6.0.2.tgz", - "integrity": "sha512-V6gygoYb/5EmNI+MEGrWkC+e6+Rr7mTmfHrxDbLzxQogBkgzo76rkok0Am6thgSF7Mv2nLOajAJj5vDJZEFn7g==", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "hosted-git-info": "^7.0.0", - "semver": "^7.3.5", - "validate-npm-package-license": "^3.0.4" - }, - "engines": { - "node": "^16.14.0 || >=18.0.0" - } - }, - "node_modules/@semantic-release/release-notes-generator/node_modules/parse-json": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-8.3.0.tgz", - "integrity": "sha512-ybiGyvspI+fAoRQbIPRddCcSTV9/LsJbf0e/S85VLowVGzRmokfneg2kwVW/KU5rOXrPSbF1qAKPMgNTqqROQQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/code-frame": "^7.26.2", - "index-to-position": "^1.1.0", - "type-fest": "^4.39.1" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@semantic-release/release-notes-generator/node_modules/read-package-up": { - "version": "11.0.0", - "resolved": "https://registry.npmjs.org/read-package-up/-/read-package-up-11.0.0.tgz", - "integrity": "sha512-MbgfoNPANMdb4oRBNg5eqLbB2t2r+o5Ua1pNt8BqGp4I0FJZhuVSOj3PaBPni4azWuSzEdNn2evevzVmEk1ohQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "find-up-simple": "^1.0.0", - "read-pkg": "^9.0.0", - "type-fest": "^4.6.0" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@semantic-release/release-notes-generator/node_modules/read-pkg": { - "version": "9.0.1", - "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-9.0.1.tgz", - "integrity": "sha512-9viLL4/n1BJUCT1NXVTdS1jtm80yDEgR5T4yCelII49Mbj0v1rZdKqj7zCiYdbB0CuCgdrvHcNogAKTFPBocFA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/normalize-package-data": "^2.4.3", - "normalize-package-data": "^6.0.0", - "parse-json": "^8.0.0", - "type-fest": "^4.6.0", - "unicorn-magic": "^0.1.0" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@semantic-release/release-notes-generator/node_modules/type-fest": { - "version": "4.41.0", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-4.41.0.tgz", - "integrity": "sha512-TeTSQ6H5YHvpqVwBRcnLDCBnDOHWYu7IvGbHT6N8AOymcr9PJGjc1GTtiWZTYg0NCgYwvnYWEkVChQAr9bjfwA==", - "dev": true, - "license": "(MIT OR CC0-1.0)", - "engines": { - "node": ">=16" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@semantic-release/release-notes-generator/node_modules/unicorn-magic": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/unicorn-magic/-/unicorn-magic-0.1.0.tgz", - "integrity": "sha512-lRfVq8fE8gz6QMBuDM6a+LO3IAzTi05H6gCVaUpir2E1Rwpo4ZUog45KpNXKC/Mn3Yb9UDuHumeFTo9iV/D9FQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@simple-libs/stream-utils": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@simple-libs/stream-utils/-/stream-utils-1.2.0.tgz", - "integrity": "sha512-KxXvfapcixpz6rVEB6HPjOUZT22yN6v0vI0urQSk1L8MlEWPDFCZkhw2xmkyoTGYeFw7tWTZd7e3lVzRZRN/EA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://ko-fi.com/dangreen" - } - }, - "node_modules/@sinclair/typebox": { - "version": "0.27.12", - "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.12.tgz", - "integrity": "sha512-hhyNJ+nbR6ZR7pToHvllEFun9TL0sbL+tk/ON75lo+Xas054uez98qRbsuNt7MBCyZKK4+8Yli/OAGZhmfBZ/g==", - "dev": true, - "license": "MIT" - }, - "node_modules/@sindresorhus/is": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-4.6.0.tgz", - "integrity": "sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sindresorhus/is?sponsor=1" - } - }, - "node_modules/@sindresorhus/merge-streams": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@sindresorhus/merge-streams/-/merge-streams-4.0.0.tgz", - "integrity": "sha512-tlqY9xq5ukxTUZBmoOp+m61cqwQD5pHJtFY3Mn8CA8ps6yghLH/Hw8UPdqg4OLmFW3IFlcXnQNmo/dh8HzXYIQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@sinonjs/commons": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-3.0.1.tgz", - "integrity": "sha512-K3mCHKQ9sVh8o1C9cxkwxaOmXoAMlDxC1mYyHrjqOWEcBjYr76t96zL2zlj5dUGZ3HSw240X1qgH3Mjf1yJWpQ==", - "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "type-detect": "4.0.8" - } - }, - "node_modules/@sinonjs/fake-timers": { - "version": "10.3.0", - "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-10.3.0.tgz", - "integrity": "sha512-V4BG07kuYSUkTCSBHG8G8TNhM+F19jXFWnQtzj+we8DrkpSBCee9Z3Ms8yiGer/dlmhe35/Xdgyo3/0rQKg7YA==", - "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "@sinonjs/commons": "^3.0.0" - } - }, - "node_modules/@stoplight/better-ajv-errors": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@stoplight/better-ajv-errors/-/better-ajv-errors-1.0.3.tgz", - "integrity": "sha512-0p9uXkuB22qGdNfy3VeEhxkU5uwvp/KrBTAbrLBURv6ilxIVwanKwjMc41lQfIVgPGcOkmLbTolfFrSsueu7zA==", - "license": "Apache-2.0", - "dependencies": { - "jsonpointer": "^5.0.0", - "leven": "^3.1.0" - }, - "engines": { - "node": "^12.20 || >= 14.13" - }, - "peerDependencies": { - "ajv": ">=8" - } - }, - "node_modules/@stoplight/json": { - "version": "3.21.7", - "resolved": "https://registry.npmjs.org/@stoplight/json/-/json-3.21.7.tgz", - "integrity": "sha512-xcJXgKFqv/uCEgtGlPxy3tPA+4I+ZI4vAuMJ885+ThkTHFVkC+0Fm58lA9NlsyjnkpxFh4YiQWpH+KefHdbA0A==", - "license": "Apache-2.0", - "dependencies": { - "@stoplight/ordered-object-literal": "^1.0.3", - "@stoplight/path": "^1.3.2", - "@stoplight/types": "^13.6.0", - "jsonc-parser": "~2.2.1", - "lodash": "^4.17.21", - "safe-stable-stringify": "^1.1" - }, - "engines": { - "node": ">=8.3.0" - } - }, - "node_modules/@stoplight/json-ref-readers": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/@stoplight/json-ref-readers/-/json-ref-readers-1.2.2.tgz", - "integrity": "sha512-nty0tHUq2f1IKuFYsLM4CXLZGHdMn+X/IwEUIpeSOXt0QjMUbL0Em57iJUDzz+2MkWG83smIigNZ3fauGjqgdQ==", - "license": "Apache-2.0", - "dependencies": { - "node-fetch": "^2.6.0", - "tslib": "^1.14.1" - }, - "engines": { - "node": ">=8.3.0" - } - }, - "node_modules/@stoplight/json-ref-readers/node_modules/tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "license": "0BSD" - }, - "node_modules/@stoplight/json-ref-resolver": { - "version": "3.1.6", - "resolved": "https://registry.npmjs.org/@stoplight/json-ref-resolver/-/json-ref-resolver-3.1.6.tgz", - "integrity": "sha512-YNcWv3R3n3U6iQYBsFOiWSuRGE5su1tJSiX6pAPRVk7dP0L7lqCteXGzuVRQ0gMZqUl8v1P0+fAKxF6PLo9B5A==", - "license": "Apache-2.0", - "dependencies": { - "@stoplight/json": "^3.21.0", - "@stoplight/path": "^1.3.2", - "@stoplight/types": "^12.3.0 || ^13.0.0", - "@types/urijs": "^1.19.19", - "dependency-graph": "~0.11.0", - "fast-memoize": "^2.5.2", - "immer": "^9.0.6", - "lodash": "^4.17.21", - "tslib": "^2.6.0", - "urijs": "^1.19.11" - }, - "engines": { - "node": ">=8.3.0" - } - }, - "node_modules/@stoplight/ordered-object-literal": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/@stoplight/ordered-object-literal/-/ordered-object-literal-1.0.5.tgz", - "integrity": "sha512-COTiuCU5bgMUtbIFBuyyh2/yVVzlr5Om0v5utQDgBCuQUOPgU1DwoffkTfg4UBQOvByi5foF4w4T+H9CoRe5wg==", - "license": "Apache-2.0", - "engines": { - "node": ">=8" - } - }, - "node_modules/@stoplight/path": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/@stoplight/path/-/path-1.3.2.tgz", - "integrity": "sha512-lyIc6JUlUA8Ve5ELywPC8I2Sdnh1zc1zmbYgVarhXIp9YeAB0ReeqmGEOWNtlHkbP2DAA1AL65Wfn2ncjK/jtQ==", - "license": "Apache-2.0", - "engines": { - "node": ">=8" - } - }, - "node_modules/@stoplight/spectral-cli": { - "version": "6.16.3", - "resolved": "https://registry.npmjs.org/@stoplight/spectral-cli/-/spectral-cli-6.16.3.tgz", - "integrity": "sha512-corAOQ/WhGoPJOQ3Tcipyn64TgKYDkEhsDplS6vNSGys3kzi9+zzxiVOlbzk9mWuafovzoW+TpGCoNwIZvFf5w==", - "license": "Apache-2.0", - "dependencies": { - "@scarf/scarf": "^1.4.0", - "@stoplight/json": "~3.21.0", - "@stoplight/path": "1.3.2", - "@stoplight/spectral-core": "^1.19.5", - "@stoplight/spectral-formatters": "^1.4.1", - "@stoplight/spectral-parsers": "^1.0.4", - "@stoplight/spectral-ref-resolver": "^1.0.4", - "@stoplight/spectral-ruleset-bundler": "^1.6.0", - "@stoplight/spectral-ruleset-migrator": "^1.11.0", - "@stoplight/spectral-rulesets": ">=1", - "@stoplight/spectral-runtime": "^1.1.2", - "@stoplight/types": "^13.6.0", - "chalk": "4.1.2", - "fast-glob": "~3.2.12", - "hpagent": "~1.2.0", - "lodash": "^4.18.1", - "pony-cause": "^1.1.1", - "stacktracey": "^2.1.8", - "tslib": "^2.8.1", - "yargs": "~17.7.2" - }, - "bin": { - "spectral": "dist/index.js" - }, - "engines": { - "node": "^16.20 || ^18.18 || >= 20.17" - } - }, - "node_modules/@stoplight/spectral-core": { - "version": "1.24.1", - "resolved": "https://registry.npmjs.org/@stoplight/spectral-core/-/spectral-core-1.24.1.tgz", - "integrity": "sha512-Q1i41CoYtzdRoxGkVH0arhv9jSNkByU/TbJ77CHMXvtgbLCTUMVCbB6W9IEIu+NndESki1tnJzt59SPifB9NWQ==", - "license": "Apache-2.0", - "dependencies": { - "@scarf/scarf": "^1.4.0", - "@stoplight/better-ajv-errors": "1.0.3", - "@stoplight/json": "~3.21.0", - "@stoplight/path": "1.3.2", - "@stoplight/spectral-parsers": "^1.0.0", - "@stoplight/spectral-ref-resolver": "^1.0.4", - "@stoplight/spectral-runtime": "^1.1.2", - "@stoplight/types": "~13.6.0", - "@types/es-aggregate-error": "^1.0.2", - "@types/json-schema": "^7.0.11", - "ajv": "^8.18.0", - "ajv-errors": "~3.0.0", - "ajv-formats": "~2.1.1", - "es-aggregate-error": "^1.0.7", - "expr-eval-fork": "^3.0.1", - "jsonpath-plus": "^10.3.0", - "lodash": "^4.18.1", - "lodash.topath": "^4.5.2", - "minimatch": "^3.1.4", - "nimma": "0.2.3", - "pony-cause": "^1.1.1", - "tslib": "^2.8.1" - }, - "engines": { - "node": "^16.20 || ^18.18 || >= 20.17" - } - }, - "node_modules/@stoplight/spectral-core/node_modules/@stoplight/types": { - "version": "13.6.0", - "resolved": "https://registry.npmjs.org/@stoplight/types/-/types-13.6.0.tgz", - "integrity": "sha512-dzyuzvUjv3m1wmhPfq82lCVYGcXG0xUYgqnWfCq3PCVR4BKFhjdkHrnJ+jIDoMKvXb05AZP/ObQF6+NpDo29IQ==", - "license": "Apache-2.0", - "dependencies": { - "@types/json-schema": "^7.0.4", - "utility-types": "^3.10.0" - }, - "engines": { - "node": "^12.20 || >=14.13" - } - }, - "node_modules/@stoplight/spectral-core/node_modules/nimma": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/nimma/-/nimma-0.2.3.tgz", - "integrity": "sha512-1ZOI8J+1PKKGceo/5CT5GfQOG6H8I2BencSK06YarZ2wXwH37BSSUWldqJmMJYA5JfqDqffxDXynt6f11AyKcA==", - "license": "Apache-2.0", - "dependencies": { - "@jsep-plugin/regex": "^1.0.1", - "@jsep-plugin/ternary": "^1.0.2", - "astring": "^1.8.1", - "jsep": "^1.2.0" - }, - "engines": { - "node": "^12.20 || >=14.13" - }, - "optionalDependencies": { - "jsonpath-plus": "^6.0.1 || ^10.1.0", - "lodash.topath": "^4.5.2" - } - }, - "node_modules/@stoplight/spectral-formats": { - "version": "1.8.5", - "resolved": "https://registry.npmjs.org/@stoplight/spectral-formats/-/spectral-formats-1.8.5.tgz", - "integrity": "sha512-xaC0rCH0p7/bzNJsz+JgLSj+Cp6uwYGWpePQxdLkF2G6a8Zyp3OyS7umkGYNiimEwKrOjvCNNTFJpeuiENZSBA==", - "license": "Apache-2.0", - "dependencies": { - "@scarf/scarf": "^1.4.0", - "@stoplight/json": "^3.17.0", - "@stoplight/spectral-core": "^1.23.0", - "@types/json-schema": "^7.0.7", - "tslib": "^2.8.1" - }, - "engines": { - "node": "^16.20 || ^18.18 || >= 20.17" - } - }, - "node_modules/@stoplight/spectral-formatters": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/@stoplight/spectral-formatters/-/spectral-formatters-1.5.1.tgz", - "integrity": "sha512-mGXaiIrPglPokSnbFqbkWN3DoozIbwrZAA6OgqSIl+djeD5+e6PMELg0g6r3ot3ZzntO+6/GXaDnxEQ/p9M/EQ==", - "license": "Apache-2.0", - "dependencies": { - "@stoplight/path": "^1.3.2", - "@stoplight/spectral-core": "^1.19.4", - "@stoplight/spectral-runtime": "^1.1.2", - "@stoplight/types": "^13.15.0", - "@types/markdown-escape": "^1.1.3", - "chalk": "4.1.2", - "cliui": "7.0.4", - "lodash": "^4.18.1", - "markdown-escape": "^2.0.0", - "node-sarif-builder": "^2.0.3", - "strip-ansi": "6.0", - "text-table": "^0.2.0", - "tslib": "^2.8.1" - }, - "engines": { - "node": "^16.20 || ^18.18 || >= 20.17" - } - }, - "node_modules/@stoplight/spectral-functions": { - "version": "1.10.5", - "resolved": "https://registry.npmjs.org/@stoplight/spectral-functions/-/spectral-functions-1.10.5.tgz", - "integrity": "sha512-vDCd0NJ93715bcUpZZ5vNHiyxd4cgHF6tuXsDiXOXKAByg+I1fR5/dMijEo6Ce1Lz95a+RZ22JKYhF1YuzVvuA==", - "license": "Apache-2.0", - "dependencies": { - "@scarf/scarf": "^1.4.0", - "@stoplight/better-ajv-errors": "1.0.3", - "@stoplight/json": "^3.17.1", - "@stoplight/spectral-core": "^1.23.0", - "@stoplight/spectral-formats": "^1.8.1", - "@stoplight/spectral-runtime": "^1.1.2", - "ajv": "^8.18.0", - "ajv-draft-04": "~1.0.0", - "ajv-errors": "~3.0.0", - "ajv-formats": "~2.1.1", - "lodash": "^4.18.1", - "tslib": "^2.8.1" - }, - "engines": { - "node": "^16.20 || ^18.18 || >= 20.17" - } - }, - "node_modules/@stoplight/spectral-functions/node_modules/ajv-draft-04": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/ajv-draft-04/-/ajv-draft-04-1.0.0.tgz", - "integrity": "sha512-mv00Te6nmYbRp5DCwclxtt7yV/joXJPGS7nM+97GdxvuttCOfgI3K4U25zboyeX0O+myI8ERluxQe5wljMmVIw==", - "license": "MIT", - "peerDependencies": { - "ajv": "^8.5.0" - }, - "peerDependenciesMeta": { - "ajv": { - "optional": true - } - } - }, - "node_modules/@stoplight/spectral-parsers": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/@stoplight/spectral-parsers/-/spectral-parsers-1.0.5.tgz", - "integrity": "sha512-ANDTp2IHWGvsQDAY85/jQi9ZrF4mRrA5bciNHX+PUxPr4DwS6iv4h+FVWJMVwcEYdpyoIdyL+SRmHdJfQEPmwQ==", - "license": "Apache-2.0", - "dependencies": { - "@stoplight/json": "~3.21.0", - "@stoplight/types": "^14.1.1", - "@stoplight/yaml": "~4.3.0", - "tslib": "^2.8.1" - }, - "engines": { - "node": "^16.20 || ^18.18 || >= 20.17" - } - }, - "node_modules/@stoplight/spectral-parsers/node_modules/@stoplight/types": { - "version": "14.1.1", - "resolved": "https://registry.npmjs.org/@stoplight/types/-/types-14.1.1.tgz", - "integrity": "sha512-/kjtr+0t0tjKr+heVfviO9FrU/uGLc+QNX3fHJc19xsCNYqU7lVhaXxDmEID9BZTjG+/r9pK9xP/xU02XGg65g==", - "license": "Apache-2.0", - "dependencies": { - "@types/json-schema": "^7.0.4", - "utility-types": "^3.10.0" - }, - "engines": { - "node": "^12.20 || >=14.13" - } - }, - "node_modules/@stoplight/spectral-ref-resolver": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/@stoplight/spectral-ref-resolver/-/spectral-ref-resolver-1.0.5.tgz", - "integrity": "sha512-gj3TieX5a9zMW29z3mBlAtDOCgN3GEc1VgZnCVlr5irmR4Qi5LuECuFItAq4pTn5Zu+sW5bqutsCH7D4PkpyAA==", - "license": "Apache-2.0", - "dependencies": { - "@stoplight/json-ref-readers": "1.2.2", - "@stoplight/json-ref-resolver": "~3.1.6", - "@stoplight/spectral-runtime": "^1.1.2", - "dependency-graph": "0.11.0", - "tslib": "^2.8.1" - }, - "engines": { - "node": "^16.20 || ^18.18 || >= 20.17" - } - }, - "node_modules/@stoplight/spectral-ruleset-bundler": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/@stoplight/spectral-ruleset-bundler/-/spectral-ruleset-bundler-1.7.0.tgz", - "integrity": "sha512-PpIdj5Wje0T7ktxY8EUzBWLU0+mGGQHznT8nlQxTMnRhWLNYsm6HvSZDXLtMi+86yqvTuf7loJy6JvLBDzHGAA==", - "license": "Apache-2.0", - "dependencies": { - "@rollup/plugin-commonjs": "~22.0.2", - "@stoplight/path": "1.3.2", - "@stoplight/spectral-core": ">=1", - "@stoplight/spectral-formats": "^1.8.1", - "@stoplight/spectral-functions": ">=1", - "@stoplight/spectral-parsers": ">=1", - "@stoplight/spectral-ref-resolver": "^1.0.4", - "@stoplight/spectral-ruleset-migrator": "^1.9.6", - "@stoplight/spectral-rulesets": ">=1", - "@stoplight/spectral-runtime": "^1.1.2", - "@stoplight/types": "^13.6.0", - "@types/node": "*", - "pony-cause": "1.1.1", - "rollup": "~2.80.0", - "tslib": "^2.8.1", - "validate-npm-package-name": "3.0.0" - }, - "engines": { - "node": "^16.20 || ^18.18 || >= 20.17" - } - }, - "node_modules/@stoplight/spectral-ruleset-migrator": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/@stoplight/spectral-ruleset-migrator/-/spectral-ruleset-migrator-1.12.2.tgz", - "integrity": "sha512-9hTcyXnBGppM1kMA8vVvY6aWzF3vXbU7+mZvvd9wdPE8QdHj9NO//1s+A/TfiWOKdH9GOERC5NITCnVvbEYEWg==", - "license": "Apache-2.0", - "dependencies": { - "@stoplight/json": "~3.21.0", - "@stoplight/ordered-object-literal": "~1.0.4", - "@stoplight/path": "1.3.2", - "@stoplight/spectral-functions": "^1.9.1", - "@stoplight/spectral-runtime": "^1.1.2", - "@stoplight/types": "^13.6.0", - "@stoplight/yaml": "~4.2.3", - "@types/node": "*", - "ajv": "^8.18.0", - "ast-types": "0.14.2", - "astring": "^1.9.0", - "reserved": "0.1.2", - "tslib": "^2.8.1", - "validate-npm-package-name": "3.0.0" - }, - "engines": { - "node": "^16.20 || ^18.18 || >= 20.17" - } - }, - "node_modules/@stoplight/spectral-ruleset-migrator/node_modules/@stoplight/yaml": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/@stoplight/yaml/-/yaml-4.2.3.tgz", - "integrity": "sha512-Mx01wjRAR9C7yLMUyYFTfbUf5DimEpHMkRDQ1PKLe9dfNILbgdxyrncsOXM3vCpsQ1Hfj4bPiGl+u4u6e9Akqw==", - "license": "Apache-2.0", - "dependencies": { - "@stoplight/ordered-object-literal": "^1.0.1", - "@stoplight/types": "^13.0.0", - "@stoplight/yaml-ast-parser": "0.0.48", - "tslib": "^2.2.0" - }, - "engines": { - "node": ">=10.8" - } - }, - "node_modules/@stoplight/spectral-ruleset-migrator/node_modules/@stoplight/yaml-ast-parser": { - "version": "0.0.48", - "resolved": "https://registry.npmjs.org/@stoplight/yaml-ast-parser/-/yaml-ast-parser-0.0.48.tgz", - "integrity": "sha512-sV+51I7WYnLJnKPn2EMWgS4EUfoP4iWEbrWwbXsj0MZCB/xOK8j6+C9fntIdOM50kpx45ZLC3s6kwKivWuqvyg==", - "license": "Apache-2.0" - }, - "node_modules/@stoplight/spectral-rulesets": { - "version": "1.22.7", - "resolved": "https://registry.npmjs.org/@stoplight/spectral-rulesets/-/spectral-rulesets-1.22.7.tgz", - "integrity": "sha512-cT1B6Ly21923lvr235lu7iIgmcnoCTJaN3ANOyTqr4D5GA/4p2k0+yhjhdfj/1ks/Os3kUzSFnFkzpWH7WszFA==", - "license": "Apache-2.0", - "dependencies": { - "@asyncapi/specs": "6.11.1", - "@scarf/scarf": "^1.4.0", - "@stoplight/better-ajv-errors": "1.0.3", - "@stoplight/json": "^3.17.0", - "@stoplight/spectral-core": "^1.23.0", - "@stoplight/spectral-formats": "^1.8.1", - "@stoplight/spectral-functions": "^1.9.1", - "@stoplight/spectral-runtime": "^1.1.2", - "@stoplight/types": "^13.6.0", - "@types/json-schema": "^7.0.7", - "ajv": "^8.18.0", - "ajv-formats": "~2.1.1", - "json-schema-traverse": "^1.0.0", - "leven": "3.1.0", - "lodash": "^4.18.1", - "tslib": "^2.8.1" - }, - "engines": { - "node": "^16.20 || ^18.18 || >= 20.17" - } - }, - "node_modules/@stoplight/spectral-runtime": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/@stoplight/spectral-runtime/-/spectral-runtime-1.1.6.tgz", - "integrity": "sha512-Y8rEDyMN4bSMJCrDs2shdcVHYyCnH3FvXRP4dBhha4Z8iJv+JPp7KqOV/hwVB/hWFC209upiwj2oDmLfR0qCDg==", - "license": "Apache-2.0", - "dependencies": { - "@stoplight/json": "^3.20.1", - "@stoplight/path": "^1.3.2", - "@stoplight/types": "^13.6.0", - "lodash": "^4.18.1", - "node-fetch": "^2.7.0", - "tslib": "^2.8.1" - }, - "engines": { - "node": "^16.20 || ^18.18 || >= 20.17" - } - }, - "node_modules/@stoplight/types": { - "version": "13.20.0", - "resolved": "https://registry.npmjs.org/@stoplight/types/-/types-13.20.0.tgz", - "integrity": "sha512-2FNTv05If7ib79VPDA/r9eUet76jewXFH2y2K5vuge6SXbRHtWBhcaRmu+6QpF4/WRNoJj5XYRSwLGXDxysBGA==", - "license": "Apache-2.0", - "dependencies": { - "@types/json-schema": "^7.0.4", - "utility-types": "^3.10.0" - }, - "engines": { - "node": "^12.20 || >=14.13" - } - }, - "node_modules/@stoplight/yaml": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/@stoplight/yaml/-/yaml-4.3.0.tgz", - "integrity": "sha512-JZlVFE6/dYpP9tQmV0/ADfn32L9uFarHWxfcRhReKUnljz1ZiUM5zpX+PH8h5CJs6lao3TuFqnPm9IJJCEkE2w==", - "license": "Apache-2.0", - "dependencies": { - "@stoplight/ordered-object-literal": "^1.0.5", - "@stoplight/types": "^14.1.1", - "@stoplight/yaml-ast-parser": "0.0.50", - "tslib": "^2.2.0" - }, - "engines": { - "node": ">=10.8" - } - }, - "node_modules/@stoplight/yaml-ast-parser": { - "version": "0.0.50", - "resolved": "https://registry.npmjs.org/@stoplight/yaml-ast-parser/-/yaml-ast-parser-0.0.50.tgz", - "integrity": "sha512-Pb6M8TDO9DtSVla9yXSTAxmo9GVEouq5P40DWXdOie69bXogZTkgvopCq+yEvTMA0F6PEvdJmbtTV3ccIp11VQ==", - "license": "Apache-2.0" - }, - "node_modules/@stoplight/yaml/node_modules/@stoplight/types": { - "version": "14.1.1", - "resolved": "https://registry.npmjs.org/@stoplight/types/-/types-14.1.1.tgz", - "integrity": "sha512-/kjtr+0t0tjKr+heVfviO9FrU/uGLc+QNX3fHJc19xsCNYqU7lVhaXxDmEID9BZTjG+/r9pK9xP/xU02XGg65g==", - "license": "Apache-2.0", - "dependencies": { - "@types/json-schema": "^7.0.4", - "utility-types": "^3.10.0" - }, - "engines": { - "node": "^12.20 || >=14.13" - } - }, - "node_modules/@types/babel__core": { - "version": "7.20.5", - "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz", - "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/parser": "^7.20.7", - "@babel/types": "^7.20.7", - "@types/babel__generator": "*", - "@types/babel__template": "*", - "@types/babel__traverse": "*" - } - }, - "node_modules/@types/babel__generator": { - "version": "7.27.0", - "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.27.0.tgz", - "integrity": "sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/types": "^7.0.0" - } - }, - "node_modules/@types/babel__template": { - "version": "7.4.4", - "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz", - "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/parser": "^7.1.0", - "@babel/types": "^7.0.0" - } - }, - "node_modules/@types/babel__traverse": { - "version": "7.28.0", - "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.28.0.tgz", - "integrity": "sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/types": "^7.28.2" - } - }, - "node_modules/@types/es-aggregate-error": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/@types/es-aggregate-error/-/es-aggregate-error-1.0.6.tgz", - "integrity": "sha512-qJ7LIFp06h1QE1aVxbVd+zJP2wdaugYXYfd6JxsyRMrYHaxb6itXPogW2tz+ylUJ1n1b+JF1PHyYCfYHm0dvUg==", - "license": "MIT", - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/esrecurse": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/@types/esrecurse/-/esrecurse-4.3.1.tgz", - "integrity": "sha512-xJBAbDifo5hpffDBuHl0Y8ywswbiAp/Wi7Y/GtAgSlZyIABppyurxVueOPE8LUQOxdlgi6Zqce7uoEpqNTeiUw==", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/estree": { - "version": "0.0.39", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.39.tgz", - "integrity": "sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw==", - "license": "MIT" - }, - "node_modules/@types/graceful-fs": { - "version": "4.1.9", - "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.9.tgz", - "integrity": "sha512-olP3sd1qOEe5dXTSaFvQG+02VdRXcdytWLAZsAq1PecU8uqQAhkrnbli7DagjtXKW/Bl7YJbUsa8MPcuc8LHEQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/istanbul-lib-coverage": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz", - "integrity": "sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/istanbul-lib-report": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.3.tgz", - "integrity": "sha512-NQn7AHQnk/RSLOxrBbGyJM/aVQ+pjj5HCgasFxc0K/KhoATfQ/47AyUl15I2yBUpihjmas+a+VJBOqecrFH+uA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/istanbul-lib-coverage": "*" - } - }, - "node_modules/@types/istanbul-reports": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.4.tgz", - "integrity": "sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/istanbul-lib-report": "*" - } - }, - "node_modules/@types/json-schema": { - "version": "7.0.15", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", - "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", - "license": "MIT" - }, - "node_modules/@types/linkify-it": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/@types/linkify-it/-/linkify-it-5.0.0.tgz", - "integrity": "sha512-sVDA58zAw4eWAffKOaQH5/5j3XeayukzDk+ewSsnv3p4yJEZHCCzMDiZM8e0OUrRvmpGZ85jf4yDHkHsgBNr9Q==", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/markdown-escape": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/@types/markdown-escape/-/markdown-escape-1.1.3.tgz", - "integrity": "sha512-JIc1+s3y5ujKnt/+N+wq6s/QdL2qZ11fP79MijrVXsAAnzSxCbT2j/3prHRouJdZ2yFLN3vkP0HytfnoCczjOw==", - "license": "MIT" - }, - "node_modules/@types/markdown-it": { - "version": "14.2.0", - "resolved": "https://registry.npmjs.org/@types/markdown-it/-/markdown-it-14.2.0.tgz", - "integrity": "sha512-NoQ2yGlLWj4wpxMs+TYmRKk3thDrQ97agr7sFqfLsAlvoS8SNQuTrlObhFqG9iugdTtgOE9jpJ6FNM4ZGsa5xQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/linkify-it": "^5", - "@types/mdurl": "^2" - } - }, - "node_modules/@types/mdurl": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@types/mdurl/-/mdurl-2.0.0.tgz", - "integrity": "sha512-RGdgjQUZba5p6QEFAVx2OGb8rQDL/cPRG7GiedRzMcJ1tYnUANBncjbSB1NRGwbvjcPeikRABz2nshyPk1bhWg==", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/node": { - "version": "26.5.1", - "resolved": "https://registry.npmjs.org/@types/node/-/node-26.5.1.tgz", - "integrity": "sha512-CzNm2FezW4VR/LjG6yUdiEgLE/rAQ9Slj5gCu/C2VrdcW7I0ahNZ8DRbHT7zOZ6r3ONgd/bsQIeSaoDGrd1C6g==", - "license": "MIT", - "dependencies": { - "undici-types": "~8.9.0" - } - }, - "node_modules/@types/normalize-package-data": { - "version": "2.4.4", - "resolved": "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.4.tgz", - "integrity": "sha512-37i+OaWTh9qeK4LSHPsyRC7NahnGotNuZvjLSgcPzblpHB3rrCJxAOgI5gCdKm7coonsaX1Of0ILiTcnZjbfxA==", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/sarif": { - "version": "2.1.7", - "resolved": "https://registry.npmjs.org/@types/sarif/-/sarif-2.1.7.tgz", - "integrity": "sha512-kRz0VEkJqWLf1LLVN4pT1cg1Z9wAuvI6L97V3m2f5B76Tg8d413ddvLBPTEHAZJlnn4XSvu0FkZtViCQGVyrXQ==", - "license": "MIT" - }, - "node_modules/@types/stack-utils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.3.tgz", - "integrity": "sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/urijs": { - "version": "1.19.26", - "resolved": "https://registry.npmjs.org/@types/urijs/-/urijs-1.19.26.tgz", - "integrity": "sha512-wkXrVzX5yoqLnndOwFsieJA7oKM8cNkOKJtf/3vVGSUFkWDKZvFHpIl9Pvqb/T9UsawBBFMTTD8xu7sK5MWuvg==", - "license": "MIT" - }, - "node_modules/@types/yargs": { - "version": "17.0.35", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.35.tgz", - "integrity": "sha512-qUHkeCyQFxMXg79wQfTtfndEC+N9ZZg76HJftDJp+qH2tV7Gj4OJi7l+PiWwJ+pWtW8GwSmqsDj/oymhrTWXjg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/yargs-parser": "*" - } - }, - "node_modules/@types/yargs-parser": { - "version": "21.0.3", - "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.3.tgz", - "integrity": "sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/acorn": { - "version": "8.18.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.18.0.tgz", - "integrity": "sha512-lGq+9yr1/GuAWaVYIHRjvvySG5/4VfKIvC8EWxStPdcDh/Ka7FG3twP6v4d5BkravUilhIAsG4Qj83t02LWUPQ==", - "dev": true, - "license": "MIT", - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/acorn-jsx": { - "version": "5.3.2", - "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" - } - }, - "node_modules/agent-base": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", - "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "debug": "4" - }, - "engines": { - "node": ">= 6.0.0" - } - }, - "node_modules/aggregate-error": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz", - "integrity": "sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==", - "dev": true, - "license": "MIT", - "dependencies": { - "clean-stack": "^2.0.0", - "indent-string": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/ajv": { - "version": "8.20.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.20.0.tgz", - "integrity": "sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==", - "license": "MIT", - "dependencies": { - "fast-deep-equal": "^3.1.3", - "fast-uri": "^3.0.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/ajv-errors": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/ajv-errors/-/ajv-errors-3.0.0.tgz", - "integrity": "sha512-V3wD15YHfHz6y0KdhYFjyy9vWtEVALT9UrxfN3zqlI6dMioHnJrqOYfyPKol3oqrnCM9uwkcdCwkJ0WUcbLMTQ==", - "license": "MIT", - "peerDependencies": { - "ajv": "^8.0.1" - } - }, - "node_modules/ajv-formats": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-2.1.1.tgz", - "integrity": "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==", - "license": "MIT", - "dependencies": { - "ajv": "^8.0.0" - }, - "peerDependencies": { - "ajv": "^8.0.0" - }, - "peerDependenciesMeta": { - "ajv": { - "optional": true - } - } - }, - "node_modules/ansi-escapes": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", - "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", - "dev": true, - "license": "MIT", + "node_modules/@stoplight/spectral-core/node_modules/@stoplight/types": { + "version": "13.6.0", + "resolved": "https://registry.npmjs.org/@stoplight/types/-/types-13.6.0.tgz", + "integrity": "sha512-dzyuzvUjv3m1wmhPfq82lCVYGcXG0xUYgqnWfCq3PCVR4BKFhjdkHrnJ+jIDoMKvXb05AZP/ObQF6+NpDo29IQ==", + "license": "Apache-2.0", "dependencies": { - "type-fest": "^0.21.3" + "@types/json-schema": "^7.0.4", + "utility-types": "^3.10.0" }, "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": "^12.20 || >=14.13" } }, - "node_modules/ansi-escapes/node_modules/type-fest": { - "version": "0.21.3", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", - "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", - "dev": true, - "license": "(MIT OR CC0-1.0)", - "engines": { - "node": ">=10" + "node_modules/@stoplight/spectral-core/node_modules/nimma": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/nimma/-/nimma-0.2.3.tgz", + "integrity": "sha512-1ZOI8J+1PKKGceo/5CT5GfQOG6H8I2BencSK06YarZ2wXwH37BSSUWldqJmMJYA5JfqDqffxDXynt6f11AyKcA==", + "license": "Apache-2.0", + "dependencies": { + "@jsep-plugin/regex": "^1.0.1", + "@jsep-plugin/ternary": "^1.0.2", + "astring": "^1.8.1", + "jsep": "^1.2.0" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "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==", - "license": "MIT", "engines": { - "node": ">=8" + "node": "^12.20 || >=14.13" + }, + "optionalDependencies": { + "jsonpath-plus": "^6.0.1 || ^10.1.0", + "lodash.topath": "^4.5.2" } }, - "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==", - "license": "MIT", + "node_modules/@stoplight/spectral-formats": { + "version": "1.8.5", + "resolved": "https://registry.npmjs.org/@stoplight/spectral-formats/-/spectral-formats-1.8.5.tgz", + "integrity": "sha512-xaC0rCH0p7/bzNJsz+JgLSj+Cp6uwYGWpePQxdLkF2G6a8Zyp3OyS7umkGYNiimEwKrOjvCNNTFJpeuiENZSBA==", + "license": "Apache-2.0", "dependencies": { - "color-convert": "^2.0.1" + "@scarf/scarf": "^1.4.0", + "@stoplight/json": "^3.17.0", + "@stoplight/spectral-core": "^1.23.0", + "@types/json-schema": "^7.0.7", + "tslib": "^2.8.1" }, "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" + "node": "^16.20 || ^18.18 || >= 20.17" } }, - "node_modules/any-promise": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/any-promise/-/any-promise-1.3.0.tgz", - "integrity": "sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==", - "dev": true, - "license": "MIT" - }, - "node_modules/anymatch": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", - "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", - "dev": true, - "license": "ISC", + "node_modules/@stoplight/spectral-formatters": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/@stoplight/spectral-formatters/-/spectral-formatters-1.5.1.tgz", + "integrity": "sha512-mGXaiIrPglPokSnbFqbkWN3DoozIbwrZAA6OgqSIl+djeD5+e6PMELg0g6r3ot3ZzntO+6/GXaDnxEQ/p9M/EQ==", + "license": "Apache-2.0", "dependencies": { - "normalize-path": "^3.0.0", - "picomatch": "^2.0.4" + "@stoplight/path": "^1.3.2", + "@stoplight/spectral-core": "^1.19.4", + "@stoplight/spectral-runtime": "^1.1.2", + "@stoplight/types": "^13.15.0", + "@types/markdown-escape": "^1.1.3", + "chalk": "4.1.2", + "cliui": "7.0.4", + "lodash": "^4.18.1", + "markdown-escape": "^2.0.0", + "node-sarif-builder": "^2.0.3", + "strip-ansi": "6.0", + "text-table": "^0.2.0", + "tslib": "^2.8.1" }, "engines": { - "node": ">= 8" + "node": "^16.20 || ^18.18 || >= 20.17" } }, - "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==", - "license": "Python-2.0" - }, - "node_modules/argv-formatter": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/argv-formatter/-/argv-formatter-1.0.0.tgz", - "integrity": "sha512-F2+Hkm9xFaRg+GkaNnbwXNDV5O6pnCFEmqyhvfC/Ic5LbgOWjJh3L+mN/s91rxVL3znE7DYVpW0GJFT+4YBgWw==", - "dev": true, - "license": "MIT" - }, - "node_modules/array-buffer-byte-length": { - "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==", - "license": "MIT", + "node_modules/@stoplight/spectral-functions": { + "version": "1.10.5", + "resolved": "https://registry.npmjs.org/@stoplight/spectral-functions/-/spectral-functions-1.10.5.tgz", + "integrity": "sha512-vDCd0NJ93715bcUpZZ5vNHiyxd4cgHF6tuXsDiXOXKAByg+I1fR5/dMijEo6Ce1Lz95a+RZ22JKYhF1YuzVvuA==", + "license": "Apache-2.0", "dependencies": { - "call-bound": "^1.0.3", - "is-array-buffer": "^3.0.5" + "@scarf/scarf": "^1.4.0", + "@stoplight/better-ajv-errors": "1.0.3", + "@stoplight/json": "^3.17.1", + "@stoplight/spectral-core": "^1.23.0", + "@stoplight/spectral-formats": "^1.8.1", + "@stoplight/spectral-runtime": "^1.1.2", + "ajv": "^8.18.0", + "ajv-draft-04": "~1.0.0", + "ajv-errors": "~3.0.0", + "ajv-formats": "~2.1.1", + "lodash": "^4.18.1", + "tslib": "^2.8.1" }, "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": "^16.20 || ^18.18 || >= 20.17" } }, - "node_modules/array-ify": { + "node_modules/@stoplight/spectral-functions/node_modules/ajv-draft-04": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/array-ify/-/array-ify-1.0.0.tgz", - "integrity": "sha512-c5AMf34bKdvPhQ7tBGhqkgKNUzMr4WUs+WDtC2ZUGOUncbxKMTvqxYctiseW3+L4bA8ec+GcZ6/A/FW4m8ukng==", - "dev": true, - "license": "MIT" - }, - "node_modules/array-union": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", - "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", + "resolved": "https://registry.npmjs.org/ajv-draft-04/-/ajv-draft-04-1.0.0.tgz", + "integrity": "sha512-mv00Te6nmYbRp5DCwclxtt7yV/joXJPGS7nM+97GdxvuttCOfgI3K4U25zboyeX0O+myI8ERluxQe5wljMmVIw==", "license": "MIT", - "engines": { - "node": ">=8" + "peerDependencies": { + "ajv": "^8.5.0" + }, + "peerDependenciesMeta": { + "ajv": { + "optional": true + } } }, - "node_modules/arraybuffer.prototype.slice": { - "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==", - "license": "MIT", + "node_modules/@stoplight/spectral-parsers": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/@stoplight/spectral-parsers/-/spectral-parsers-1.0.5.tgz", + "integrity": "sha512-ANDTp2IHWGvsQDAY85/jQi9ZrF4mRrA5bciNHX+PUxPr4DwS6iv4h+FVWJMVwcEYdpyoIdyL+SRmHdJfQEPmwQ==", + "license": "Apache-2.0", "dependencies": { - "array-buffer-byte-length": "^1.0.1", - "call-bind": "^1.0.8", - "define-properties": "^1.2.1", - "es-abstract": "^1.23.5", - "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.6", - "is-array-buffer": "^3.0.4" + "@stoplight/json": "~3.21.0", + "@stoplight/types": "^14.1.1", + "@stoplight/yaml": "~4.3.0", + "tslib": "^2.8.1" }, "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/as-table": { - "version": "1.0.55", - "resolved": "https://registry.npmjs.org/as-table/-/as-table-1.0.55.tgz", - "integrity": "sha512-xvsWESUJn0JN421Xb9MQw6AsMHRCUknCe0Wjlxvjud80mU4E6hQf1A6NzQKcYNmYw62MfzEtXc+badstZP3JpQ==", - "license": "MIT", - "dependencies": { - "printable-characters": "^1.0.42" + "node": "^16.20 || ^18.18 || >= 20.17" } }, - "node_modules/ast-types": { - "version": "0.14.2", - "resolved": "https://registry.npmjs.org/ast-types/-/ast-types-0.14.2.tgz", - "integrity": "sha512-O0yuUDnZeQDL+ncNGlJ78BiO4jnYI3bvMsD5prT0/nsgijG/LpNBIr63gTjVTNsiGkgQhiyCShTgxt8oXOrklA==", - "license": "MIT", + "node_modules/@stoplight/spectral-parsers/node_modules/@stoplight/types": { + "version": "14.1.1", + "resolved": "https://registry.npmjs.org/@stoplight/types/-/types-14.1.1.tgz", + "integrity": "sha512-/kjtr+0t0tjKr+heVfviO9FrU/uGLc+QNX3fHJc19xsCNYqU7lVhaXxDmEID9BZTjG+/r9pK9xP/xU02XGg65g==", + "license": "Apache-2.0", "dependencies": { - "tslib": "^2.0.1" + "@types/json-schema": "^7.0.4", + "utility-types": "^3.10.0" }, "engines": { - "node": ">=4" - } - }, - "node_modules/astring": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/astring/-/astring-1.9.0.tgz", - "integrity": "sha512-LElXdjswlqjWrPpJFg1Fx4wpkOCxj1TDHlSV4PlaRxHGWko024xICaa97ZkMfs6DRKlCguiAI+rbXv5GWwXIkg==", - "license": "MIT", - "bin": { - "astring": "bin/astring" + "node": "^12.20 || >=14.13" } }, - "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==", - "license": "MIT", + "node_modules/@stoplight/spectral-ref-resolver": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/@stoplight/spectral-ref-resolver/-/spectral-ref-resolver-1.0.5.tgz", + "integrity": "sha512-gj3TieX5a9zMW29z3mBlAtDOCgN3GEc1VgZnCVlr5irmR4Qi5LuECuFItAq4pTn5Zu+sW5bqutsCH7D4PkpyAA==", + "license": "Apache-2.0", + "dependencies": { + "@stoplight/json-ref-readers": "1.2.2", + "@stoplight/json-ref-resolver": "~3.1.6", + "@stoplight/spectral-runtime": "^1.1.2", + "dependency-graph": "0.11.0", + "tslib": "^2.8.1" + }, "engines": { - "node": ">= 0.4" + "node": "^16.20 || ^18.18 || >= 20.17" } }, - "node_modules/at-least-node": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz", - "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==", - "dev": true, - "license": "ISC", + "node_modules/@stoplight/spectral-ruleset-bundler": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@stoplight/spectral-ruleset-bundler/-/spectral-ruleset-bundler-1.7.0.tgz", + "integrity": "sha512-PpIdj5Wje0T7ktxY8EUzBWLU0+mGGQHznT8nlQxTMnRhWLNYsm6HvSZDXLtMi+86yqvTuf7loJy6JvLBDzHGAA==", + "license": "Apache-2.0", + "dependencies": { + "@rollup/plugin-commonjs": "~22.0.2", + "@stoplight/path": "1.3.2", + "@stoplight/spectral-core": ">=1", + "@stoplight/spectral-formats": "^1.8.1", + "@stoplight/spectral-functions": ">=1", + "@stoplight/spectral-parsers": ">=1", + "@stoplight/spectral-ref-resolver": "^1.0.4", + "@stoplight/spectral-ruleset-migrator": "^1.9.6", + "@stoplight/spectral-rulesets": ">=1", + "@stoplight/spectral-runtime": "^1.1.2", + "@stoplight/types": "^13.6.0", + "@types/node": "*", + "pony-cause": "1.1.1", + "rollup": "~2.80.0", + "tslib": "^2.8.1", + "validate-npm-package-name": "3.0.0" + }, "engines": { - "node": ">= 4.0.0" + "node": "^16.20 || ^18.18 || >= 20.17" } }, - "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==", - "license": "MIT", + "node_modules/@stoplight/spectral-ruleset-migrator": { + "version": "1.12.2", + "resolved": "https://registry.npmjs.org/@stoplight/spectral-ruleset-migrator/-/spectral-ruleset-migrator-1.12.2.tgz", + "integrity": "sha512-9hTcyXnBGppM1kMA8vVvY6aWzF3vXbU7+mZvvd9wdPE8QdHj9NO//1s+A/TfiWOKdH9GOERC5NITCnVvbEYEWg==", + "license": "Apache-2.0", "dependencies": { - "possible-typed-array-names": "^1.0.0" + "@stoplight/json": "~3.21.0", + "@stoplight/ordered-object-literal": "~1.0.4", + "@stoplight/path": "1.3.2", + "@stoplight/spectral-functions": "^1.9.1", + "@stoplight/spectral-runtime": "^1.1.2", + "@stoplight/types": "^13.6.0", + "@stoplight/yaml": "~4.2.3", + "@types/node": "*", + "ajv": "^8.18.0", + "ast-types": "0.14.2", + "astring": "^1.9.0", + "reserved": "0.1.2", + "tslib": "^2.8.1", + "validate-npm-package-name": "3.0.0" }, "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": "^16.20 || ^18.18 || >= 20.17" } }, - "node_modules/babel-jest": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-29.7.0.tgz", - "integrity": "sha512-BrvGY3xZSwEcCzKvKsCi2GgHqDqsYkOP4/by5xCgIwGXQxIEh+8ew3gmrE1y7XRR6LHZIj6yLYnUi/mm2KXKBg==", - "dev": true, - "license": "MIT", + "node_modules/@stoplight/spectral-ruleset-migrator/node_modules/@stoplight/yaml": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/@stoplight/yaml/-/yaml-4.2.3.tgz", + "integrity": "sha512-Mx01wjRAR9C7yLMUyYFTfbUf5DimEpHMkRDQ1PKLe9dfNILbgdxyrncsOXM3vCpsQ1Hfj4bPiGl+u4u6e9Akqw==", + "license": "Apache-2.0", "dependencies": { - "@jest/transform": "^29.7.0", - "@types/babel__core": "^7.1.14", - "babel-plugin-istanbul": "^6.1.1", - "babel-preset-jest": "^29.6.3", - "chalk": "^4.0.0", - "graceful-fs": "^4.2.9", - "slash": "^3.0.0" + "@stoplight/ordered-object-literal": "^1.0.1", + "@stoplight/types": "^13.0.0", + "@stoplight/yaml-ast-parser": "0.0.48", + "tslib": "^2.2.0" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "peerDependencies": { - "@babel/core": "^7.8.0" + "node": ">=10.8" } }, - "node_modules/babel-plugin-istanbul": { - "version": "6.1.1", - "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz", - "integrity": "sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==", - "dev": true, - "license": "BSD-3-Clause", + "node_modules/@stoplight/spectral-ruleset-migrator/node_modules/@stoplight/yaml-ast-parser": { + "version": "0.0.48", + "resolved": "https://registry.npmjs.org/@stoplight/yaml-ast-parser/-/yaml-ast-parser-0.0.48.tgz", + "integrity": "sha512-sV+51I7WYnLJnKPn2EMWgS4EUfoP4iWEbrWwbXsj0MZCB/xOK8j6+C9fntIdOM50kpx45ZLC3s6kwKivWuqvyg==", + "license": "Apache-2.0" + }, + "node_modules/@stoplight/spectral-rulesets": { + "version": "1.22.7", + "resolved": "https://registry.npmjs.org/@stoplight/spectral-rulesets/-/spectral-rulesets-1.22.7.tgz", + "integrity": "sha512-cT1B6Ly21923lvr235lu7iIgmcnoCTJaN3ANOyTqr4D5GA/4p2k0+yhjhdfj/1ks/Os3kUzSFnFkzpWH7WszFA==", + "license": "Apache-2.0", "dependencies": { - "@babel/helper-plugin-utils": "^7.0.0", - "@istanbuljs/load-nyc-config": "^1.0.0", - "@istanbuljs/schema": "^0.1.2", - "istanbul-lib-instrument": "^5.0.4", - "test-exclude": "^6.0.0" + "@asyncapi/specs": "6.11.1", + "@scarf/scarf": "^1.4.0", + "@stoplight/better-ajv-errors": "1.0.3", + "@stoplight/json": "^3.17.0", + "@stoplight/spectral-core": "^1.23.0", + "@stoplight/spectral-formats": "^1.8.1", + "@stoplight/spectral-functions": "^1.9.1", + "@stoplight/spectral-runtime": "^1.1.2", + "@stoplight/types": "^13.6.0", + "@types/json-schema": "^7.0.7", + "ajv": "^8.18.0", + "ajv-formats": "~2.1.1", + "json-schema-traverse": "^1.0.0", + "leven": "3.1.0", + "lodash": "^4.18.1", + "tslib": "^2.8.1" }, "engines": { - "node": ">=8" + "node": "^16.20 || ^18.18 || >= 20.17" } }, - "node_modules/babel-plugin-istanbul/node_modules/istanbul-lib-instrument": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz", - "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==", - "dev": true, - "license": "BSD-3-Clause", + "node_modules/@stoplight/spectral-runtime": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/@stoplight/spectral-runtime/-/spectral-runtime-1.1.6.tgz", + "integrity": "sha512-Y8rEDyMN4bSMJCrDs2shdcVHYyCnH3FvXRP4dBhha4Z8iJv+JPp7KqOV/hwVB/hWFC209upiwj2oDmLfR0qCDg==", + "license": "Apache-2.0", "dependencies": { - "@babel/core": "^7.12.3", - "@babel/parser": "^7.14.7", - "@istanbuljs/schema": "^0.1.2", - "istanbul-lib-coverage": "^3.2.0", - "semver": "^6.3.0" + "@stoplight/json": "^3.20.1", + "@stoplight/path": "^1.3.2", + "@stoplight/types": "^13.6.0", + "lodash": "^4.18.1", + "node-fetch": "^2.7.0", + "tslib": "^2.8.1" }, "engines": { - "node": ">=8" - } - }, - "node_modules/babel-plugin-istanbul/node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "dev": true, - "license": "ISC", - "bin": { - "semver": "bin/semver.js" + "node": "^16.20 || ^18.18 || >= 20.17" } }, - "node_modules/babel-plugin-jest-hoist": { - "version": "29.6.3", - "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-29.6.3.tgz", - "integrity": "sha512-ESAc/RJvGTFEzRwOTT4+lNDk/GNHMkKbNzsvT0qKRfDyyYTskxB5rnU2njIDYVxXCBHHEI1c0YwHob3WaYujOg==", - "dev": true, - "license": "MIT", + "node_modules/@stoplight/types": { + "version": "13.20.0", + "resolved": "https://registry.npmjs.org/@stoplight/types/-/types-13.20.0.tgz", + "integrity": "sha512-2FNTv05If7ib79VPDA/r9eUet76jewXFH2y2K5vuge6SXbRHtWBhcaRmu+6QpF4/WRNoJj5XYRSwLGXDxysBGA==", + "license": "Apache-2.0", "dependencies": { - "@babel/template": "^7.3.3", - "@babel/types": "^7.3.3", - "@types/babel__core": "^7.1.14", - "@types/babel__traverse": "^7.0.6" + "@types/json-schema": "^7.0.4", + "utility-types": "^3.10.0" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/babel-preset-current-node-syntax": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.2.0.tgz", - "integrity": "sha512-E/VlAEzRrsLEb2+dv8yp3bo4scof3l9nR4lrld+Iy5NyVqgVYUJnDAmunkhPMisRI32Qc4iRiz425d8vM++2fg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/plugin-syntax-async-generators": "^7.8.4", - "@babel/plugin-syntax-bigint": "^7.8.3", - "@babel/plugin-syntax-class-properties": "^7.12.13", - "@babel/plugin-syntax-class-static-block": "^7.14.5", - "@babel/plugin-syntax-import-attributes": "^7.24.7", - "@babel/plugin-syntax-import-meta": "^7.10.4", - "@babel/plugin-syntax-json-strings": "^7.8.3", - "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4", - "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", - "@babel/plugin-syntax-numeric-separator": "^7.10.4", - "@babel/plugin-syntax-object-rest-spread": "^7.8.3", - "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", - "@babel/plugin-syntax-optional-chaining": "^7.8.3", - "@babel/plugin-syntax-private-property-in-object": "^7.14.5", - "@babel/plugin-syntax-top-level-await": "^7.14.5" - }, - "peerDependencies": { - "@babel/core": "^7.0.0 || ^8.0.0-0" + "node": "^12.20 || >=14.13" } }, - "node_modules/babel-preset-jest": { - "version": "29.6.3", - "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-29.6.3.tgz", - "integrity": "sha512-0B3bhxR6snWXJZtR/RliHTDPRgn1sNHOR0yVtq/IiQFyuOVjFS+wuio/R4gSNkyYmKmJB4wGZv2NZanmKmTnNA==", - "dev": true, - "license": "MIT", + "node_modules/@stoplight/yaml": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@stoplight/yaml/-/yaml-4.3.0.tgz", + "integrity": "sha512-JZlVFE6/dYpP9tQmV0/ADfn32L9uFarHWxfcRhReKUnljz1ZiUM5zpX+PH8h5CJs6lao3TuFqnPm9IJJCEkE2w==", + "license": "Apache-2.0", "dependencies": { - "babel-plugin-jest-hoist": "^29.6.3", - "babel-preset-current-node-syntax": "^1.0.0" + "@stoplight/ordered-object-literal": "^1.0.5", + "@stoplight/types": "^14.1.1", + "@stoplight/yaml-ast-parser": "0.0.50", + "tslib": "^2.2.0" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" + "node": ">=10.8" } }, - "node_modules/backslash": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/backslash/-/backslash-0.2.2.tgz", - "integrity": "sha512-PKRYPE2LLTtNUYz1dszquxKSBs6XyLyJRHgFpY5rlq7y3DscDx239k5Gm+zenoY47OU4CApan1o0k2R8ptZC1Q==" - }, - "node_modules/balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "license": "MIT" - }, - "node_modules/base64-js": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", - "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT" + "node_modules/@stoplight/yaml-ast-parser": { + "version": "0.0.50", + "resolved": "https://registry.npmjs.org/@stoplight/yaml-ast-parser/-/yaml-ast-parser-0.0.50.tgz", + "integrity": "sha512-Pb6M8TDO9DtSVla9yXSTAxmo9GVEouq5P40DWXdOie69bXogZTkgvopCq+yEvTMA0F6PEvdJmbtTV3ccIp11VQ==", + "license": "Apache-2.0" }, - "node_modules/baseline-browser-mapping": { - "version": "2.11.23", - "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.11.23.tgz", - "integrity": "sha512-le521dGVfxM7yRX0EikCoSz+rOK+hHzdDt/E7mG1jOJB/6WAAUuwVroLwaB7ApaUsz5Q0kFlDXLSA9MheUIfRQ==", - "dev": true, + "node_modules/@stoplight/yaml/node_modules/@stoplight/types": { + "version": "14.1.1", + "resolved": "https://registry.npmjs.org/@stoplight/types/-/types-14.1.1.tgz", + "integrity": "sha512-/kjtr+0t0tjKr+heVfviO9FrU/uGLc+QNX3fHJc19xsCNYqU7lVhaXxDmEID9BZTjG+/r9pK9xP/xU02XGg65g==", "license": "Apache-2.0", - "bin": { - "baseline-browser-mapping": "dist/cli.cjs" + "dependencies": { + "@types/json-schema": "^7.0.4", + "utility-types": "^3.10.0" }, "engines": { - "node": ">=6.0.0" + "node": "^12.20 || >=14.13" } }, - "node_modules/before-after-hook": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-4.0.0.tgz", - "integrity": "sha512-q6tR3RPqIB1pMiTRMFcZwuG5T8vwp+vUvEG0vuI6B+Rikh5BfPp2fQ82c925FOs+b0lcFQ8CFrL+KbilfZFhOQ==", - "dev": true, - "license": "Apache-2.0" - }, - "node_modules/bl": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz", - "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==", + "node_modules/@tybys/wasm-util": { + "version": "0.10.2", + "resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.2.tgz", + "integrity": "sha512-RoBvJ2X0wuKlWFIjrwffGw1IqZHKQqzIchKaadZZfnNpsAYp2mM0h36JtPCjNDAHGgYez/15uMBpfGwchhiMgg==", "dev": true, "license": "MIT", + "optional": true, "dependencies": { - "buffer": "^5.5.0", - "inherits": "^2.0.4", - "readable-stream": "^3.4.0" + "tslib": "^2.4.0" } }, - "node_modules/bl/node_modules/readable-stream": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", - "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "node_modules/@types/chai": { + "version": "5.2.3", + "resolved": "https://registry.npmjs.org/@types/chai/-/chai-5.2.3.tgz", + "integrity": "sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==", "dev": true, "license": "MIT", "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" + "@types/deep-eql": "*", + "assertion-error": "^2.0.1" } }, - "node_modules/bluebird": { - "version": "3.7.2", - "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", - "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==", - "dev": true, - "license": "MIT" - }, - "node_modules/bottleneck": { - "version": "2.19.5", - "resolved": "https://registry.npmjs.org/bottleneck/-/bottleneck-2.19.5.tgz", - "integrity": "sha512-VHiNCbI1lKdl44tGrhNfU3lup0Tj/ZBMJB5/2ZbNXRCPuRCO7ed2mgcK4r17y+KB2EfuYuRaVlwNbAeaWGSpbw==", + "node_modules/@types/deep-eql": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@types/deep-eql/-/deep-eql-4.0.2.tgz", + "integrity": "sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==", "dev": true, "license": "MIT" }, - "node_modules/brace-expansion": { - "version": "1.1.18", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.18.tgz", - "integrity": "sha512-Edep/X9fGqVNmzKBVsDYIOtD+z1tuezV70LBjdCst9Tqu76lsnvRiZ6oTic1n+/BIwX6QDGAO94PN4N2SADvtw==", + "node_modules/@types/es-aggregate-error": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/@types/es-aggregate-error/-/es-aggregate-error-1.0.6.tgz", + "integrity": "sha512-qJ7LIFp06h1QE1aVxbVd+zJP2wdaugYXYfd6JxsyRMrYHaxb6itXPogW2tz+ylUJ1n1b+JF1PHyYCfYHm0dvUg==", "license": "MIT", "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" + "@types/node": "*" } }, - "node_modules/braces": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", - "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", - "license": "MIT", - "dependencies": { - "fill-range": "^7.1.1" - }, - "engines": { - "node": ">=8" - } + "node_modules/@types/esrecurse": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/@types/esrecurse/-/esrecurse-4.3.1.tgz", + "integrity": "sha512-xJBAbDifo5hpffDBuHl0Y8ywswbiAp/Wi7Y/GtAgSlZyIABppyurxVueOPE8LUQOxdlgi6Zqce7uoEpqNTeiUw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/estree": { + "version": "0.0.39", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.39.tgz", + "integrity": "sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw==", + "license": "MIT" + }, + "node_modules/@types/json-schema": { + "version": "7.0.15", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", + "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", + "license": "MIT" }, - "node_modules/browserslist": { - "version": "4.28.9", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.9.tgz", - "integrity": "sha512-EWazOblFYUvlGZcfGhPUPmYh3nikUxBVb+y9MJun5f3hBi812X+8MSQTujLBtgK3cf51fJWbWfOjyeO954d+Eg==", + "node_modules/@types/linkify-it": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@types/linkify-it/-/linkify-it-5.0.0.tgz", + "integrity": "sha512-sVDA58zAw4eWAffKOaQH5/5j3XeayukzDk+ewSsnv3p4yJEZHCCzMDiZM8e0OUrRvmpGZ85jf4yDHkHsgBNr9Q==", "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/browserslist" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", - "dependencies": { - "baseline-browser-mapping": "^2.11.20", - "caniuse-lite": "^1.0.30001810", - "electron-to-chromium": "^1.5.420", - "node-releases": "^2.0.54", - "update-browserslist-db": "^1.3.2" - }, - "bin": { - "browserslist": "cli.js" - }, - "engines": { - "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" - } + "license": "MIT" }, - "node_modules/bser": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz", - "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", + "node_modules/@types/markdown-escape": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/@types/markdown-escape/-/markdown-escape-1.1.3.tgz", + "integrity": "sha512-JIc1+s3y5ujKnt/+N+wq6s/QdL2qZ11fP79MijrVXsAAnzSxCbT2j/3prHRouJdZ2yFLN3vkP0HytfnoCczjOw==", + "license": "MIT" + }, + "node_modules/@types/markdown-it": { + "version": "14.2.0", + "resolved": "https://registry.npmjs.org/@types/markdown-it/-/markdown-it-14.2.0.tgz", + "integrity": "sha512-NoQ2yGlLWj4wpxMs+TYmRKk3thDrQ97agr7sFqfLsAlvoS8SNQuTrlObhFqG9iugdTtgOE9jpJ6FNM4ZGsa5xQ==", "dev": true, - "license": "Apache-2.0", + "license": "MIT", "dependencies": { - "node-int64": "^0.4.0" + "@types/linkify-it": "^5", + "@types/mdurl": "^2" } }, - "node_modules/buffer": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", - "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", + "node_modules/@types/mdurl": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@types/mdurl/-/mdurl-2.0.0.tgz", + "integrity": "sha512-RGdgjQUZba5p6QEFAVx2OGb8rQDL/cPRG7GiedRzMcJ1tYnUANBncjbSB1NRGwbvjcPeikRABz2nshyPk1bhWg==", "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], + "license": "MIT" + }, + "node_modules/@types/node": { + "version": "26.5.1", + "resolved": "https://registry.npmjs.org/@types/node/-/node-26.5.1.tgz", + "integrity": "sha512-CzNm2FezW4VR/LjG6yUdiEgLE/rAQ9Slj5gCu/C2VrdcW7I0ahNZ8DRbHT7zOZ6r3ONgd/bsQIeSaoDGrd1C6g==", "license": "MIT", "dependencies": { - "base64-js": "^1.3.1", - "ieee754": "^1.1.13" + "undici-types": "~8.9.0" } }, - "node_modules/buffer-from": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", - "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", + "node_modules/@types/normalize-package-data": { + "version": "2.4.4", + "resolved": "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.4.tgz", + "integrity": "sha512-37i+OaWTh9qeK4LSHPsyRC7NahnGotNuZvjLSgcPzblpHB3rrCJxAOgI5gCdKm7coonsaX1Of0ILiTcnZjbfxA==", "dev": true, "license": "MIT" }, - "node_modules/builtins": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/builtins/-/builtins-1.0.3.tgz", - "integrity": "sha512-uYBjakWipfaO/bXI7E8rq6kpwHRZK5cNYrUv2OzZSI/FvmdMyXJ2tG9dKcjEC5YHmHpUAwsargWIZNWdxb/bnQ==", + "node_modules/@types/sarif": { + "version": "2.1.7", + "resolved": "https://registry.npmjs.org/@types/sarif/-/sarif-2.1.7.tgz", + "integrity": "sha512-kRz0VEkJqWLf1LLVN4pT1cg1Z9wAuvI6L97V3m2f5B76Tg8d413ddvLBPTEHAZJlnn4XSvu0FkZtViCQGVyrXQ==", "license": "MIT" }, - "node_modules/call-bind": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.9.tgz", - "integrity": "sha512-a/hy+pNsFUTR+Iz8TCJvXudKVLAnz/DyeSUo10I5yvFDQJBFU2s9uqQpoSrJlroHUKoKqzg+epxyP9lqFdzfBQ==", + "node_modules/@types/urijs": { + "version": "1.19.26", + "resolved": "https://registry.npmjs.org/@types/urijs/-/urijs-1.19.26.tgz", + "integrity": "sha512-wkXrVzX5yoqLnndOwFsieJA7oKM8cNkOKJtf/3vVGSUFkWDKZvFHpIl9Pvqb/T9UsawBBFMTTD8xu7sK5MWuvg==", + "license": "MIT" + }, + "node_modules/@vitest/coverage-v8": { + "version": "4.1.8", + "resolved": "https://registry.npmjs.org/@vitest/coverage-v8/-/coverage-v8-4.1.8.tgz", + "integrity": "sha512-lt3kovsyHwYe00wq4D1ti0Z974fWj4NLp6siqiyEufUpyFwK9Yhi7rBhac9JL5aA0zoMrJqc4vYPZRUnI7l7nw==", + "dev": true, "license": "MIT", "dependencies": { - "call-bind-apply-helpers": "^1.0.2", - "es-define-property": "^1.0.1", - "get-intrinsic": "^1.3.0", - "set-function-length": "^1.2.2" - }, - "engines": { - "node": ">= 0.4" + "@bcoe/v8-coverage": "^1.0.2", + "@vitest/utils": "4.1.8", + "ast-v8-to-istanbul": "^1.0.0", + "istanbul-lib-coverage": "^3.2.2", + "istanbul-lib-report": "^3.0.1", + "istanbul-reports": "^3.2.0", + "magicast": "^0.5.2", + "obug": "^2.1.1", + "std-env": "^4.0.0-rc.1", + "tinyrainbow": "^3.1.0" }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "url": "https://opencollective.com/vitest" + }, + "peerDependencies": { + "@vitest/browser": "4.1.8", + "vitest": "4.1.8" + }, + "peerDependenciesMeta": { + "@vitest/browser": { + "optional": true + } } }, - "node_modules/call-bind-apply-helpers": { + "node_modules/@vitest/coverage-v8/node_modules/@bcoe/v8-coverage": { "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==", + "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-1.0.2.tgz", + "integrity": "sha512-6zABk/ECA/QYSCQ1NGiVwwbQerUCZ+TQbp64Q3AgmfNvurHH0j8TtXa1qbShXA6qqkpAj4V5W8pP6mLe1mcMqA==", + "dev": true, "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "function-bind": "^1.1.2" - }, "engines": { - "node": ">= 0.4" + "node": ">=18" } }, - "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==", + "node_modules/@vitest/expect": { + "version": "4.1.8", + "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-4.1.8.tgz", + "integrity": "sha512-h3nDO677RDLEGlBxyQ5CW8RlMThSKSRLUePLOx09gNIWRL40edgA1GCZSZgf1W55MFAG6/Sw14KeaAnqv0NKdQ==", + "dev": true, "license": "MIT", "dependencies": { - "call-bind-apply-helpers": "^1.0.2", - "get-intrinsic": "^1.3.0" - }, - "engines": { - "node": ">= 0.4" + "@standard-schema/spec": "^1.1.0", + "@types/chai": "^5.2.2", + "@vitest/spy": "4.1.8", + "@vitest/utils": "4.1.8", + "chai": "^6.2.2", + "tinyrainbow": "^3.1.0" }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "url": "https://opencollective.com/vitest" } }, - "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/@vitest/mocker": { + "version": "4.1.8", + "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-4.1.8.tgz", + "integrity": "sha512-LEiN/xe4OSIbKe9HQIp5OC24agGD9J5CnmMgsLohVVoOPWL9a2sBoR6VBx43jQZb7Kr1l4RCuyCJzcAa0+dojw==", "dev": true, "license": "MIT", - "engines": { - "node": ">=6" + "dependencies": { + "@vitest/spy": "4.1.8", + "estree-walker": "^3.0.3", + "magic-string": "^0.30.21" + }, + "funding": { + "url": "https://opencollective.com/vitest" + }, + "peerDependencies": { + "msw": "^2.4.9", + "vite": "^6.0.0 || ^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "msw": { + "optional": true + }, + "vite": { + "optional": true + } } }, - "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/@vitest/mocker/node_modules/@types/estree": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.9.tgz", + "integrity": "sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==", + "dev": true, + "license": "MIT" + }, + "node_modules/@vitest/mocker/node_modules/estree-walker": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz", + "integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==", "dev": true, "license": "MIT", - "engines": { - "node": ">=6" + "dependencies": { + "@types/estree": "^1.0.0" } }, - "node_modules/caniuse-lite": { - "version": "1.0.30001810", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001810.tgz", - "integrity": "sha512-TITQPUkaz+aVk5GL6NhOdwk1aEaNTSDPsGFWrTuhKGtjTF70jL/Oht2W4c6rXUe5fu7Ie19VIahAXHIIiWWNeg==", + "node_modules/@vitest/mocker/node_modules/magic-string": { + "version": "0.30.21", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz", + "integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==", "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/caniuse-lite" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "CC-BY-4.0" + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.5" + } }, - "node_modules/catharsis": { - "version": "0.9.0", - "resolved": "https://registry.npmjs.org/catharsis/-/catharsis-0.9.0.tgz", - "integrity": "sha512-prMTQVpcns/tzFgFVkVp6ak6RykZyWb3gu8ckUpd6YkTlacOd3DXGJjIpD4Q6zJirizvaiAjSSHlOsA+6sNh2A==", + "node_modules/@vitest/pretty-format": { + "version": "4.1.8", + "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-4.1.8.tgz", + "integrity": "sha512-9GasEBxpZ1VYIpqHf/0+YGg121uSNwCKOJqIrTwWP/TB7DmFCiaBpNl3aPZzoLWfWkuqhbH8vJIVobZkvdo2cA==", "dev": true, "license": "MIT", "dependencies": { - "lodash": "^4.17.15" + "tinyrainbow": "^3.1.0" }, - "engines": { - "node": ">= 10" + "funding": { + "url": "https://opencollective.com/vitest" } }, - "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/@vitest/runner": { + "version": "4.1.8", + "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-4.1.8.tgz", + "integrity": "sha512-EmVxeBAfMJvycdjd6Hm+RbFBbA9fKvo0Kx37hNpBYoYeavH3RNsBXWDooR1mgD52dCrxIIuP7UotpfiwOikvcg==", + "dev": true, "license": "MIT", "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" + "@vitest/utils": "4.1.8", + "pathe": "^2.0.3" }, "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" + "url": "https://opencollective.com/vitest" } }, - "node_modules/char-regex": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz", - "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==", + "node_modules/@vitest/snapshot": { + "version": "4.1.8", + "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-4.1.8.tgz", + "integrity": "sha512-acfZboRmAIf05DEKcBQy33VXojFJjtUdLyo7oOmV9kebb2xdU01UknNiPuPZoJZQyO7DF0gZdTGTpeAzET9QPQ==", "dev": true, "license": "MIT", - "engines": { - "node": ">=10" + "dependencies": { + "@vitest/pretty-format": "4.1.8", + "@vitest/utils": "4.1.8", + "magic-string": "^0.30.21", + "pathe": "^2.0.3" + }, + "funding": { + "url": "https://opencollective.com/vitest" } }, - "node_modules/chownr": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz", - "integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==", - "dev": true, - "license": "ISC" - }, - "node_modules/ci-info": { - "version": "3.9.0", - "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.9.0.tgz", - "integrity": "sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==", + "node_modules/@vitest/snapshot/node_modules/magic-string": { + "version": "0.30.21", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz", + "integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==", "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/sibiraj-s" - } - ], "license": "MIT", - "engines": { - "node": ">=8" + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.5" } }, - "node_modules/cjs-module-lexer": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.4.3.tgz", - "integrity": "sha512-9z8TZaGM1pfswYeXrUpzPrkx8UnWYdhJclsiYMm6x/w5+nN+8Tf/LnAgfLGQCm59qAOxU8WwHEq2vNwF6i4j+Q==", - "dev": true, - "license": "MIT" - }, - "node_modules/clean-stack": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz", - "integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==", + "node_modules/@vitest/spy": { + "version": "4.1.8", + "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-4.1.8.tgz", + "integrity": "sha512-6EevtBp6OZOPF7bmz36HrGMeP3txgVSrgebWxHOafDXGkhIzfXK14f8KF6MuFfgXXUeHxmpD3BQxkV00/3s5mA==", "dev": true, "license": "MIT", - "engines": { - "node": ">=6" + "funding": { + "url": "https://opencollective.com/vitest" } }, - "node_modules/cli-highlight": { - "version": "2.1.11", - "resolved": "https://registry.npmjs.org/cli-highlight/-/cli-highlight-2.1.11.tgz", - "integrity": "sha512-9KDcoEVwyUXrjcJNvHD0NFc/hiwe/WPVYIleQh2O1N2Zro5gWJZ/K+3DGn8w8P/F6FxOgzyC5bxDyHIgCSPhGg==", + "node_modules/@vitest/utils": { + "version": "4.1.8", + "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-4.1.8.tgz", + "integrity": "sha512-uOJamYALNhfJ6iolExyQM40yIQwDqYnkKtQ5VCiSe17E33H0aQ/u+1GlRuz4LZBk6Mm3sg90G9hEbmEt37C1Zg==", "dev": true, - "license": "ISC", + "license": "MIT", "dependencies": { - "chalk": "^4.0.0", - "highlight.js": "^10.7.1", - "mz": "^2.4.0", - "parse5": "^5.1.1", - "parse5-htmlparser2-tree-adapter": "^6.0.0", - "yargs": "^16.0.0" + "@vitest/pretty-format": "4.1.8", + "convert-source-map": "^2.0.0", + "tinyrainbow": "^3.1.0" }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/acorn": { + "version": "8.18.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.18.0.tgz", + "integrity": "sha512-lGq+9yr1/GuAWaVYIHRjvvySG5/4VfKIvC8EWxStPdcDh/Ka7FG3twP6v4d5BkravUilhIAsG4Qj83t02LWUPQ==", + "dev": true, + "license": "MIT", "bin": { - "highlight": "bin/highlight" + "acorn": "bin/acorn" }, "engines": { - "node": ">=8.0.0", - "npm": ">=5.0.0" + "node": ">=0.4.0" + } + }, + "node_modules/acorn-jsx": { + "version": "5.3.2", + "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" } }, - "node_modules/cli-highlight/node_modules/yargs": { - "version": "16.2.2", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.2.tgz", - "integrity": "sha512-Nt9ZJjXTv5R8MHbqby/wXQ6Gi0Bb3TcYZkR1bzuL4yB2OxWPkXknz513gEF0GoA6tn00UpbPvERW8rzCuWCA6w==", + "node_modules/agent-base": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", + "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", "dev": true, "license": "MIT", "dependencies": { - "cliui": "^7.0.2", - "escalade": "^3.1.1", - "get-caller-file": "^2.0.5", - "require-directory": "^2.1.1", - "string-width": "^4.2.0", - "y18n": "^5.0.5", - "yargs-parser": "^20.2.2" + "debug": "4" }, "engines": { - "node": ">=10" + "node": ">= 6.0.0" } }, - "node_modules/cli-highlight/node_modules/yargs-parser": { - "version": "20.2.9", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", - "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", + "node_modules/aggregate-error": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz", + "integrity": "sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==", "dev": true, - "license": "ISC", + "license": "MIT", + "dependencies": { + "clean-stack": "^2.0.0", + "indent-string": "^4.0.0" + }, "engines": { - "node": ">=10" + "node": ">=8" } }, - "node_modules/cli-table3": { - "version": "0.6.5", - "resolved": "https://registry.npmjs.org/cli-table3/-/cli-table3-0.6.5.tgz", - "integrity": "sha512-+W/5efTR7y5HRD7gACw9yQjqMVvEMLBHmboM/kPWam+H+Hmyrgjh6YncVKK122YZkXrLudzTuAukUw9FnMf7IQ==", - "dev": true, + "node_modules/ajv": { + "version": "8.20.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.20.0.tgz", + "integrity": "sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==", "license": "MIT", "dependencies": { - "string-width": "^4.2.0" - }, - "engines": { - "node": "10.* || >= 12.*" + "fast-deep-equal": "^3.1.3", + "fast-uri": "^3.0.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2" }, - "optionalDependencies": { - "@colors/colors": "1.5.0" + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" } }, - "node_modules/cliui": { - "version": "7.0.4", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", - "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", - "license": "ISC", + "node_modules/ajv-errors": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/ajv-errors/-/ajv-errors-3.0.0.tgz", + "integrity": "sha512-V3wD15YHfHz6y0KdhYFjyy9vWtEVALT9UrxfN3zqlI6dMioHnJrqOYfyPKol3oqrnCM9uwkcdCwkJ0WUcbLMTQ==", + "license": "MIT", + "peerDependencies": { + "ajv": "^8.0.1" + } + }, + "node_modules/ajv-formats": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-2.1.1.tgz", + "integrity": "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==", + "license": "MIT", "dependencies": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.0", - "wrap-ansi": "^7.0.0" + "ajv": "^8.0.0" + }, + "peerDependencies": { + "ajv": "^8.0.0" + }, + "peerDependenciesMeta": { + "ajv": { + "optional": true + } } }, - "node_modules/clone": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz", - "integrity": "sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg==", + "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==", "license": "MIT", "engines": { - "node": ">=0.8" + "node": ">=8" } }, - "node_modules/co": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", - "integrity": "sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==", - "dev": true, + "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==", "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, "engines": { - "iojs": ">= 1.0.0", - "node": ">= 0.12.0" + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/collect-v8-coverage": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.3.tgz", - "integrity": "sha512-1L5aqIkwPfiodaMgQunkF1zRhNqifHBmtbbbxcr6yVxxBnliw4TDOW6NxpO8DJLgJ16OT+Y4ztZqP6p/FtXnAw==", + "node_modules/any-promise": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/any-promise/-/any-promise-1.3.0.tgz", + "integrity": "sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==", "dev": true, "license": "MIT" }, - "node_modules/color-convert": { + "node_modules/argparse": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "license": "Python-2.0" + }, + "node_modules/argv-formatter": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/argv-formatter/-/argv-formatter-1.0.0.tgz", + "integrity": "sha512-F2+Hkm9xFaRg+GkaNnbwXNDV5O6pnCFEmqyhvfC/Ic5LbgOWjJh3L+mN/s91rxVL3znE7DYVpW0GJFT+4YBgWw==", + "dev": true, + "license": "MIT" + }, + "node_modules/array-buffer-byte-length": { + "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==", "license": "MIT", "dependencies": { - "color-name": "~1.1.4" + "call-bound": "^1.0.3", + "is-array-buffer": "^3.0.5" }, "engines": { - "node": ">=7.0.0" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "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==", + "node_modules/array-ify": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/array-ify/-/array-ify-1.0.0.tgz", + "integrity": "sha512-c5AMf34bKdvPhQ7tBGhqkgKNUzMr4WUs+WDtC2ZUGOUncbxKMTvqxYctiseW3+L4bA8ec+GcZ6/A/FW4m8ukng==", + "dev": true, "license": "MIT" }, - "node_modules/commander": { - "version": "10.0.1", - "resolved": "https://registry.npmjs.org/commander/-/commander-10.0.1.tgz", - "integrity": "sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug==", + "node_modules/array-union": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", + "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", "license": "MIT", "engines": { - "node": ">=14" + "node": ">=8" } }, - "node_modules/commondir": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", - "integrity": "sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==", - "license": "MIT" - }, - "node_modules/compare-func": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/compare-func/-/compare-func-2.0.0.tgz", - "integrity": "sha512-zHig5N+tPWARooBnb0Zx1MFcdfpyJrfTJ3Y5L+IFvUm8rM74hHz66z0gw0x4tijh5CorKkKUCnW82R2vmpeCRA==", - "dev": true, + "node_modules/arraybuffer.prototype.slice": { + "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==", "license": "MIT", "dependencies": { - "array-ify": "^1.0.0", - "dot-prop": "^5.1.0" + "array-buffer-byte-length": "^1.0.1", + "call-bind": "^1.0.8", + "define-properties": "^1.2.1", + "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" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", - "license": "MIT" + "node_modules/as-table": { + "version": "1.0.55", + "resolved": "https://registry.npmjs.org/as-table/-/as-table-1.0.55.tgz", + "integrity": "sha512-xvsWESUJn0JN421Xb9MQw6AsMHRCUknCe0Wjlxvjud80mU4E6hQf1A6NzQKcYNmYw62MfzEtXc+badstZP3JpQ==", + "license": "MIT", + "dependencies": { + "printable-characters": "^1.0.42" + } }, - "node_modules/config-chain": { - "version": "1.1.13", - "resolved": "https://registry.npmjs.org/config-chain/-/config-chain-1.1.13.tgz", - "integrity": "sha512-qj+f8APARXHrM0hraqXYb2/bOVSV4PvJQlNZ/DVj0QrmNM2q2euizkeuVckQ57J+W0mRH6Hvi+k50M4Jul2VRQ==", + "node_modules/assertion-error": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-2.0.1.tgz", + "integrity": "sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==", "dev": true, "license": "MIT", - "dependencies": { - "ini": "^1.3.4", - "proto-list": "~1.2.1" + "engines": { + "node": ">=12" } }, - "node_modules/console-table-printer": { - "version": "2.16.1", - "resolved": "https://registry.npmjs.org/console-table-printer/-/console-table-printer-2.16.1.tgz", - "integrity": "sha512-Sc9FRJ4O9xKGNrvulNdPfK5SyBcZ6lcaRnDE4AQ/uw6IDtjHhsqyzzqcnMikjyGaiOOF2tNOKoBhbVjRvFy9Lw==", + "node_modules/ast-types": { + "version": "0.14.2", + "resolved": "https://registry.npmjs.org/ast-types/-/ast-types-0.14.2.tgz", + "integrity": "sha512-O0yuUDnZeQDL+ncNGlJ78BiO4jnYI3bvMsD5prT0/nsgijG/LpNBIr63gTjVTNsiGkgQhiyCShTgxt8oXOrklA==", "license": "MIT", "dependencies": { - "simple-wcswidth": "^1.1.2" + "tslib": "^2.0.1" + }, + "engines": { + "node": ">=4" } }, - "node_modules/content-type": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/content-type/-/content-type-3.1.0.tgz", - "integrity": "sha512-z26wZR7iXahgpSK7XgnB4IbRVmUNSODvsX9qC9TAru7AcWGiqn5YKy+OH3PLRrwyAnewykKhCqnD+VV3a8uT8Q==", + "node_modules/ast-v8-to-istanbul": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/ast-v8-to-istanbul/-/ast-v8-to-istanbul-1.0.3.tgz", + "integrity": "sha512-jCMQ6ZylLPudp0CDfBmQBZUsrh1/8psbmu9ibeVWKuHWD0YrH9YABwlKu5kVEFoT0GCQQW9Z/SxfuEbbkGQCRg==", "dev": true, "license": "MIT", - "engines": { - "node": ">=22" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/express" + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.31", + "estree-walker": "^3.0.3", + "js-tokens": "^10.0.0" } }, - "node_modules/conventional-changelog-angular": { - "version": "8.3.1", - "resolved": "https://registry.npmjs.org/conventional-changelog-angular/-/conventional-changelog-angular-8.3.1.tgz", - "integrity": "sha512-6gfI3otXK5Ph5DfCOI1dblr+kN3FAm5a97hYoQkqNZxOaYa5WKfXH+AnpsmS+iUH2mgVC2Cg2Qw9m5OKcmNrIg==", + "node_modules/ast-v8-to-istanbul/node_modules/@types/estree": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.9.tgz", + "integrity": "sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==", + "dev": true, + "license": "MIT" + }, + "node_modules/ast-v8-to-istanbul/node_modules/estree-walker": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz", + "integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==", "dev": true, - "license": "ISC", + "license": "MIT", "dependencies": { - "compare-func": "^2.0.0" - }, - "engines": { - "node": ">=18" + "@types/estree": "^1.0.0" } }, - "node_modules/conventional-changelog-writer": { - "version": "8.4.0", - "resolved": "https://registry.npmjs.org/conventional-changelog-writer/-/conventional-changelog-writer-8.4.0.tgz", - "integrity": "sha512-HHBFkk1EECxxmCi4CTu091iuDpQv5/OavuCUAuZmrkWpmYfyD816nom1CvtfXJ/uYfAAjavgHvXHX291tSLK8g==", + "node_modules/ast-v8-to-istanbul/node_modules/js-tokens": { + "version": "10.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-10.0.0.tgz", + "integrity": "sha512-lM/UBzQmfJRo9ABXbPWemivdCW8V2G8FHaHdypQaIy523snUjog0W71ayWXTjiR+ixeMyVHN2XcpnTd/liPg/Q==", "dev": true, + "license": "MIT" + }, + "node_modules/astring": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/astring/-/astring-1.9.0.tgz", + "integrity": "sha512-LElXdjswlqjWrPpJFg1Fx4wpkOCxj1TDHlSV4PlaRxHGWko024xICaa97ZkMfs6DRKlCguiAI+rbXv5GWwXIkg==", "license": "MIT", - "dependencies": { - "@simple-libs/stream-utils": "^1.2.0", - "conventional-commits-filter": "^5.0.0", - "handlebars": "^4.7.7", - "meow": "^13.0.0", - "semver": "^7.5.2" - }, "bin": { - "conventional-changelog-writer": "dist/cli/index.js" - }, - "engines": { - "node": ">=18" + "astring": "bin/astring" } }, - "node_modules/conventional-commits-filter": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/conventional-commits-filter/-/conventional-commits-filter-5.0.0.tgz", - "integrity": "sha512-tQMagCOC59EVgNZcC5zl7XqO30Wki9i9J3acbUvkaosCT6JX3EeFwJD7Qqp4MCikRnzS18WXV3BLIQ66ytu6+Q==", - "dev": true, + "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==", "license": "MIT", "engines": { - "node": ">=18" + "node": ">= 0.4" } }, - "node_modules/conventional-commits-parser": { - "version": "6.4.0", - "resolved": "https://registry.npmjs.org/conventional-commits-parser/-/conventional-commits-parser-6.4.0.tgz", - "integrity": "sha512-tvRg7FIBNlyPzjdG8wWRlPHQJJHI7DylhtRGeU9Lq+JuoPh5BKpPRX83ZdLrvXuOSu5Eo/e7SzOQhU4Hd2Miuw==", + "node_modules/at-least-node": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz", + "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==", "dev": true, - "license": "MIT", - "dependencies": { - "@simple-libs/stream-utils": "^1.2.0", - "meow": "^13.0.0" - }, - "bin": { - "conventional-commits-parser": "dist/cli/index.js" - }, + "license": "ISC", "engines": { - "node": ">=18" + "node": ">= 4.0.0" } }, - "node_modules/convert-hrtime": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/convert-hrtime/-/convert-hrtime-5.0.0.tgz", - "integrity": "sha512-lOETlkIeYSJWcbbcvjRKGxVMXJR+8+OQb/mTPbA4ObPMytYIsUbuOE0Jzy60hjARYszq1id0j8KgVhC+WGZVTg==", - "dev": true, + "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==", "license": "MIT", + "dependencies": { + "possible-typed-array-names": "^1.0.0" + }, "engines": { - "node": ">=12" + "node": ">= 0.4" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/convert-source-map": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", - "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", - "dev": true, + "node_modules/backslash": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/backslash/-/backslash-0.2.2.tgz", + "integrity": "sha512-PKRYPE2LLTtNUYz1dszquxKSBs6XyLyJRHgFpY5rlq7y3DscDx239k5Gm+zenoY47OU4CApan1o0k2R8ptZC1Q==" + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", "license": "MIT" }, - "node_modules/core-util-is": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", - "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==", + "node_modules/base64-js": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", + "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], "license": "MIT" }, - "node_modules/cosmiconfig": { - "version": "9.0.2", - "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-9.0.2.tgz", - "integrity": "sha512-gtTZxTDau1wL7Y7zifc2dd8jHSK/k6BTx/2Xp/BpdlAdnlYWFVt7qhJqgwi7637yRwRQ3qL4ZidbB4I8tA5VOg==", + "node_modules/before-after-hook": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-4.0.0.tgz", + "integrity": "sha512-q6tR3RPqIB1pMiTRMFcZwuG5T8vwp+vUvEG0vuI6B+Rikh5BfPp2fQ82c925FOs+b0lcFQ8CFrL+KbilfZFhOQ==", + "dev": true, + "license": "Apache-2.0" + }, + "node_modules/bl": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz", + "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==", "dev": true, "license": "MIT", "dependencies": { - "env-paths": "^2.2.1", - "import-fresh": "^3.3.0", - "js-yaml": "^4.1.0", - "parse-json": "^5.2.0" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/d-fischer" - }, - "peerDependencies": { - "typescript": ">=4.9.5" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } + "buffer": "^5.5.0", + "inherits": "^2.0.4", + "readable-stream": "^3.4.0" } }, - "node_modules/create-jest": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/create-jest/-/create-jest-29.7.0.tgz", - "integrity": "sha512-Adz2bdH0Vq3F53KEMJOoftQFutWCukm6J24wbPWRO4k1kMY7gS7ds/uoJkNuV8wDCtWWnuwGcJwpWcih+zEW1Q==", + "node_modules/bl/node_modules/readable-stream": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", "dev": true, "license": "MIT", "dependencies": { - "@jest/types": "^29.6.3", - "chalk": "^4.0.0", - "exit": "^0.1.2", - "graceful-fs": "^4.2.9", - "jest-config": "^29.7.0", - "jest-util": "^29.7.0", - "prompts": "^2.0.1" - }, - "bin": { - "create-jest": "bin/create-jest.js" + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": ">= 6" } }, - "node_modules/cross-spawn": { - "version": "7.0.6", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", - "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", + "node_modules/bluebird": { + "version": "3.7.2", + "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", + "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==", + "dev": true, + "license": "MIT" + }, + "node_modules/bottleneck": { + "version": "2.19.5", + "resolved": "https://registry.npmjs.org/bottleneck/-/bottleneck-2.19.5.tgz", + "integrity": "sha512-VHiNCbI1lKdl44tGrhNfU3lup0Tj/ZBMJB5/2ZbNXRCPuRCO7ed2mgcK4r17y+KB2EfuYuRaVlwNbAeaWGSpbw==", "dev": true, + "license": "MIT" + }, + "node_modules/brace-expansion": { + "version": "1.1.18", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.18.tgz", + "integrity": "sha512-Edep/X9fGqVNmzKBVsDYIOtD+z1tuezV70LBjdCst9Tqu76lsnvRiZ6oTic1n+/BIwX6QDGAO94PN4N2SADvtw==", "license": "MIT", "dependencies": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - }, - "engines": { - "node": ">= 8" + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" } }, - "node_modules/crypto-random-string": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-4.0.0.tgz", - "integrity": "sha512-x8dy3RnvYdlUcPOjkEHqozhiwzKNSq7GcPuXFbnyMOCHxX8V3OgIg/pYuabl2sbUPfIJaeAQB7PMOK8DFIdoRA==", - "dev": true, + "node_modules/braces": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", "license": "MIT", "dependencies": { - "type-fest": "^1.0.1" + "fill-range": "^7.1.1" }, "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=8" } }, - "node_modules/crypto-random-string/node_modules/type-fest": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-1.4.0.tgz", - "integrity": "sha512-yGSza74xk0UG8k+pLh5oeoYirvIiWo5t0/o3zHHAO2tRDiZcxWP7fywNlXhqb6/r6sWvwi+RsyQMWhVLe4BVuA==", + "node_modules/buffer": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", + "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", "dev": true, - "license": "(MIT OR CC0-1.0)", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT", + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.1.13" } }, - "node_modules/data-uri-to-buffer": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-2.0.2.tgz", - "integrity": "sha512-ND9qDTLc6diwj+Xe5cdAgVTbLVdXbtxTJRXRhli8Mowuaan+0EJOtdqJ0QCHNSSPyoXGx9HX2/VMnKeC34AChA==", + "node_modules/builtins": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/builtins/-/builtins-1.0.3.tgz", + "integrity": "sha512-uYBjakWipfaO/bXI7E8rq6kpwHRZK5cNYrUv2OzZSI/FvmdMyXJ2tG9dKcjEC5YHmHpUAwsargWIZNWdxb/bnQ==", "license": "MIT" }, - "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==", + "node_modules/call-bind": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.9.tgz", + "integrity": "sha512-a/hy+pNsFUTR+Iz8TCJvXudKVLAnz/DyeSUo10I5yvFDQJBFU2s9uqQpoSrJlroHUKoKqzg+epxyP9lqFdzfBQ==", "license": "MIT", - "dependencies": { - "call-bound": "^1.0.3", - "es-errors": "^1.3.0", - "is-data-view": "^1.0.2" + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "es-define-property": "^1.0.1", + "get-intrinsic": "^1.3.0", + "set-function-length": "^1.2.2" }, "engines": { "node": ">= 0.4" @@ -4196,32 +3018,27 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/data-view-byte-length": { + "node_modules/call-bind-apply-helpers": { "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==", + "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", + "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", "license": "MIT", "dependencies": { - "call-bound": "^1.0.3", "es-errors": "^1.3.0", - "is-data-view": "^1.0.2" + "function-bind": "^1.1.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==", + "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==", "license": "MIT", "dependencies": { - "call-bound": "^1.0.2", - "es-errors": "^1.3.0", - "is-data-view": "^1.0.1" + "call-bind-apply-helpers": "^1.0.2", + "get-intrinsic": "^1.3.0" }, "engines": { "node": ">= 0.4" @@ -4230,384 +3047,319 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/debug": { - "version": "4.4.3", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", - "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", + "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, "license": "MIT", - "dependencies": { - "ms": "^2.1.3" - }, "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } + "node": ">=6" } }, - "node_modules/decompress-response": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz", - "integrity": "sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==", + "node_modules/catharsis": { + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/catharsis/-/catharsis-0.9.0.tgz", + "integrity": "sha512-prMTQVpcns/tzFgFVkVp6ak6RykZyWb3gu8ckUpd6YkTlacOd3DXGJjIpD4Q6zJirizvaiAjSSHlOsA+6sNh2A==", "dev": true, "license": "MIT", "dependencies": { - "mimic-response": "^3.1.0" + "lodash": "^4.17.15" }, "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">= 10" } }, - "node_modules/dedent": { - "version": "1.7.2", - "resolved": "https://registry.npmjs.org/dedent/-/dedent-1.7.2.tgz", - "integrity": "sha512-WzMx3mW98SN+zn3hgemf4OzdmyNhhhKz5Ay0pUfQiMQ3e1g+xmTJWp/pKdwKVXhdSkAEGIIzqeuWrL3mV/AXbA==", + "node_modules/chai": { + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/chai/-/chai-6.2.2.tgz", + "integrity": "sha512-NUPRluOfOiTKBKvWPtSD4PhFvWCqOi0BGStNWs57X9js7XGTprSmFoz5F0tWhR4WPjNeR9jXqdC7/UpSJTnlRg==", "dev": true, "license": "MIT", - "peerDependencies": { - "babel-plugin-macros": "^3.1.0" + "engines": { + "node": ">=18" + } + }, + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" }, - "peerDependenciesMeta": { - "babel-plugin-macros": { - "optional": true - } + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/deep-extend": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", - "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", + "node_modules/char-regex": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz", + "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==", "dev": true, "license": "MIT", "engines": { - "node": ">=4.0.0" + "node": ">=10" } }, - "node_modules/deep-is": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", - "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "node_modules/chownr": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz", + "integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==", "dev": true, - "license": "MIT" + "license": "ISC" }, - "node_modules/deepmerge": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", - "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", + "node_modules/clean-stack": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz", + "integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==", "dev": true, "license": "MIT", "engines": { - "node": ">=0.10.0" + "node": ">=6" } }, - "node_modules/defaults": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/defaults/-/defaults-1.0.4.tgz", - "integrity": "sha512-eFuaLoy/Rxalv2kr+lqMlUnrDWV+3j4pljOIJgLIhI058IQfWJ7vXhyEIHu+HtC738klGALYxOKDO0bQP3tg8A==", - "license": "MIT", + "node_modules/cli-highlight": { + "version": "2.1.11", + "resolved": "https://registry.npmjs.org/cli-highlight/-/cli-highlight-2.1.11.tgz", + "integrity": "sha512-9KDcoEVwyUXrjcJNvHD0NFc/hiwe/WPVYIleQh2O1N2Zro5gWJZ/K+3DGn8w8P/F6FxOgzyC5bxDyHIgCSPhGg==", + "dev": true, + "license": "ISC", "dependencies": { - "clone": "^1.0.2" + "chalk": "^4.0.0", + "highlight.js": "^10.7.1", + "mz": "^2.4.0", + "parse5": "^5.1.1", + "parse5-htmlparser2-tree-adapter": "^6.0.0", + "yargs": "^16.0.0" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/define-data-property": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", - "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", - "license": "MIT", - "dependencies": { - "es-define-property": "^1.0.0", - "es-errors": "^1.3.0", - "gopd": "^1.0.1" + "bin": { + "highlight": "bin/highlight" }, "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": ">=8.0.0", + "npm": ">=5.0.0" } }, - "node_modules/define-properties": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz", - "integrity": "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==", + "node_modules/cli-highlight/node_modules/yargs": { + "version": "16.2.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.2.tgz", + "integrity": "sha512-Nt9ZJjXTv5R8MHbqby/wXQ6Gi0Bb3TcYZkR1bzuL4yB2OxWPkXknz513gEF0GoA6tn00UpbPvERW8rzCuWCA6w==", + "dev": true, "license": "MIT", "dependencies": { - "define-data-property": "^1.0.1", - "has-property-descriptors": "^1.0.0", - "object-keys": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" + "cliui": "^7.0.2", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.0", + "y18n": "^5.0.5", + "yargs-parser": "^20.2.2" }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/dependency-graph": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/dependency-graph/-/dependency-graph-0.11.0.tgz", - "integrity": "sha512-JeMq7fEshyepOWDfcfHK06N3MhyPhz++vtqWhMT5O9A3K42rdsEDpfdVqjaqaAhsw6a+ZqeDvQVtD0hFHQWrzg==", - "license": "MIT", - "engines": { - "node": ">= 0.6.0" - } - }, - "node_modules/detect-libc": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz", - "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==", - "dev": true, - "license": "Apache-2.0", "engines": { - "node": ">=8" + "node": ">=10" } }, - "node_modules/detect-newline": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz", - "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==", + "node_modules/cli-highlight/node_modules/yargs-parser": { + "version": "20.2.9", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", + "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", "dev": true, - "license": "MIT", + "license": "ISC", "engines": { - "node": ">=8" + "node": ">=10" } }, - "node_modules/diff-sequences": { - "version": "29.6.3", - "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.6.3.tgz", - "integrity": "sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==", + "node_modules/cli-table3": { + "version": "0.6.5", + "resolved": "https://registry.npmjs.org/cli-table3/-/cli-table3-0.6.5.tgz", + "integrity": "sha512-+W/5efTR7y5HRD7gACw9yQjqMVvEMLBHmboM/kPWam+H+Hmyrgjh6YncVKK122YZkXrLudzTuAukUw9FnMf7IQ==", "dev": true, "license": "MIT", + "dependencies": { + "string-width": "^4.2.0" + }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": "10.* || >= 12.*" + }, + "optionalDependencies": { + "@colors/colors": "1.5.0" } }, - "node_modules/dir-glob": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", - "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", - "license": "MIT", + "node_modules/cliui": { + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", + "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", + "license": "ISC", "dependencies": { - "path-type": "^4.0.0" - }, - "engines": { - "node": ">=8" + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^7.0.0" } }, - "node_modules/dot-prop": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-5.3.0.tgz", - "integrity": "sha512-QM8q3zDe58hqUqjraQOmzZ1LIH9SWQJTlEKCH4kJ2oQvLZk7RbQXvtDM2XEq3fwkV9CCvvH4LA0AV+ogFsBM2Q==", - "dev": true, + "node_modules/clone": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz", + "integrity": "sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg==", "license": "MIT", - "dependencies": { - "is-obj": "^2.0.0" - }, "engines": { - "node": ">=8" + "node": ">=0.8" } }, - "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==", + "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==", "license": "MIT", "dependencies": { - "call-bind-apply-helpers": "^1.0.1", - "es-errors": "^1.3.0", - "gopd": "^1.2.0" + "color-name": "~1.1.4" }, "engines": { - "node": ">= 0.4" - } - }, - "node_modules/duplexer2": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.1.4.tgz", - "integrity": "sha512-asLFVfWWtJ90ZyOUHMqk7/S2w2guQKxUI2itj3d92ADHhxUSbCMGi1f1cBcJ7xM1To+pE/Khbwo1yuNbMEPKeA==", - "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "readable-stream": "^2.0.2" + "node": ">=7.0.0" } }, - "node_modules/electron-to-chromium": { - "version": "1.5.427", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.427.tgz", - "integrity": "sha512-n14zb3FdsChZ2BNobqNHAJMcP3ifFv4paox2LvCrfVAQcqGiSURgbJl+PfMpHVCNFkStnNc+RRVtPBTVW5PDgw==", - "dev": true, - "license": "ISC" + "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==", + "license": "MIT" }, - "node_modules/emittery": { - "version": "0.13.1", - "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.13.1.tgz", - "integrity": "sha512-DeWwawk6r5yR9jFgnDKYt4sLS0LmHJJi3ZOnb5/JdbYwj3nW+FxQnHIjhBKz8YLC7oRNPVM9NQ47I3CVx34eqQ==", - "dev": true, + "node_modules/commander": { + "version": "10.0.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-10.0.1.tgz", + "integrity": "sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug==", "license": "MIT", "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sindresorhus/emittery?sponsor=1" + "node": ">=14" } }, - "node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "license": "MIT" - }, - "node_modules/emojilib": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/emojilib/-/emojilib-2.4.0.tgz", - "integrity": "sha512-5U0rVMU5Y2n2+ykNLQqMoqklN9ICBT/KsvC1Gz6vqHbz2AXXGkG+Pm5rMWk/8Vjrr/mY9985Hi8DYzn1F09Nyw==", - "dev": true, + "node_modules/commondir": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", + "integrity": "sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==", "license": "MIT" }, - "node_modules/end-of-stream": { - "version": "1.4.5", - "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.5.tgz", - "integrity": "sha512-ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg==", + "node_modules/compare-func": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/compare-func/-/compare-func-2.0.0.tgz", + "integrity": "sha512-zHig5N+tPWARooBnb0Zx1MFcdfpyJrfTJ3Y5L+IFvUm8rM74hHz66z0gw0x4tijh5CorKkKUCnW82R2vmpeCRA==", "dev": true, "license": "MIT", "dependencies": { - "once": "^1.4.0" + "array-ify": "^1.0.0", + "dot-prop": "^5.1.0" } }, - "node_modules/entities": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", - "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==", - "dev": true, - "license": "BSD-2-Clause", - "engines": { - "node": ">=0.12" - }, - "funding": { - "url": "https://github.com/fb55/entities?sponsor=1" - } + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "license": "MIT" }, - "node_modules/env-ci": { - "version": "11.2.0", - "resolved": "https://registry.npmjs.org/env-ci/-/env-ci-11.2.0.tgz", - "integrity": "sha512-D5kWfzkmaOQDioPmiviWAVtKmpPT4/iJmMVQxWxMPJTFyTkdc5JQUfc5iXEeWxcOdsYTKSAiA/Age4NUOqKsRA==", + "node_modules/config-chain": { + "version": "1.1.13", + "resolved": "https://registry.npmjs.org/config-chain/-/config-chain-1.1.13.tgz", + "integrity": "sha512-qj+f8APARXHrM0hraqXYb2/bOVSV4PvJQlNZ/DVj0QrmNM2q2euizkeuVckQ57J+W0mRH6Hvi+k50M4Jul2VRQ==", "dev": true, "license": "MIT", "dependencies": { - "execa": "^8.0.0", - "java-properties": "^1.0.2" - }, - "engines": { - "node": "^18.17 || >=20.6.1" + "ini": "^1.3.4", + "proto-list": "~1.2.1" } }, - "node_modules/env-ci/node_modules/execa": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/execa/-/execa-8.0.1.tgz", - "integrity": "sha512-VyhnebXciFV2DESc+p6B+y0LjSm0krU4OgJN44qFAhBY0TJ+1V61tYD2+wHusZ6F9n5K+vl8k0sTy7PEfV4qpg==", - "dev": true, + "node_modules/console-table-printer": { + "version": "2.16.1", + "resolved": "https://registry.npmjs.org/console-table-printer/-/console-table-printer-2.16.1.tgz", + "integrity": "sha512-Sc9FRJ4O9xKGNrvulNdPfK5SyBcZ6lcaRnDE4AQ/uw6IDtjHhsqyzzqcnMikjyGaiOOF2tNOKoBhbVjRvFy9Lw==", "license": "MIT", "dependencies": { - "cross-spawn": "^7.0.3", - "get-stream": "^8.0.1", - "human-signals": "^5.0.0", - "is-stream": "^3.0.0", - "merge-stream": "^2.0.0", - "npm-run-path": "^5.1.0", - "onetime": "^6.0.0", - "signal-exit": "^4.1.0", - "strip-final-newline": "^3.0.0" - }, - "engines": { - "node": ">=16.17" - }, - "funding": { - "url": "https://github.com/sindresorhus/execa?sponsor=1" + "simple-wcswidth": "^1.1.2" } }, - "node_modules/env-ci/node_modules/get-stream": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-8.0.1.tgz", - "integrity": "sha512-VaUJspBffn/LMCJVoMvSAdmscJyS1auj5Zulnn5UoYcY531UWmdwhRWkcGKnGU93m5HSXP9LP2usOryrBtQowA==", + "node_modules/content-type": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-3.1.0.tgz", + "integrity": "sha512-z26wZR7iXahgpSK7XgnB4IbRVmUNSODvsX9qC9TAru7AcWGiqn5YKy+OH3PLRrwyAnewykKhCqnD+VV3a8uT8Q==", "dev": true, "license": "MIT", "engines": { - "node": ">=16" + "node": ">=22" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "type": "opencollective", + "url": "https://opencollective.com/express" } }, - "node_modules/env-ci/node_modules/human-signals": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-5.0.0.tgz", - "integrity": "sha512-AXcZb6vzzrFAUE61HnN4mpLqd/cSIwNQjtNWR0euPm6y0iqx3G4gOXaIDdtdDwZmhwe82LA6+zinmW4UBWVePQ==", + "node_modules/conventional-changelog-angular": { + "version": "8.3.1", + "resolved": "https://registry.npmjs.org/conventional-changelog-angular/-/conventional-changelog-angular-8.3.1.tgz", + "integrity": "sha512-6gfI3otXK5Ph5DfCOI1dblr+kN3FAm5a97hYoQkqNZxOaYa5WKfXH+AnpsmS+iUH2mgVC2Cg2Qw9m5OKcmNrIg==", "dev": true, - "license": "Apache-2.0", + "license": "ISC", + "dependencies": { + "compare-func": "^2.0.0" + }, "engines": { - "node": ">=16.17.0" + "node": ">=18" } }, - "node_modules/env-ci/node_modules/is-stream": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-3.0.0.tgz", - "integrity": "sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==", + "node_modules/conventional-changelog-writer": { + "version": "8.4.0", + "resolved": "https://registry.npmjs.org/conventional-changelog-writer/-/conventional-changelog-writer-8.4.0.tgz", + "integrity": "sha512-HHBFkk1EECxxmCi4CTu091iuDpQv5/OavuCUAuZmrkWpmYfyD816nom1CvtfXJ/uYfAAjavgHvXHX291tSLK8g==", "dev": true, "license": "MIT", - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + "dependencies": { + "@simple-libs/stream-utils": "^1.2.0", + "conventional-commits-filter": "^5.0.0", + "handlebars": "^4.7.7", + "meow": "^13.0.0", + "semver": "^7.5.2" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "bin": { + "conventional-changelog-writer": "dist/cli/index.js" + }, + "engines": { + "node": ">=18" } }, - "node_modules/env-ci/node_modules/mimic-fn": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-4.0.0.tgz", - "integrity": "sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==", + "node_modules/conventional-commits-filter": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/conventional-commits-filter/-/conventional-commits-filter-5.0.0.tgz", + "integrity": "sha512-tQMagCOC59EVgNZcC5zl7XqO30Wki9i9J3acbUvkaosCT6JX3EeFwJD7Qqp4MCikRnzS18WXV3BLIQ66ytu6+Q==", "dev": true, "license": "MIT", "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=18" } }, - "node_modules/env-ci/node_modules/npm-run-path": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-5.3.0.tgz", - "integrity": "sha512-ppwTtiJZq0O/ai0z7yfudtBpWIoxM8yE6nHi1X47eFR2EWORqfbu6CnPlNsjeN683eT0qG6H/Pyf9fCcvjnnnQ==", + "node_modules/conventional-commits-parser": { + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/conventional-commits-parser/-/conventional-commits-parser-6.4.0.tgz", + "integrity": "sha512-tvRg7FIBNlyPzjdG8wWRlPHQJJHI7DylhtRGeU9Lq+JuoPh5BKpPRX83ZdLrvXuOSu5Eo/e7SzOQhU4Hd2Miuw==", "dev": true, "license": "MIT", "dependencies": { - "path-key": "^4.0.0" + "@simple-libs/stream-utils": "^1.2.0", + "meow": "^13.0.0" }, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + "bin": { + "conventional-commits-parser": "dist/cli/index.js" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "engines": { + "node": ">=18" } }, - "node_modules/env-ci/node_modules/onetime": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-6.0.0.tgz", - "integrity": "sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==", + "node_modules/convert-hrtime": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/convert-hrtime/-/convert-hrtime-5.0.0.tgz", + "integrity": "sha512-lOETlkIeYSJWcbbcvjRKGxVMXJR+8+OQb/mTPbA4ObPMytYIsUbuOE0Jzy60hjARYszq1id0j8KgVhC+WGZVTg==", "dev": true, "license": "MIT", - "dependencies": { - "mimic-fn": "^4.0.0" - }, "engines": { "node": ">=12" }, @@ -4615,38 +3367,71 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/env-ci/node_modules/path-key": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-4.0.0.tgz", - "integrity": "sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==", + "node_modules/convert-source-map": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", + "dev": true, + "license": "MIT" + }, + "node_modules/core-util-is": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", + "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/cosmiconfig": { + "version": "9.0.2", + "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-9.0.2.tgz", + "integrity": "sha512-gtTZxTDau1wL7Y7zifc2dd8jHSK/k6BTx/2Xp/BpdlAdnlYWFVt7qhJqgwi7637yRwRQ3qL4ZidbB4I8tA5VOg==", "dev": true, "license": "MIT", + "dependencies": { + "env-paths": "^2.2.1", + "import-fresh": "^3.3.0", + "js-yaml": "^4.1.0", + "parse-json": "^5.2.0" + }, "engines": { - "node": ">=12" + "node": ">=14" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://github.com/sponsors/d-fischer" + }, + "peerDependencies": { + "typescript": ">=4.9.5" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } } }, - "node_modules/env-ci/node_modules/signal-exit": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", - "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", + "node_modules/cross-spawn": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", "dev": true, - "license": "ISC", - "engines": { - "node": ">=14" + "license": "MIT", + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" }, - "funding": { - "url": "https://github.com/sponsors/isaacs" + "engines": { + "node": ">= 8" } }, - "node_modules/env-ci/node_modules/strip-final-newline": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-3.0.0.tgz", - "integrity": "sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==", + "node_modules/crypto-random-string": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-4.0.0.tgz", + "integrity": "sha512-x8dy3RnvYdlUcPOjkEHqozhiwzKNSq7GcPuXFbnyMOCHxX8V3OgIg/pYuabl2sbUPfIJaeAQB7PMOK8DFIdoRA==", "dev": true, "license": "MIT", + "dependencies": { + "type-fest": "^1.0.1" + }, "engines": { "node": ">=12" }, @@ -4654,99 +3439,34 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/env-paths": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz", - "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/environment": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/environment/-/environment-1.1.0.tgz", - "integrity": "sha512-xUtoPkMggbz0MPyPiIWr1Kp4aeWJjDZ6SMvURhimjdZgsRuDplF5/s9hcgGhyXMhs+6vpnuoiZ2kFiu3FMnS8Q==", + "node_modules/crypto-random-string/node_modules/type-fest": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-1.4.0.tgz", + "integrity": "sha512-yGSza74xk0UG8k+pLh5oeoYirvIiWo5t0/o3zHHAO2tRDiZcxWP7fywNlXhqb6/r6sWvwi+RsyQMWhVLe4BVuA==", "dev": true, - "license": "MIT", + "license": "(MIT OR CC0-1.0)", "engines": { - "node": ">=18" + "node": ">=10" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/error-ex": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.4.tgz", - "integrity": "sha512-sqQamAnR14VgCr1A618A3sGrygcpK+HEbenA/HiEAkkUwcZIIB/tgWqHFxWgOyDh4nB4JCRimh79dR5Ywc9MDQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "is-arrayish": "^0.2.1" - } + "node_modules/data-uri-to-buffer": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-2.0.2.tgz", + "integrity": "sha512-ND9qDTLc6diwj+Xe5cdAgVTbLVdXbtxTJRXRhli8Mowuaan+0EJOtdqJ0QCHNSSPyoXGx9HX2/VMnKeC34AChA==", + "license": "MIT" }, - "node_modules/es-abstract": { - "version": "1.24.2", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.24.2.tgz", - "integrity": "sha512-2FpH9Q5i2RRwyEP1AylXe6nYLR5OhaJTZwmlcP0dL/+JCbgg7yyEo/sEK6HeGZRf3dFpWwThaRHVApXSkW3xeg==", + "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==", "license": "MIT", "dependencies": { - "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", + "call-bound": "^1.0.3", "es-errors": "^1.3.0", - "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.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-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.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" + "is-data-view": "^1.0.2" }, "engines": { "node": ">= 0.4" @@ -4755,38 +3475,32 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/es-abstract-get": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/es-abstract-get/-/es-abstract-get-1.0.0.tgz", - "integrity": "sha512-6PMWXpdhshVvFp+FoWYs1EvG1Nj0tvk0dZM+XcK0xMEM1czRVcP6ohqPWHy6qPagSpC8j4+p89WXlT+xXJs/fg==", + "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==", "license": "MIT", "dependencies": { + "call-bound": "^1.0.3", "es-errors": "^1.3.0", - "es-object-atoms": "^1.1.2", - "is-callable": "^1.2.7", - "object-inspect": "^1.13.4" + "is-data-view": "^1.0.2" }, "engines": { "node": ">= 0.4" }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "url": "https://github.com/sponsors/inspect-js" } }, - "node_modules/es-aggregate-error": { - "version": "1.0.14", - "resolved": "https://registry.npmjs.org/es-aggregate-error/-/es-aggregate-error-1.0.14.tgz", - "integrity": "sha512-3YxX6rVb07B5TV11AV5wsL7nQCHXNwoHPsQC8S4AmBiqYhyNCJ5BRKXkXyDJvs8QzXN20NgRtxe3dEEQD9NLHA==", + "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==", "license": "MIT", "dependencies": { - "define-data-property": "^1.1.4", - "define-properties": "^1.2.1", - "es-abstract": "^1.24.0", + "call-bound": "^1.0.2", "es-errors": "^1.3.0", - "function-bind": "^1.1.2", - "globalthis": "^1.0.4", - "has-property-descriptors": "^1.0.2", - "set-function-name": "^2.0.2" + "is-data-view": "^1.0.1" }, "engines": { "node": ">= 0.4" @@ -4795,63 +3509,95 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/es-define-property": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", - "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", + "node_modules/debug": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", + "dev": true, "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, "engines": { - "node": ">= 0.4" + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } } }, - "node_modules/es-errors": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", - "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", + "node_modules/decompress-response": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz", + "integrity": "sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==", + "dev": true, "license": "MIT", + "dependencies": { + "mimic-response": "^3.1.0" + }, "engines": { - "node": ">= 0.4" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/es-object-atoms": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.2.tgz", - "integrity": "sha512-HWcBoN6NileqtSydK2FqHbS/LoDd2pqrnQHLyJzBj4kOp/ky2MWMN694xOfkK8/SnUsW2DH7EfyVlydKCsm1Zw==", + "node_modules/deep-extend": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", + "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/defaults": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/defaults/-/defaults-1.0.4.tgz", + "integrity": "sha512-eFuaLoy/Rxalv2kr+lqMlUnrDWV+3j4pljOIJgLIhI058IQfWJ7vXhyEIHu+HtC738klGALYxOKDO0bQP3tg8A==", "license": "MIT", "dependencies": { - "es-errors": "^1.3.0" + "clone": "^1.0.2" }, - "engines": { - "node": ">= 0.4" + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/es-set-tostringtag": { - "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==", + "node_modules/define-data-property": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", + "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", "license": "MIT", "dependencies": { + "es-define-property": "^1.0.0", "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.6", - "has-tostringtag": "^1.0.2", - "hasown": "^2.0.2" + "gopd": "^1.0.1" }, "engines": { "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/es-to-primitive": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.3.4.tgz", - "integrity": "sha512-yPDz7wqpg1/mmHLmS3tcfTfbw5f1eryXvyghYBffGdERwe+mV7ZcWzTR8LR17Kvqt3qfPurjlonmnq3MKXIOXw==", + "node_modules/define-properties": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz", + "integrity": "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==", "license": "MIT", "dependencies": { - "es-abstract-get": "^1.0.0", - "es-define-property": "^1.0.1", - "es-errors": "^1.3.0", - "is-callable": "^1.2.7", - "is-date-object": "^1.1.0", - "is-symbol": "^1.1.1" + "define-data-property": "^1.0.1", + "has-property-descriptors": "^1.0.0", + "object-keys": "^1.1.1" }, "engines": { "node": ">= 0.4" @@ -4860,935 +3606,959 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/escalade": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", - "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", + "node_modules/dependency-graph": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/dependency-graph/-/dependency-graph-0.11.0.tgz", + "integrity": "sha512-JeMq7fEshyepOWDfcfHK06N3MhyPhz++vtqWhMT5O9A3K42rdsEDpfdVqjaqaAhsw6a+ZqeDvQVtD0hFHQWrzg==", "license": "MIT", "engines": { - "node": ">=6" + "node": ">= 0.6.0" } }, - "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/detect-libc": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz", + "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==", "dev": true, - "license": "MIT", + "license": "Apache-2.0", "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=8" } }, - "node_modules/eslint": { - "version": "10.4.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-10.4.0.tgz", - "integrity": "sha512-loXy6bWOoP3EP6JA7jo6p5jMpBJmHmsNZM5SFRHLdh1MGOPurMnNBj4ZlAbaqUAaQWbCr7jHV4P7gzAyryZWkQ==", - "dev": true, + "node_modules/dir-glob": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", + "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", "license": "MIT", "dependencies": { - "@eslint-community/eslint-utils": "^4.8.0", - "@eslint-community/regexpp": "^4.12.2", - "@eslint/config-array": "^0.23.5", - "@eslint/config-helpers": "^0.6.0", - "@eslint/core": "^1.2.1", - "@eslint/plugin-kit": "^0.7.1", - "@humanfs/node": "^0.16.6", - "@humanwhocodes/module-importer": "^1.0.1", - "@humanwhocodes/retry": "^0.4.2", - "@types/estree": "^1.0.6", - "ajv": "^6.14.0", - "cross-spawn": "^7.0.6", - "debug": "^4.3.2", - "escape-string-regexp": "^4.0.0", - "eslint-scope": "^9.1.2", - "eslint-visitor-keys": "^5.0.1", - "espree": "^11.2.0", - "esquery": "^1.7.0", - "esutils": "^2.0.2", - "fast-deep-equal": "^3.1.3", - "file-entry-cache": "^8.0.0", - "find-up": "^5.0.0", - "glob-parent": "^6.0.2", - "ignore": "^5.2.0", - "imurmurhash": "^0.1.4", - "is-glob": "^4.0.0", - "json-stable-stringify-without-jsonify": "^1.0.1", - "minimatch": "^10.2.4", - "natural-compare": "^1.4.0", - "optionator": "^0.9.3" - }, - "bin": { - "eslint": "bin/eslint.js" + "path-type": "^4.0.0" }, "engines": { - "node": "^20.19.0 || ^22.13.0 || >=24" - }, - "funding": { - "url": "https://eslint.org/donate" - }, - "peerDependencies": { - "jiti": "*" - }, - "peerDependenciesMeta": { - "jiti": { - "optional": true - } + "node": ">=8" } }, - "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==", + "node_modules/dot-prop": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-5.3.0.tgz", + "integrity": "sha512-QM8q3zDe58hqUqjraQOmzZ1LIH9SWQJTlEKCH4kJ2oQvLZk7RbQXvtDM2XEq3fwkV9CCvvH4LA0AV+ogFsBM2Q==", "dev": true, "license": "MIT", - "bin": { - "eslint-config-prettier": "bin/cli.js" - }, - "funding": { - "url": "https://opencollective.com/eslint-config-prettier" + "dependencies": { + "is-obj": "^2.0.0" }, - "peerDependencies": { - "eslint": ">=7.0.0" + "engines": { + "node": ">=8" } }, - "node_modules/eslint-plugin-prettier": { - "version": "5.5.5", - "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-5.5.5.tgz", - "integrity": "sha512-hscXkbqUZ2sPithAuLm5MXL+Wph+U7wHngPBv9OMWwlP8iaflyxpjTYZkmdgB4/vPIhemRlBEoLrH7UC1n7aUw==", - "dev": true, + "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==", "license": "MIT", "dependencies": { - "prettier-linter-helpers": "^1.0.1", - "synckit": "^0.11.12" + "call-bind-apply-helpers": "^1.0.1", + "es-errors": "^1.3.0", + "gopd": "^1.2.0" }, "engines": { - "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": ">= 0.4" } }, - "node_modules/eslint-scope": { - "version": "9.1.2", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-9.1.2.tgz", - "integrity": "sha512-xS90H51cKw0jltxmvmHy2Iai1LIqrfbw57b79w/J7MfvDfkIkFZ+kj6zC3BjtUwh150HsSSdxXZcsuv72miDFQ==", + "node_modules/duplexer2": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.1.4.tgz", + "integrity": "sha512-asLFVfWWtJ90ZyOUHMqk7/S2w2guQKxUI2itj3d92ADHhxUSbCMGi1f1cBcJ7xM1To+pE/Khbwo1yuNbMEPKeA==", "dev": true, - "license": "BSD-2-Clause", + "license": "BSD-3-Clause", "dependencies": { - "@types/esrecurse": "^4.3.1", - "@types/estree": "^1.0.8", - "esrecurse": "^4.3.0", - "estraverse": "^5.2.0" - }, - "engines": { - "node": "^20.19.0 || ^22.13.0 || >=24" - }, - "funding": { - "url": "https://opencollective.com/eslint" + "readable-stream": "^2.0.2" } }, - "node_modules/eslint-scope/node_modules/@types/estree": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.9.tgz", - "integrity": "sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==", + "node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "license": "MIT" + }, + "node_modules/emojilib": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/emojilib/-/emojilib-2.4.0.tgz", + "integrity": "sha512-5U0rVMU5Y2n2+ykNLQqMoqklN9ICBT/KsvC1Gz6vqHbz2AXXGkG+Pm5rMWk/8Vjrr/mY9985Hi8DYzn1F09Nyw==", "dev": true, "license": "MIT" }, - "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/end-of-stream": { + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.5.tgz", + "integrity": "sha512-ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg==", "dev": true, - "license": "Apache-2.0", + "license": "MIT", + "dependencies": { + "once": "^1.4.0" + } + }, + "node_modules/entities": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", + "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==", + "dev": true, + "license": "BSD-2-Clause", "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": ">=0.12" }, "funding": { - "url": "https://opencollective.com/eslint" + "url": "https://github.com/fb55/entities?sponsor=1" } }, - "node_modules/eslint/node_modules/@types/estree": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.9.tgz", - "integrity": "sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==", - "dev": true, - "license": "MIT" - }, - "node_modules/eslint/node_modules/ajv": { - "version": "6.15.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.15.0.tgz", - "integrity": "sha512-fgFx7Hfoq60ytK2c7DhnF8jIvzYgOMxfugjLOSMHjLIPgenqa7S7oaagATUq99mV6IYvN2tRmC0wnTYX6iPbMw==", + "node_modules/env-ci": { + "version": "11.2.0", + "resolved": "https://registry.npmjs.org/env-ci/-/env-ci-11.2.0.tgz", + "integrity": "sha512-D5kWfzkmaOQDioPmiviWAVtKmpPT4/iJmMVQxWxMPJTFyTkdc5JQUfc5iXEeWxcOdsYTKSAiA/Age4NUOqKsRA==", "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" + "execa": "^8.0.0", + "java-properties": "^1.0.2" }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" + "engines": { + "node": "^18.17 || >=20.6.1" } }, - "node_modules/eslint/node_modules/balanced-match": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz", - "integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==", + "node_modules/env-ci/node_modules/execa": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/execa/-/execa-8.0.1.tgz", + "integrity": "sha512-VyhnebXciFV2DESc+p6B+y0LjSm0krU4OgJN44qFAhBY0TJ+1V61tYD2+wHusZ6F9n5K+vl8k0sTy7PEfV4qpg==", "dev": true, "license": "MIT", + "dependencies": { + "cross-spawn": "^7.0.3", + "get-stream": "^8.0.1", + "human-signals": "^5.0.0", + "is-stream": "^3.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^5.1.0", + "onetime": "^6.0.0", + "signal-exit": "^4.1.0", + "strip-final-newline": "^3.0.0" + }, "engines": { - "node": "18 || 20 || >=22" + "node": ">=16.17" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" } }, - "node_modules/eslint/node_modules/brace-expansion": { - "version": "5.0.12", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.12.tgz", - "integrity": "sha512-YovQ3rzhaLMIrDjNDMkNS01tea93qhEhG5xy8f6+R0l+dw3Ki+5sCoIoI942iuLZTHWogWktgwVDhU09iNEimQ==", + "node_modules/env-ci/node_modules/get-stream": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-8.0.1.tgz", + "integrity": "sha512-VaUJspBffn/LMCJVoMvSAdmscJyS1auj5Zulnn5UoYcY531UWmdwhRWkcGKnGU93m5HSXP9LP2usOryrBtQowA==", "dev": true, "license": "MIT", - "dependencies": { - "balanced-match": "^4.0.2" + "engines": { + "node": ">=16" }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/env-ci/node_modules/human-signals": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-5.0.0.tgz", + "integrity": "sha512-AXcZb6vzzrFAUE61HnN4mpLqd/cSIwNQjtNWR0euPm6y0iqx3G4gOXaIDdtdDwZmhwe82LA6+zinmW4UBWVePQ==", + "dev": true, + "license": "Apache-2.0", "engines": { - "node": "20 || >=22" + "node": ">=16.17.0" } }, - "node_modules/eslint/node_modules/eslint-visitor-keys": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-5.0.1.tgz", - "integrity": "sha512-tD40eHxA35h0PEIZNeIjkHoDR4YjjJp34biM0mDvplBe//mB+IHCqHDGV7pxF+7MklTvighcCPPZC7ynWyjdTA==", + "node_modules/env-ci/node_modules/is-stream": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-3.0.0.tgz", + "integrity": "sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==", "dev": true, - "license": "Apache-2.0", + "license": "MIT", "engines": { - "node": "^20.19.0 || ^22.13.0 || >=24" + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" }, "funding": { - "url": "https://opencollective.com/eslint" + "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==", + "node_modules/env-ci/node_modules/mimic-fn": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-4.0.0.tgz", + "integrity": "sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==", "dev": true, - "license": "MIT" + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } }, - "node_modules/eslint/node_modules/minimatch": { - "version": "10.2.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.5.tgz", - "integrity": "sha512-MULkVLfKGYDFYejP07QOurDLLQpcjk7Fw+7jXS2R2czRQzR56yHRveU5NDJEOviH+hETZKSkIk5c+T23GjFUMg==", + "node_modules/env-ci/node_modules/npm-run-path": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-5.3.0.tgz", + "integrity": "sha512-ppwTtiJZq0O/ai0z7yfudtBpWIoxM8yE6nHi1X47eFR2EWORqfbu6CnPlNsjeN683eT0qG6H/Pyf9fCcvjnnnQ==", "dev": true, - "license": "BlueOak-1.0.0", + "license": "MIT", "dependencies": { - "brace-expansion": "^5.0.5" + "path-key": "^4.0.0" }, "engines": { - "node": "18 || 20 || >=22" + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" }, "funding": { - "url": "https://github.com/sponsors/isaacs" + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/espree": { - "version": "11.2.0", - "resolved": "https://registry.npmjs.org/espree/-/espree-11.2.0.tgz", - "integrity": "sha512-7p3DrVEIopW1B1avAGLuCSh1jubc01H2JHc8B4qqGblmg5gI9yumBgACjWo4JlIc04ufug4xJ3SQI8HkS/Rgzw==", + "node_modules/env-ci/node_modules/onetime": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-6.0.0.tgz", + "integrity": "sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==", "dev": true, - "license": "BSD-2-Clause", + "license": "MIT", "dependencies": { - "acorn": "^8.16.0", - "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^5.0.1" + "mimic-fn": "^4.0.0" }, "engines": { - "node": "^20.19.0 || ^22.13.0 || >=24" + "node": ">=12" }, "funding": { - "url": "https://opencollective.com/eslint" + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/espree/node_modules/eslint-visitor-keys": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-5.0.1.tgz", - "integrity": "sha512-tD40eHxA35h0PEIZNeIjkHoDR4YjjJp34biM0mDvplBe//mB+IHCqHDGV7pxF+7MklTvighcCPPZC7ynWyjdTA==", + "node_modules/env-ci/node_modules/path-key": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-4.0.0.tgz", + "integrity": "sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==", "dev": true, - "license": "Apache-2.0", + "license": "MIT", "engines": { - "node": "^20.19.0 || ^22.13.0 || >=24" + "node": ">=12" }, "funding": { - "url": "https://opencollective.com/eslint" + "url": "https://github.com/sponsors/sindresorhus" } }, - "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/env-ci/node_modules/signal-exit": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", + "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", "dev": true, - "license": "BSD-2-Clause", - "bin": { - "esparse": "bin/esparse.js", - "esvalidate": "bin/esvalidate.js" - }, + "license": "ISC", "engines": { - "node": ">=4" + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/esquery": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.7.0.tgz", - "integrity": "sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g==", + "node_modules/env-ci/node_modules/strip-final-newline": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-3.0.0.tgz", + "integrity": "sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==", "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "estraverse": "^5.1.0" - }, + "license": "MIT", "engines": { - "node": ">=0.10" + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "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/env-paths": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz", + "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==", "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "estraverse": "^5.2.0" - }, + "license": "MIT", "engines": { - "node": ">=4.0" + "node": ">=6" } }, - "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/environment": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/environment/-/environment-1.1.0.tgz", + "integrity": "sha512-xUtoPkMggbz0MPyPiIWr1Kp4aeWJjDZ6SMvURhimjdZgsRuDplF5/s9hcgGhyXMhs+6vpnuoiZ2kFiu3FMnS8Q==", "dev": true, - "license": "BSD-2-Clause", + "license": "MIT", "engines": { - "node": ">=4.0" + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/estree-walker": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", - "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==", - "license": "MIT" - }, - "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/error-ex": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.4.tgz", + "integrity": "sha512-sqQamAnR14VgCr1A618A3sGrygcpK+HEbenA/HiEAkkUwcZIIB/tgWqHFxWgOyDh4nB4JCRimh79dR5Ywc9MDQ==", "dev": true, - "license": "BSD-2-Clause", - "engines": { - "node": ">=0.10.0" + "license": "MIT", + "dependencies": { + "is-arrayish": "^0.2.1" } }, - "node_modules/execa": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", - "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", - "dev": true, + "node_modules/es-abstract": { + "version": "1.24.2", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.24.2.tgz", + "integrity": "sha512-2FpH9Q5i2RRwyEP1AylXe6nYLR5OhaJTZwmlcP0dL/+JCbgg7yyEo/sEK6HeGZRf3dFpWwThaRHVApXSkW3xeg==", "license": "MIT", "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" + "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-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.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-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.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": ">=10" + "node": ">= 0.4" }, "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/expand-template": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/expand-template/-/expand-template-2.0.3.tgz", - "integrity": "sha512-XYfuKMvj4O35f/pOXLObndIRvyQ+/+6AhODh+OKWj9S9498pHHn/IMszH+gt0fBCRWMNfk1ZSp5x3AifmnI2vg==", - "dev": true, - "license": "(MIT OR WTFPL)", - "engines": { - "node": ">=6" + "url": "https://github.com/sponsors/ljharb" } }, - "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, + "node_modules/es-abstract-get": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/es-abstract-get/-/es-abstract-get-1.0.0.tgz", + "integrity": "sha512-6PMWXpdhshVvFp+FoWYs1EvG1Nj0tvk0dZM+XcK0xMEM1czRVcP6ohqPWHy6qPagSpC8j4+p89WXlT+xXJs/fg==", "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" + "es-errors": "^1.3.0", + "es-object-atoms": "^1.1.2", + "is-callable": "^1.2.7", + "object-inspect": "^1.13.4" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/expr-eval-fork": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/expr-eval-fork/-/expr-eval-fork-3.0.3.tgz", - "integrity": "sha512-BhC+hbc5lIVjygr840n5DEkW3MQq7H9o+mc1/N7Z5uIiCFVyESLL5DIE7LNq4CYUNxy+XjA+3jRrL/h0Kt2xcg==", + "node_modules/es-aggregate-error": { + "version": "1.0.14", + "resolved": "https://registry.npmjs.org/es-aggregate-error/-/es-aggregate-error-1.0.14.tgz", + "integrity": "sha512-3YxX6rVb07B5TV11AV5wsL7nQCHXNwoHPsQC8S4AmBiqYhyNCJ5BRKXkXyDJvs8QzXN20NgRtxe3dEEQD9NLHA==", "license": "MIT", + "dependencies": { + "define-data-property": "^1.1.4", + "define-properties": "^1.2.1", + "es-abstract": "^1.24.0", + "es-errors": "^1.3.0", + "function-bind": "^1.1.2", + "globalthis": "^1.0.4", + "has-property-descriptors": "^1.0.2", + "set-function-name": "^2.0.2" + }, "engines": { - "node": ">=16.9.0" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "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==", - "license": "MIT" - }, - "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-glob": { - "version": "3.2.12", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.12.tgz", - "integrity": "sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w==", + "node_modules/es-define-property": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", + "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", "license": "MIT", - "dependencies": { - "@nodelib/fs.stat": "^2.0.2", - "@nodelib/fs.walk": "^1.2.3", - "glob-parent": "^5.1.2", - "merge2": "^1.3.0", - "micromatch": "^4.0.4" - }, "engines": { - "node": ">=8.6.0" + "node": ">= 0.4" } }, - "node_modules/fast-glob/node_modules/glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "license": "ISC", - "dependencies": { - "is-glob": "^4.0.1" - }, + "node_modules/es-errors": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", + "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", + "license": "MIT", "engines": { - "node": ">= 6" + "node": ">= 0.4" } }, - "node_modules/fast-json-stable-stringify": { + "node_modules/es-module-lexer": { "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", - "dev": true, - "license": "MIT" - }, - "node_modules/fast-levenshtein": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-2.1.0.tgz", + "integrity": "sha512-n27zTYMjYu1aj4MjCWzSP7G9r75utsaoc8m61weK+W8JMBGGQybd43GstCXZ3WNmSFtGT9wi59qQTW6mhTR5LQ==", "dev": true, "license": "MIT" }, - "node_modules/fast-memoize": { - "version": "2.5.2", - "resolved": "https://registry.npmjs.org/fast-memoize/-/fast-memoize-2.5.2.tgz", - "integrity": "sha512-Ue0LwpDYErFbmNnZSF0UH6eImUwDmogUO1jyE+JbN2gsQz/jICm1Ve7t9QT0rNSsfJt+Hs4/S3GnsDVjL4HVrw==", - "license": "MIT" - }, - "node_modules/fast-uri": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.7.tgz", - "integrity": "sha512-dOvZVzjdZdz7phd9v6jCbwxrBW3fK6n8Rc0CtdmM4bumzMnxywBYhuph6J819RRw/ku+rLbelwfMunktuzVVHg==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/fastify" - }, - { - "type": "opencollective", - "url": "https://opencollective.com/fastify" - } - ], - "license": "BSD-3-Clause" - }, - "node_modules/fastq": { - "version": "1.20.3", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.20.3.tgz", - "integrity": "sha512-XKv5nnLs6nLF71NgiKJLIZFLkPyIEuOselLG7ujZnGrRfQK8HpvY+WqKhAJUAdLomwVHErVS4LfxFlPq0/FTAw==", - "license": "ISC", + "node_modules/es-object-atoms": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.2.tgz", + "integrity": "sha512-HWcBoN6NileqtSydK2FqHbS/LoDd2pqrnQHLyJzBj4kOp/ky2MWMN694xOfkK8/SnUsW2DH7EfyVlydKCsm1Zw==", + "license": "MIT", "dependencies": { - "reusify": "^1.0.4" + "es-errors": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" } }, - "node_modules/fb-watchman": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.2.tgz", - "integrity": "sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==", - "dev": true, - "license": "Apache-2.0", + "node_modules/es-set-tostringtag": { + "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==", + "license": "MIT", "dependencies": { - "bser": "2.1.1" + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.6", + "has-tostringtag": "^1.0.2", + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" } }, - "node_modules/figures": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/figures/-/figures-6.1.0.tgz", - "integrity": "sha512-d+l3qxjSesT4V7v2fh+QnmFnUWv9lSpjarhShNTgBOfA0ttejbQUAlHLitbjkoRiDulW0OPoQPYIGhIC8ohejg==", - "dev": true, + "node_modules/es-to-primitive": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.3.4.tgz", + "integrity": "sha512-yPDz7wqpg1/mmHLmS3tcfTfbw5f1eryXvyghYBffGdERwe+mV7ZcWzTR8LR17Kvqt3qfPurjlonmnq3MKXIOXw==", "license": "MIT", "dependencies": { - "is-unicode-supported": "^2.0.0" + "es-abstract-get": "^1.0.0", + "es-define-property": "^1.0.1", + "es-errors": "^1.3.0", + "is-callable": "^1.2.7", + "is-date-object": "^1.1.0", + "is-symbol": "^1.1.1" }, "engines": { - "node": ">=18" + "node": ">= 0.4" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://github.com/sponsors/ljharb" } }, - "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, + "node_modules/escalade": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", "license": "MIT", - "dependencies": { - "flat-cache": "^4.0.0" - }, "engines": { - "node": ">=16.0.0" + "node": ">=6" } }, - "node_modules/fill-range": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", - "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", + "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", - "dependencies": { - "to-regex-range": "^5.0.1" - }, "engines": { - "node": ">=8" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/find-up": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", - "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "node_modules/eslint": { + "version": "10.4.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-10.4.0.tgz", + "integrity": "sha512-loXy6bWOoP3EP6JA7jo6p5jMpBJmHmsNZM5SFRHLdh1MGOPurMnNBj4ZlAbaqUAaQWbCr7jHV4P7gzAyryZWkQ==", + "dev": true, "license": "MIT", "dependencies": { - "locate-path": "^6.0.0", - "path-exists": "^4.0.0" + "@eslint-community/eslint-utils": "^4.8.0", + "@eslint-community/regexpp": "^4.12.2", + "@eslint/config-array": "^0.23.5", + "@eslint/config-helpers": "^0.6.0", + "@eslint/core": "^1.2.1", + "@eslint/plugin-kit": "^0.7.1", + "@humanfs/node": "^0.16.6", + "@humanwhocodes/module-importer": "^1.0.1", + "@humanwhocodes/retry": "^0.4.2", + "@types/estree": "^1.0.6", + "ajv": "^6.14.0", + "cross-spawn": "^7.0.6", + "debug": "^4.3.2", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^9.1.2", + "eslint-visitor-keys": "^5.0.1", + "espree": "^11.2.0", + "esquery": "^1.7.0", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^8.0.0", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "ignore": "^5.2.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "minimatch": "^10.2.4", + "natural-compare": "^1.4.0", + "optionator": "^0.9.3" + }, + "bin": { + "eslint": "bin/eslint.js" }, "engines": { - "node": ">=10" + "node": "^20.19.0 || ^22.13.0 || >=24" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://eslint.org/donate" + }, + "peerDependencies": { + "jiti": "*" + }, + "peerDependenciesMeta": { + "jiti": { + "optional": true + } } }, - "node_modules/find-up-simple": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/find-up-simple/-/find-up-simple-1.0.1.tgz", - "integrity": "sha512-afd4O7zpqHeRyg4PfDQsXmlDe2PfdHtJt6Akt8jOWaApLOZk5JXs6VMR29lz03pRe9mpykrRCYIYxaJYcfpncQ==", + "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, "license": "MIT", - "engines": { - "node": ">=18" + "bin": { + "eslint-config-prettier": "bin/cli.js" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://opencollective.com/eslint-config-prettier" + }, + "peerDependencies": { + "eslint": ">=7.0.0" } }, - "node_modules/find-versions": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/find-versions/-/find-versions-6.0.0.tgz", - "integrity": "sha512-2kCCtc+JvcZ86IGAz3Z2Y0A1baIz9fL31pH/0S1IqZr9Iwnjq8izfPtrCyQKO6TLMPELLsQMre7VDqeIKCsHkA==", + "node_modules/eslint-plugin-prettier": { + "version": "5.5.5", + "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-5.5.5.tgz", + "integrity": "sha512-hscXkbqUZ2sPithAuLm5MXL+Wph+U7wHngPBv9OMWwlP8iaflyxpjTYZkmdgB4/vPIhemRlBEoLrH7UC1n7aUw==", "dev": true, "license": "MIT", "dependencies": { - "semver-regex": "^4.0.5", - "super-regex": "^1.0.0" + "prettier-linter-helpers": "^1.0.1", + "synckit": "^0.11.12" }, "engines": { - "node": ">=18" + "node": "^14.18.0 || >=16.0.0" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "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/flat-cache": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz", - "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==", + "node_modules/eslint-scope": { + "version": "9.1.2", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-9.1.2.tgz", + "integrity": "sha512-xS90H51cKw0jltxmvmHy2Iai1LIqrfbw57b79w/J7MfvDfkIkFZ+kj6zC3BjtUwh150HsSSdxXZcsuv72miDFQ==", "dev": true, - "license": "MIT", + "license": "BSD-2-Clause", "dependencies": { - "flatted": "^3.2.9", - "keyv": "^4.5.4" + "@types/esrecurse": "^4.3.1", + "@types/estree": "^1.0.8", + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" }, "engines": { - "node": ">=16" + "node": "^20.19.0 || ^22.13.0 || >=24" + }, + "funding": { + "url": "https://opencollective.com/eslint" } }, - "node_modules/flatted": { - "version": "3.4.4", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.4.4.tgz", - "integrity": "sha512-5+ybhBZANEJxaH3X5evAFatUxLfEHSr7n6kYJ+1Qd0mUqr4eu9gIf6GDbWHf8RJijHrjjO8G+la14SlL2SeS1Q==", + "node_modules/eslint-scope/node_modules/@types/estree": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.9.tgz", + "integrity": "sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==", "dev": true, - "license": "ISC" + "license": "MIT" }, - "node_modules/for-each": { - "version": "0.3.5", - "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.5.tgz", - "integrity": "sha512-dKx12eRCVIzqCxFGplyFKJMPvLEWgmNtUrpTiJIR5u97zEhRG8ySrtboPHZXx7daLxQVrl643cTzbab2tkQjxg==", - "license": "MIT", - "dependencies": { - "is-callable": "^1.2.7" - }, + "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, + "license": "Apache-2.0", "engines": { - "node": ">= 0.4" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" }, "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/from2": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/from2/-/from2-2.3.0.tgz", - "integrity": "sha512-OMcX/4IC/uqEPVgGeyfN22LJk6AZrMkRZHxcHBMBvHScDGgwTm2GT2Wkgtocyd3JfZffjj2kYUDXXII0Fk9W0g==", - "dev": true, - "license": "MIT", - "dependencies": { - "inherits": "^2.0.1", - "readable-stream": "^2.0.0" + "url": "https://opencollective.com/eslint" } }, - "node_modules/fs-constants": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz", - "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==", + "node_modules/eslint/node_modules/@types/estree": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.9.tgz", + "integrity": "sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==", "dev": true, "license": "MIT" }, - "node_modules/fs-extra": { - "version": "11.4.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.4.0.tgz", - "integrity": "sha512-EQsFzMUJkCKGr1ePqlYADkIUmHW1s3ZXr5Yqy6wbGrfUCphpl2maM/kyOIRA2HpP3AaFQTZXD4ldjek+nccddA==", + "node_modules/eslint/node_modules/ajv": { + "version": "6.15.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.15.0.tgz", + "integrity": "sha512-fgFx7Hfoq60ytK2c7DhnF8jIvzYgOMxfugjLOSMHjLIPgenqa7S7oaagATUq99mV6IYvN2tRmC0wnTYX6iPbMw==", "dev": true, "license": "MIT", "dependencies": { - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.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": ">=14.14" - } - }, - "node_modules/fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", - "license": "ISC" - }, - "node_modules/fsevents": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", - "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", - "hasInstallScript": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } - }, - "node_modules/function-bind": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", - "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", - "license": "MIT", "funding": { - "url": "https://github.com/sponsors/ljharb" + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" } }, - "node_modules/function-timeout": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/function-timeout/-/function-timeout-1.0.2.tgz", - "integrity": "sha512-939eZS4gJ3htTHAldmyyuzlrD58P03fHG49v2JfFXbV6OhvZKRC9j2yAtdHw/zrp2zXHuv05zMIy40F0ge7spA==", + "node_modules/eslint/node_modules/balanced-match": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz", + "integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==", "dev": true, "license": "MIT", "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": "18 || 20 || >=22" } }, - "node_modules/function.prototype.name": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.2.0.tgz", - "integrity": "sha512-jObKIik1P2QjPHP5nz5BaOtUlfgS0fWo8IUByNXkM+o+02sJOi94em77GwJKQSJ3gfPHdgzLNrHc1uokV4P/ew==", + "node_modules/eslint/node_modules/brace-expansion": { + "version": "5.0.12", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.12.tgz", + "integrity": "sha512-YovQ3rzhaLMIrDjNDMkNS01tea93qhEhG5xy8f6+R0l+dw3Ki+5sCoIoI942iuLZTHWogWktgwVDhU09iNEimQ==", + "dev": true, "license": "MIT", "dependencies": { - "call-bind": "^1.0.9", - "call-bound": "^1.0.4", - "es-define-property": "^1.0.1", - "es-errors": "^1.3.0", - "functions-have-names": "^1.2.3", - "has-property-descriptors": "^1.0.2", - "hasown": "^2.0.4", - "is-callable": "^1.2.7", - "is-document.all": "^1.0.0" + "balanced-match": "^4.0.2" }, "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/functions-have-names": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", - "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": "20 || >=22" } }, - "node_modules/generator-function": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/generator-function/-/generator-function-2.0.1.tgz", - "integrity": "sha512-SFdFmIJi+ybC0vjlHN0ZGVGHc3lgE0DxPAT0djjVg+kjOnSqclqmj0KQ7ykTOLP6YxoqOvuAODGdcHJn+43q3g==", - "license": "MIT", + "node_modules/eslint/node_modules/eslint-visitor-keys": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-5.0.1.tgz", + "integrity": "sha512-tD40eHxA35h0PEIZNeIjkHoDR4YjjJp34biM0mDvplBe//mB+IHCqHDGV7pxF+7MklTvighcCPPZC7ynWyjdTA==", + "dev": true, + "license": "Apache-2.0", "engines": { - "node": ">= 0.4" + "node": "^20.19.0 || ^22.13.0 || >=24" + }, + "funding": { + "url": "https://opencollective.com/eslint" } }, - "node_modules/gensync": { - "version": "1.0.0-beta.2", - "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", - "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "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, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } + "license": "MIT" }, - "node_modules/get-caller-file": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", - "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", - "license": "ISC", + "node_modules/eslint/node_modules/minimatch": { + "version": "10.2.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.5.tgz", + "integrity": "sha512-MULkVLfKGYDFYejP07QOurDLLQpcjk7Fw+7jXS2R2czRQzR56yHRveU5NDJEOviH+hETZKSkIk5c+T23GjFUMg==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "brace-expansion": "^5.0.5" + }, "engines": { - "node": "6.* || 8.* || >= 10.*" + "node": "18 || 20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/get-east-asian-width": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/get-east-asian-width/-/get-east-asian-width-1.6.0.tgz", - "integrity": "sha512-QRbvDIbx6YklUe6RxeTeleMR0yv3cYH6PsPZHcnVn7xv7zO1BHN8r0XETu8n6Ye3Q+ahtSarc3WgtNWmehIBfA==", + "node_modules/espree": { + "version": "11.2.0", + "resolved": "https://registry.npmjs.org/espree/-/espree-11.2.0.tgz", + "integrity": "sha512-7p3DrVEIopW1B1avAGLuCSh1jubc01H2JHc8B4qqGblmg5gI9yumBgACjWo4JlIc04ufug4xJ3SQI8HkS/Rgzw==", "dev": true, - "license": "MIT", + "license": "BSD-2-Clause", + "dependencies": { + "acorn": "^8.16.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^5.0.1" + }, "engines": { - "node": ">=18" + "node": "^20.19.0 || ^22.13.0 || >=24" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://opencollective.com/eslint" } }, - "node_modules/get-intrinsic": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", - "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", - "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", - "get-proto": "^1.0.1", - "gopd": "^1.2.0", - "has-symbols": "^1.1.0", - "hasown": "^2.0.2", - "math-intrinsics": "^1.1.0" - }, + "node_modules/espree/node_modules/eslint-visitor-keys": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-5.0.1.tgz", + "integrity": "sha512-tD40eHxA35h0PEIZNeIjkHoDR4YjjJp34biM0mDvplBe//mB+IHCqHDGV7pxF+7MklTvighcCPPZC7ynWyjdTA==", + "dev": true, + "license": "Apache-2.0", "engines": { - "node": ">= 0.4" + "node": "^20.19.0 || ^22.13.0 || >=24" }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "url": "https://opencollective.com/eslint" } }, - "node_modules/get-package-type": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", - "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", + "node_modules/esquery": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.7.0.tgz", + "integrity": "sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g==", "dev": true, - "license": "MIT", + "license": "BSD-3-Clause", + "dependencies": { + "estraverse": "^5.1.0" + }, "engines": { - "node": ">=8.0.0" + "node": ">=0.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==", - "license": "MIT", + "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, + "license": "BSD-2-Clause", "dependencies": { - "dunder-proto": "^1.0.1", - "es-object-atoms": "^1.0.0" + "estraverse": "^5.2.0" }, "engines": { - "node": ">= 0.4" + "node": ">=4.0" } }, - "node_modules/get-source": { - "version": "2.0.12", - "resolved": "https://registry.npmjs.org/get-source/-/get-source-2.0.12.tgz", - "integrity": "sha512-X5+4+iD+HoSeEED+uwrQ07BOQr0kEDFMVqqpBuI+RaZBpBpHCuXxo70bjar6f0b0u/DQJsJ7ssurpP0V60Az+w==", - "license": "Unlicense", - "dependencies": { - "data-uri-to-buffer": "^2.0.0", - "source-map": "^0.6.1" + "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, + "license": "BSD-2-Clause", + "engines": { + "node": ">=4.0" } }, - "node_modules/get-stream": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", - "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", + "node_modules/estree-walker": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", + "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==", + "license": "MIT" + }, + "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, - "license": "MIT", + "license": "BSD-2-Clause", "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=0.10.0" } }, - "node_modules/get-symbol-description": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.1.0.tgz", - "integrity": "sha512-w9UMqWwJxHNOvoNzSJ2oPF5wvYcvP7jUvYzhp67yEhTi17ZDBBC1z9pTdGuzjD+EFIqLSYRweZjqfiPzQ06Ebg==", + "node_modules/execa": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", + "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", + "dev": true, "license": "MIT", "dependencies": { - "call-bound": "^1.0.3", - "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.6" + "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": ">= 0.4" + "node": ">=10" }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "url": "https://github.com/sindresorhus/execa?sponsor=1" } }, - "node_modules/git-log-parser": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/git-log-parser/-/git-log-parser-1.2.1.tgz", - "integrity": "sha512-PI+sPDvHXNPl5WNOErAK05s3j0lgwUzMN6o8cyQrDaKfT3qd7TmNJKeXX+SknI5I0QhG5fVPAEwSY4tRGDtYoQ==", + "node_modules/expand-template": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/expand-template/-/expand-template-2.0.3.tgz", + "integrity": "sha512-XYfuKMvj4O35f/pOXLObndIRvyQ+/+6AhODh+OKWj9S9498pHHn/IMszH+gt0fBCRWMNfk1ZSp5x3AifmnI2vg==", "dev": true, - "license": "MIT", - "dependencies": { - "argv-formatter": "~1.0.0", - "spawn-error-forwarder": "~1.0.0", - "split2": "~1.0.0", - "stream-combiner2": "~1.1.1", - "through2": "~2.0.0", - "traverse": "0.6.8" + "license": "(MIT OR WTFPL)", + "engines": { + "node": ">=6" } }, - "node_modules/github-from-package": { - "version": "0.0.0", - "resolved": "https://registry.npmjs.org/github-from-package/-/github-from-package-0.0.0.tgz", - "integrity": "sha512-SyHy3T1v2NUXn29OsWdxmK6RwHD+vkj3v8en8AOBZ1wBQ/hCAQ5bAQTD02kW4W9tUp/3Qh6J8r9EvntiyCmOOw==", + "node_modules/expect-type": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/expect-type/-/expect-type-1.3.0.tgz", + "integrity": "sha512-knvyeauYhqjOYvQ66MznSMs83wmHrCycNEN6Ao+2AeYEfxUIkuiVxdEa1qlGEPK+We3n0THiDciYSsCcgW/DoA==", "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/expr-eval-fork": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/expr-eval-fork/-/expr-eval-fork-3.0.3.tgz", + "integrity": "sha512-BhC+hbc5lIVjygr840n5DEkW3MQq7H9o+mc1/N7Z5uIiCFVyESLL5DIE7LNq4CYUNxy+XjA+3jRrL/h0Kt2xcg==", + "license": "MIT", + "engines": { + "node": ">=16.9.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==", "license": "MIT" }, - "node_modules/glob": { - "version": "7.2.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", - "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", - "deprecated": "Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me", - "license": "ISC", + "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-glob": { + "version": "3.2.12", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.12.tgz", + "integrity": "sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w==", + "license": "MIT", "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.1.1", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" }, "engines": { - "node": "*" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" + "node": ">=8.6.0" } }, - "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, + "node_modules/fast-glob/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", "license": "ISC", "dependencies": { - "is-glob": "^4.0.3" + "is-glob": "^4.0.1" }, "engines": { - "node": ">=10.13.0" + "node": ">= 6" + } + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true, + "license": "MIT" + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "dev": true, + "license": "MIT" + }, + "node_modules/fast-memoize": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/fast-memoize/-/fast-memoize-2.5.2.tgz", + "integrity": "sha512-Ue0LwpDYErFbmNnZSF0UH6eImUwDmogUO1jyE+JbN2gsQz/jICm1Ve7t9QT0rNSsfJt+Hs4/S3GnsDVjL4HVrw==", + "license": "MIT" + }, + "node_modules/fast-uri": { + "version": "3.1.7", + "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.7.tgz", + "integrity": "sha512-dOvZVzjdZdz7phd9v6jCbwxrBW3fK6n8Rc0CtdmM4bumzMnxywBYhuph6J819RRw/ku+rLbelwfMunktuzVVHg==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/fastify" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/fastify" + } + ], + "license": "BSD-3-Clause" + }, + "node_modules/fastq": { + "version": "1.20.3", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.20.3.tgz", + "integrity": "sha512-XKv5nnLs6nLF71NgiKJLIZFLkPyIEuOselLG7ujZnGrRfQK8HpvY+WqKhAJUAdLomwVHErVS4LfxFlPq0/FTAw==", + "license": "ISC", + "dependencies": { + "reusify": "^1.0.4" } }, - "node_modules/globals": { - "version": "17.6.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-17.6.0.tgz", - "integrity": "sha512-sepffkT8stwnIYbsMBpoCHJuJM5l98FUF2AnE07hfvE0m/qp3R586hw4jF4uadbhvg1ooIdzuu7CsfD2jzCaNA==", + "node_modules/figures": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/figures/-/figures-6.1.0.tgz", + "integrity": "sha512-d+l3qxjSesT4V7v2fh+QnmFnUWv9lSpjarhShNTgBOfA0ttejbQUAlHLitbjkoRiDulW0OPoQPYIGhIC8ohejg==", "dev": true, "license": "MIT", + "dependencies": { + "is-unicode-supported": "^2.0.0" + }, "engines": { "node": ">=18" }, @@ -5796,159 +4566,105 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/globalthis": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.4.tgz", - "integrity": "sha512-DpLKbNU4WylpxJykQujfCcwYWiV/Jhm50Goo0wrVILAv5jOr9d+H+UR3PhSCD2rCCEIg0uc+G+muBTwD54JhDQ==", + "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": { - "define-properties": "^1.2.1", - "gopd": "^1.0.1" + "flat-cache": "^4.0.0" }, "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": ">=16.0.0" } }, - "node_modules/globby": { - "version": "11.1.0", - "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", - "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", + "node_modules/fill-range": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", "license": "MIT", "dependencies": { - "array-union": "^2.1.0", - "dir-glob": "^3.0.1", - "fast-glob": "^3.2.9", - "ignore": "^5.2.0", - "merge2": "^1.4.1", - "slash": "^3.0.0" - }, - "engines": { - "node": ">=10" + "to-regex-range": "^5.0.1" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/gopd": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", - "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", - "license": "MIT", "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": ">=8" } }, - "node_modules/graceful-fs": { - "version": "4.2.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", - "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", - "license": "ISC" - }, - "node_modules/handlebars": { - "version": "4.7.9", - "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.7.9.tgz", - "integrity": "sha512-4E71E0rpOaQuJR2A3xDZ+GM1HyWYv1clR58tC8emQNeQe3RH7MAzSbat+V0wG78LQBo6m6bzSG/L4pBuCsgnUQ==", - "dev": true, + "node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", "license": "MIT", "dependencies": { - "minimist": "^1.2.5", - "neo-async": "^2.6.2", - "source-map": "^0.6.1", - "wordwrap": "^1.0.0" - }, - "bin": { - "handlebars": "bin/handlebars" + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" }, "engines": { - "node": ">=0.4.7" + "node": ">=10" }, - "optionalDependencies": { - "uglify-js": "^3.1.4" + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/has": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.4.tgz", - "integrity": "sha512-qdSAmqLF6209RFj4VVItywPMbm3vWylknmB3nvNiUIs72xAimcM8nVYxYr7ncvZq5qzk9MKIZR8ijqD/1QuYjQ==", + "node_modules/find-up-simple": { + "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": { - "node": ">= 0.4.0" - } - }, - "node_modules/has-bigints": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.1.0.tgz", - "integrity": "sha512-R3pbpkcIqv2Pm3dUwgjclDRVmWpTJW2DcMzcIhEXEx1oh/CEMObMm3KLmRJOdvhM7o4uQBnwr8pzRK2sJWIqfg==", - "license": "MIT", - "engines": { - "node": ">= 0.4" + "node": ">=18" }, "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "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==", - "license": "MIT", - "engines": { - "node": ">=8" + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/has-property-descriptors": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", - "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", + "node_modules/find-versions": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/find-versions/-/find-versions-6.0.0.tgz", + "integrity": "sha512-2kCCtc+JvcZ86IGAz3Z2Y0A1baIz9fL31pH/0S1IqZr9Iwnjq8izfPtrCyQKO6TLMPELLsQMre7VDqeIKCsHkA==", + "dev": true, "license": "MIT", "dependencies": { - "es-define-property": "^1.0.0" + "semver-regex": "^4.0.5", + "super-regex": "^1.0.0" + }, + "engines": { + "node": ">=18" }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/has-proto": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.2.0.tgz", - "integrity": "sha512-KIL7eQPfHQRC8+XluaIw7BHUwwqL19bQn4hzNgdr+1wXoU0KKj6rufu47lhY7KbJR2C6T6+PfyN0Ea7wkSS+qQ==", + "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": { - "dunder-proto": "^1.0.0" + "flatted": "^3.2.9", + "keyv": "^4.5.4" }, "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": ">=16" } }, - "node_modules/has-symbols": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", - "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } + "node_modules/flatted": { + "version": "3.4.4", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.4.4.tgz", + "integrity": "sha512-5+ybhBZANEJxaH3X5evAFatUxLfEHSr7n6kYJ+1Qd0mUqr4eu9gIf6GDbWHf8RJijHrjjO8G+la14SlL2SeS1Q==", + "dev": true, + "license": "ISC" }, - "node_modules/has-tostringtag": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", - "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", + "node_modules/for-each": { + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.5.tgz", + "integrity": "sha512-dKx12eRCVIzqCxFGplyFKJMPvLEWgmNtUrpTiJIR5u97zEhRG8ySrtboPHZXx7daLxQVrl643cTzbab2tkQjxg==", "license": "MIT", "dependencies": { - "has-symbols": "^1.0.3" + "is-callable": "^1.2.7" }, "engines": { "node": ">= 0.4" @@ -5957,259 +4673,281 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/hasown": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.4.tgz", - "integrity": "sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==", + "node_modules/from2": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/from2/-/from2-2.3.0.tgz", + "integrity": "sha512-OMcX/4IC/uqEPVgGeyfN22LJk6AZrMkRZHxcHBMBvHScDGgwTm2GT2Wkgtocyd3JfZffjj2kYUDXXII0Fk9W0g==", + "dev": true, "license": "MIT", "dependencies": { - "function-bind": "^1.1.2" - }, - "engines": { - "node": ">= 0.4" + "inherits": "^2.0.1", + "readable-stream": "^2.0.0" } }, - "node_modules/highlight.js": { - "version": "10.7.3", - "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-10.7.3.tgz", - "integrity": "sha512-tzcUFauisWKNHaRkN4Wjl/ZA07gENAjFl3J/c480dprkGTg5EQstgaNFqBfUqCq54kZRIEcreTsAgF/m2quD7A==", + "node_modules/fs-constants": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz", + "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==", "dev": true, - "license": "BSD-3-Clause", - "engines": { - "node": "*" - } + "license": "MIT" }, - "node_modules/hook-std": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/hook-std/-/hook-std-4.0.0.tgz", - "integrity": "sha512-IHI4bEVOt3vRUDJ+bFA9VUJlo7SzvFARPNLw75pqSmAOP2HmTWfFJtPvLBrDrlgjEYXY9zs7SFdHPQaJShkSCQ==", + "node_modules/fs-extra": { + "version": "11.4.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.4.0.tgz", + "integrity": "sha512-EQsFzMUJkCKGr1ePqlYADkIUmHW1s3ZXr5Yqy6wbGrfUCphpl2maM/kyOIRA2HpP3AaFQTZXD4ldjek+nccddA==", "dev": true, "license": "MIT", - "engines": { - "node": ">=20" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/hosted-git-info": { - "version": "9.0.3", - "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-9.0.3.tgz", - "integrity": "sha512-Hc+ghLoSt6QaYZUv0WBiIvmMDZuZZ7oaDvdH8MbfOO4lOsxdXLEvuC6ePoGs9H1X9oCLyq6+NVN0MKqD+ydxyg==", - "dev": true, - "license": "ISC", "dependencies": { - "lru-cache": "^11.1.0" + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" }, "engines": { - "node": "^20.17.0 || >=22.9.0" + "node": ">=14.14" } }, - "node_modules/hosted-git-info/node_modules/lru-cache": { - "version": "11.5.2", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.5.2.tgz", - "integrity": "sha512-4pfM1Ff0x50o0tQwb5ucw/RzNyD0/YJME6IVcStalZuMWxdt3sR3huStTtxz4PUmvZfRguvDejasvQ2kifR11g==", - "dev": true, - "license": "BlueOak-1.0.0", + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", + "license": "ISC" + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], "engines": { - "node": "20 || >=22" + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" } }, - "node_modules/hpagent": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/hpagent/-/hpagent-1.2.0.tgz", - "integrity": "sha512-A91dYTeIB6NoXG+PxTQpCCDDnfHsW9kc06Lvpu1TEe9gnd6ZFeiBoRO9JvzEv6xK7EX97/dUE8g/vBMTqTS3CA==", + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", "license": "MIT", - "engines": { - "node": ">=14" + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/html-escaper": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", - "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", + "node_modules/function-timeout": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/function-timeout/-/function-timeout-1.0.2.tgz", + "integrity": "sha512-939eZS4gJ3htTHAldmyyuzlrD58P03fHG49v2JfFXbV6OhvZKRC9j2yAtdHw/zrp2zXHuv05zMIy40F0ge7spA==", "dev": true, - "license": "MIT" + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } }, - "node_modules/http-proxy-agent": { - "version": "9.1.0", - "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-9.1.0.tgz", - "integrity": "sha512-2NxoveTT58mjYT4n3RPTEfCZGLMbidoO8XEieXfpSYxu+PQJ1qpx4ypwH6N+uF9twBPIvRRgvkvW5HUTYWENig==", - "dev": true, + "node_modules/function.prototype.name": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.2.0.tgz", + "integrity": "sha512-jObKIik1P2QjPHP5nz5BaOtUlfgS0fWo8IUByNXkM+o+02sJOi94em77GwJKQSJ3gfPHdgzLNrHc1uokV4P/ew==", "license": "MIT", "dependencies": { - "agent-base": "9.0.0", - "debug": "^4.3.4", - "proxy-agent-negotiate": "1.1.0" + "call-bind": "^1.0.9", + "call-bound": "^1.0.4", + "es-define-property": "^1.0.1", + "es-errors": "^1.3.0", + "functions-have-names": "^1.2.3", + "has-property-descriptors": "^1.0.2", + "hasown": "^2.0.4", + "is-callable": "^1.2.7", + "is-document.all": "^1.0.0" }, "engines": { - "node": ">= 20" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/http-proxy-agent/node_modules/agent-base": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-9.0.0.tgz", - "integrity": "sha512-TQf59BsZnytt8GdJKLPfUZ54g/iaUL2OWDSFCCvMOhsHduDQxO8xC4PNeyIkVcA5KwL2phPSv0douC0fgWzmnA==", - "dev": true, + "node_modules/functions-have-names": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", + "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", "license": "MIT", - "engines": { - "node": ">= 20" + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/https-proxy-agent": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", - "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", - "dev": true, + "node_modules/generator-function": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/generator-function/-/generator-function-2.0.1.tgz", + "integrity": "sha512-SFdFmIJi+ybC0vjlHN0ZGVGHc3lgE0DxPAT0djjVg+kjOnSqclqmj0KQ7ykTOLP6YxoqOvuAODGdcHJn+43q3g==", "license": "MIT", - "dependencies": { - "agent-base": "6", - "debug": "4" - }, "engines": { - "node": ">= 6" + "node": ">= 0.4" } }, - "node_modules/human-signals": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", - "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", - "dev": true, - "license": "Apache-2.0", + "node_modules/get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "license": "ISC", "engines": { - "node": ">=10.17.0" + "node": "6.* || 8.* || >= 10.*" } }, - "node_modules/ibm-openapi-validator": { - "resolved": "packages/validator", - "link": true - }, - "node_modules/ieee754": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", - "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", + "node_modules/get-east-asian-width": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/get-east-asian-width/-/get-east-asian-width-1.6.0.tgz", + "integrity": "sha512-QRbvDIbx6YklUe6RxeTeleMR0yv3cYH6PsPZHcnVn7xv7zO1BHN8r0XETu8n6Ye3Q+ahtSarc3WgtNWmehIBfA==", "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "BSD-3-Clause" - }, - "node_modules/ignore": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", - "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", "license": "MIT", "engines": { - "node": ">= 4" - } - }, - "node_modules/immer": { - "version": "9.0.21", - "resolved": "https://registry.npmjs.org/immer/-/immer-9.0.21.tgz", - "integrity": "sha512-bc4NBHqOqSfRW7POMkHd51LvClaeMXpm8dx0e8oE2GORbq5aRK7Bxl4FyzVLdGtLmvLKL7BTDBG5ACQm4HWjTA==", - "license": "MIT", + "node": ">=18" + }, "funding": { - "type": "opencollective", - "url": "https://opencollective.com/immer" + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/import-fresh": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz", - "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==", - "dev": true, + "node_modules/get-intrinsic": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", + "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", "license": "MIT", "dependencies": { - "parent-module": "^1.0.0", - "resolve-from": "^4.0.0" + "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", + "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": ">=6" + "node": ">= 0.4" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/import-from-esm": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/import-from-esm/-/import-from-esm-2.0.0.tgz", - "integrity": "sha512-YVt14UZCgsX1vZQ3gKjkWVdBdHQ6eu3MPU1TBgL1H5orXe2+jWD006WCPPtOuwlQm10NuzOW5WawiF1Q9veW8g==", - "dev": true, + "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==", "license": "MIT", "dependencies": { - "debug": "^4.3.4", - "import-meta-resolve": "^4.0.0" + "dunder-proto": "^1.0.1", + "es-object-atoms": "^1.0.0" }, "engines": { - "node": ">=18.20" + "node": ">= 0.4" } }, - "node_modules/import-local": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.2.0.tgz", - "integrity": "sha512-2SPlun1JUPWoM6t3F0dw0FkCF/jWY8kttcY4f599GLTSjh2OCuuhdTkJQsEcZzBqbXZGKMK2OqW1oZsjtf/gQA==", + "node_modules/get-source": { + "version": "2.0.12", + "resolved": "https://registry.npmjs.org/get-source/-/get-source-2.0.12.tgz", + "integrity": "sha512-X5+4+iD+HoSeEED+uwrQ07BOQr0kEDFMVqqpBuI+RaZBpBpHCuXxo70bjar6f0b0u/DQJsJ7ssurpP0V60Az+w==", + "license": "Unlicense", + "dependencies": { + "data-uri-to-buffer": "^2.0.0", + "source-map": "^0.6.1" + } + }, + "node_modules/get-stream": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", + "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", "dev": true, "license": "MIT", - "dependencies": { - "pkg-dir": "^4.2.0", - "resolve-cwd": "^3.0.0" - }, - "bin": { - "import-local-fixture": "fixtures/cli.js" - }, "engines": { - "node": ">=8" + "node": ">=10" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/import-meta-resolve": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/import-meta-resolve/-/import-meta-resolve-4.2.0.tgz", - "integrity": "sha512-Iqv2fzaTQN28s/FwZAoFq0ZSs/7hMAHJVX+w8PZl3cY19Pxk6jFFalxQoIfW2826i/fDLXv8IiEZRIT0lDuWcg==", - "dev": true, + "node_modules/get-symbol-description": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.1.0.tgz", + "integrity": "sha512-w9UMqWwJxHNOvoNzSJ2oPF5wvYcvP7jUvYzhp67yEhTi17ZDBBC1z9pTdGuzjD+EFIqLSYRweZjqfiPzQ06Ebg==", "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.6" + }, + "engines": { + "node": ">= 0.4" + }, "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/imurmurhash": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "node_modules/git-log-parser": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/git-log-parser/-/git-log-parser-1.2.1.tgz", + "integrity": "sha512-PI+sPDvHXNPl5WNOErAK05s3j0lgwUzMN6o8cyQrDaKfT3qd7TmNJKeXX+SknI5I0QhG5fVPAEwSY4tRGDtYoQ==", "dev": true, "license": "MIT", + "dependencies": { + "argv-formatter": "~1.0.0", + "spawn-error-forwarder": "~1.0.0", + "split2": "~1.0.0", + "stream-combiner2": "~1.1.1", + "through2": "~2.0.0", + "traverse": "0.6.8" + } + }, + "node_modules/github-from-package": { + "version": "0.0.0", + "resolved": "https://registry.npmjs.org/github-from-package/-/github-from-package-0.0.0.tgz", + "integrity": "sha512-SyHy3T1v2NUXn29OsWdxmK6RwHD+vkj3v8en8AOBZ1wBQ/hCAQ5bAQTD02kW4W9tUp/3Qh6J8r9EvntiyCmOOw==", + "dev": true, + "license": "MIT" + }, + "node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "deprecated": "Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me", + "license": "ISC", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, "engines": { - "node": ">=0.8.19" + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/indent-string": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", - "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", + "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, - "license": "MIT", + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.3" + }, "engines": { - "node": ">=8" + "node": ">=10.13.0" } }, - "node_modules/index-to-position": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/index-to-position/-/index-to-position-1.2.0.tgz", - "integrity": "sha512-Yg7+ztRkqslMAS2iFaU+Oa4KTSidr63OsFGlOrJoW981kIYO3CGCS3wA95P1mUi/IVSJkn0D479KTJpVpvFNuw==", + "node_modules/globals": { + "version": "17.6.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-17.6.0.tgz", + "integrity": "sha512-sepffkT8stwnIYbsMBpoCHJuJM5l98FUF2AnE07hfvE0m/qp3R586hw4jF4uadbhvg1ooIdzuu7CsfD2jzCaNA==", "dev": true, "license": "MIT", "engines": { @@ -6219,59 +4957,34 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/inflected": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/inflected/-/inflected-2.1.0.tgz", - "integrity": "sha512-hAEKNxvHf2Iq3H60oMBHkB4wl5jn3TPF3+fXek/sRwAB5gP9xWs4r7aweSF95f99HFoz69pnZTcu8f0SIHV18w==", - "license": "MIT" - }, - "node_modules/inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", - "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.", - "license": "ISC", - "dependencies": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "license": "ISC" - }, - "node_modules/ini": { - "version": "1.3.8", - "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz", - "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==", - "dev": true, - "license": "ISC" - }, - "node_modules/internal-slot": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.1.0.tgz", - "integrity": "sha512-4gd7VpWNQNB4UKKCFFVcp1AVv+FMOgs9NKzjHKusc8jTMhd5eL1NqQqOpE0KzMds804/yHlglp3uxgluOqAPLw==", + "node_modules/globalthis": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.4.tgz", + "integrity": "sha512-DpLKbNU4WylpxJykQujfCcwYWiV/Jhm50Goo0wrVILAv5jOr9d+H+UR3PhSCD2rCCEIg0uc+G+muBTwD54JhDQ==", "license": "MIT", "dependencies": { - "es-errors": "^1.3.0", - "hasown": "^2.0.2", - "side-channel": "^1.1.0" + "define-properties": "^1.2.1", + "gopd": "^1.0.1" }, "engines": { "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/into-stream": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/into-stream/-/into-stream-6.0.0.tgz", - "integrity": "sha512-XHbaOAvP+uFKUFsOgoNPRjLkwB+I22JFPFe5OjTkQ0nwgj6+pSjb4NmB6VMxaPshLiOf+zcpOCBQuLwC1KHhZA==", - "dev": true, + "node_modules/globby": { + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", + "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", "license": "MIT", "dependencies": { - "from2": "^2.3.0", - "p-is-promise": "^3.0.0" + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.2.9", + "ignore": "^5.2.0", + "merge2": "^1.4.1", + "slash": "^3.0.0" }, "engines": { "node": ">=10" @@ -6280,16 +4993,11 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/is-array-buffer": { - "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==", + "node_modules/gopd": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", + "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", "license": "MIT", - "dependencies": { - "call-bind": "^1.0.8", - "call-bound": "^1.0.3", - "get-intrinsic": "^1.2.6" - }, "engines": { "node": ">= 0.4" }, @@ -6297,25 +5005,49 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-arrayish": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", - "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", - "dev": true, - "license": "MIT" + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "license": "ISC" }, - "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==", + "node_modules/handlebars": { + "version": "4.7.9", + "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.7.9.tgz", + "integrity": "sha512-4E71E0rpOaQuJR2A3xDZ+GM1HyWYv1clR58tC8emQNeQe3RH7MAzSbat+V0wG78LQBo6m6bzSG/L4pBuCsgnUQ==", + "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" + "minimist": "^1.2.5", + "neo-async": "^2.6.2", + "source-map": "^0.6.1", + "wordwrap": "^1.0.0" }, + "bin": { + "handlebars": "bin/handlebars" + }, + "engines": { + "node": ">=0.4.7" + }, + "optionalDependencies": { + "uglify-js": "^3.1.4" + } + }, + "node_modules/has": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/has/-/has-1.0.4.tgz", + "integrity": "sha512-qdSAmqLF6209RFj4VVItywPMbm3vWylknmB3nvNiUIs72xAimcM8nVYxYr7ncvZq5qzk9MKIZR8ijqD/1QuYjQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/has-bigints": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.1.0.tgz", + "integrity": "sha512-R3pbpkcIqv2Pm3dUwgjclDRVmWpTJW2DcMzcIhEXEx1oh/CEMObMm3KLmRJOdvhM7o4uQBnwr8pzRK2sJWIqfg==", + "license": "MIT", "engines": { "node": ">= 0.4" }, @@ -6323,29 +5055,34 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-bigint": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.1.0.tgz", - "integrity": "sha512-n4ZT37wG78iz03xPRKJrHTdZbe3IicyucEtdRsV5yglwc3GyUfbAfpSeD0FJ41NbUNSt5wbhqfp1fS+BgnvDFQ==", + "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==", "license": "MIT", - "dependencies": { - "has-bigints": "^1.0.2" - }, "engines": { - "node": ">= 0.4" + "node": ">=8" + } + }, + "node_modules/has-property-descriptors": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", + "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", + "license": "MIT", + "dependencies": { + "es-define-property": "^1.0.0" }, "funding": { "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-boolean-object": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.2.2.tgz", - "integrity": "sha512-wa56o2/ElJMYqjCjGkXri7it5FbebW5usLw/nPmCMs5DeZ7eziSYZhSmPRn0txqeW4LnAmQQU7FgqLpsEFKM4A==", + "node_modules/has-proto": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.2.0.tgz", + "integrity": "sha512-KIL7eQPfHQRC8+XluaIw7BHUwwqL19bQn4hzNgdr+1wXoU0KKj6rufu47lhY7KbJR2C6T6+PfyN0Ea7wkSS+qQ==", "license": "MIT", "dependencies": { - "call-bound": "^1.0.3", - "has-tostringtag": "^1.0.2" + "dunder-proto": "^1.0.0" }, "engines": { "node": ">= 0.4" @@ -6354,10 +5091,10 @@ "url": "https://github.com/sponsors/ljharb" } }, - "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==", + "node_modules/has-symbols": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", + "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", "license": "MIT", "engines": { "node": ">= 0.4" @@ -6366,259 +5103,333 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-core-module": { - "version": "2.9.0", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.9.0.tgz", - "integrity": "sha512-+5FPy5PnwmO3lvfMb0AsoPaBG+5KHUI0wYFXOtYPnVVVspTFUuMZNfNaNVRt3FZadstu2c8x23vykRW/NBoU6A==", - "dev": true, + "node_modules/has-tostringtag": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", + "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", "license": "MIT", "dependencies": { - "has": "^1.0.3" + "has-symbols": "^1.0.3" + }, + "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==", + "node_modules/hasown": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.4.tgz", + "integrity": "sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==", "license": "MIT", "dependencies": { - "call-bound": "^1.0.2", - "get-intrinsic": "^1.2.6", - "is-typed-array": "^1.1.13" + "function-bind": "^1.1.2" }, "engines": { - "node": ">= 0.4" + "node": ">= 0.4" + } + }, + "node_modules/highlight.js": { + "version": "10.7.3", + "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-10.7.3.tgz", + "integrity": "sha512-tzcUFauisWKNHaRkN4Wjl/ZA07gENAjFl3J/c480dprkGTg5EQstgaNFqBfUqCq54kZRIEcreTsAgF/m2quD7A==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": "*" + } + }, + "node_modules/hook-std": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/hook-std/-/hook-std-4.0.0.tgz", + "integrity": "sha512-IHI4bEVOt3vRUDJ+bFA9VUJlo7SzvFARPNLw75pqSmAOP2HmTWfFJtPvLBrDrlgjEYXY9zs7SFdHPQaJShkSCQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=20" }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/is-date-object": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.1.0.tgz", - "integrity": "sha512-PwwhEakHVKTdRNVOw+/Gyh0+MzlCl4R6qKvkhuvLtPMggI1WAHt9sOwZxQLSGpUaDnrdyDsomoRgNnCfKNSXXg==", - "license": "MIT", + "node_modules/hosted-git-info": { + "version": "9.0.3", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-9.0.3.tgz", + "integrity": "sha512-Hc+ghLoSt6QaYZUv0WBiIvmMDZuZZ7oaDvdH8MbfOO4lOsxdXLEvuC6ePoGs9H1X9oCLyq6+NVN0MKqD+ydxyg==", + "dev": true, + "license": "ISC", "dependencies": { - "call-bound": "^1.0.2", - "has-tostringtag": "^1.0.2" + "lru-cache": "^11.1.0" }, "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": "^20.17.0 || >=22.9.0" } }, - "node_modules/is-document.all": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-document.all/-/is-document.all-1.0.0.tgz", - "integrity": "sha512-+XSoyS05OdBbhFuELhgTCpFNHkpBOJqtsZfUFFpe5QTw+9Sjbh8zitxhQkYAo6wV7e1Vb8cAPvpCk9jGam/82g==", - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.4" - }, + "node_modules/hosted-git-info/node_modules/lru-cache": { + "version": "11.5.2", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.5.2.tgz", + "integrity": "sha512-4pfM1Ff0x50o0tQwb5ucw/RzNyD0/YJME6IVcStalZuMWxdt3sR3huStTtxz4PUmvZfRguvDejasvQ2kifR11g==", + "dev": true, + "license": "BlueOak-1.0.0", "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": "20 || >=22" } }, - "node_modules/is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "node_modules/hpagent": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/hpagent/-/hpagent-1.2.0.tgz", + "integrity": "sha512-A91dYTeIB6NoXG+PxTQpCCDDnfHsW9kc06Lvpu1TEe9gnd6ZFeiBoRO9JvzEv6xK7EX97/dUE8g/vBMTqTS3CA==", "license": "MIT", "engines": { - "node": ">=0.10.0" + "node": ">=14" } }, - "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==", + "node_modules/html-escaper": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", + "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", + "dev": true, + "license": "MIT" + }, + "node_modules/http-proxy-agent": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-9.1.0.tgz", + "integrity": "sha512-2NxoveTT58mjYT4n3RPTEfCZGLMbidoO8XEieXfpSYxu+PQJ1qpx4ypwH6N+uF9twBPIvRRgvkvW5HUTYWENig==", + "dev": true, "license": "MIT", "dependencies": { - "call-bound": "^1.0.3" + "agent-base": "9.0.0", + "debug": "^4.3.4", + "proxy-agent-negotiate": "1.1.0" }, "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": ">= 20" } }, - "node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "node_modules/http-proxy-agent/node_modules/agent-base": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-9.0.0.tgz", + "integrity": "sha512-TQf59BsZnytt8GdJKLPfUZ54g/iaUL2OWDSFCCvMOhsHduDQxO8xC4PNeyIkVcA5KwL2phPSv0douC0fgWzmnA==", + "dev": true, "license": "MIT", "engines": { - "node": ">=8" + "node": ">= 20" } }, - "node_modules/is-generator-fn": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz", - "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==", + "node_modules/https-proxy-agent": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", + "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", "dev": true, "license": "MIT", + "dependencies": { + "agent-base": "6", + "debug": "4" + }, "engines": { - "node": ">=6" + "node": ">= 6" } }, - "node_modules/is-generator-function": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.1.2.tgz", - "integrity": "sha512-upqt1SkGkODW9tsGNG5mtXTXtECizwtS2kA161M+gJPc1xdb/Ax629af6YrTwcOeQHbewrPNlE5Dx7kzvXTizA==", - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.4", - "generator-function": "^2.0.0", - "get-proto": "^1.0.1", - "has-tostringtag": "^1.0.2", - "safe-regex-test": "^1.1.0" - }, + "node_modules/human-signals": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", + "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", + "dev": true, + "license": "Apache-2.0", "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": ">=10.17.0" } }, - "node_modules/is-glob": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", - "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "node_modules/ibm-openapi-validator": { + "resolved": "packages/validator", + "link": true + }, + "node_modules/ieee754": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", + "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "BSD-3-Clause" + }, + "node_modules/ignore": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", + "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", "license": "MIT", - "dependencies": { - "is-extglob": "^2.1.1" - }, "engines": { - "node": ">=0.10.0" + "node": ">= 4" } }, - "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==", + "node_modules/immer": { + "version": "9.0.21", + "resolved": "https://registry.npmjs.org/immer/-/immer-9.0.21.tgz", + "integrity": "sha512-bc4NBHqOqSfRW7POMkHd51LvClaeMXpm8dx0e8oE2GORbq5aRK7Bxl4FyzVLdGtLmvLKL7BTDBG5ACQm4HWjTA==", "license": "MIT", - "engines": { - "node": ">= 0.4" - }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "type": "opencollective", + "url": "https://opencollective.com/immer" } }, - "node_modules/is-negative-zero": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.3.tgz", - "integrity": "sha512-5KoIu2Ngpyek75jXodFvnafB6DJgr3u8uuK0LEZJjrU19DrMD3EVERaR8sjz8CCGgpZvxPl9SuE1GMVPFHx1mw==", + "node_modules/import-fresh": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz", + "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==", + "dev": true, "license": "MIT", + "dependencies": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, "engines": { - "node": ">= 0.4" + "node": ">=6" }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "node_modules/import-from-esm": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/import-from-esm/-/import-from-esm-2.0.0.tgz", + "integrity": "sha512-YVt14UZCgsX1vZQ3gKjkWVdBdHQ6eu3MPU1TBgL1H5orXe2+jWD006WCPPtOuwlQm10NuzOW5WawiF1Q9veW8g==", + "dev": true, "license": "MIT", + "dependencies": { + "debug": "^4.3.4", + "import-meta-resolve": "^4.0.0" + }, "engines": { - "node": ">=0.12.0" + "node": ">=18.20" } }, - "node_modules/is-number-object": { - "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==", + "node_modules/import-meta-resolve": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/import-meta-resolve/-/import-meta-resolve-4.2.0.tgz", + "integrity": "sha512-Iqv2fzaTQN28s/FwZAoFq0ZSs/7hMAHJVX+w8PZl3cY19Pxk6jFFalxQoIfW2826i/fDLXv8IiEZRIT0lDuWcg==", + "dev": true, "license": "MIT", - "dependencies": { - "call-bound": "^1.0.3", - "has-tostringtag": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "type": "github", + "url": "https://github.com/sponsors/wooorm" } }, - "node_modules/is-obj": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-2.0.0.tgz", - "integrity": "sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==", + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/indent-string": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", + "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", "dev": true, "license": "MIT", "engines": { "node": ">=8" } }, - "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==", + "node_modules/index-to-position": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/index-to-position/-/index-to-position-1.2.0.tgz", + "integrity": "sha512-Yg7+ztRkqslMAS2iFaU+Oa4KTSidr63OsFGlOrJoW981kIYO3CGCS3wA95P1mUi/IVSJkn0D479KTJpVpvFNuw==", "dev": true, "license": "MIT", "engines": { - "node": ">=12" + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/is-reference": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/is-reference/-/is-reference-1.2.1.tgz", - "integrity": "sha512-U82MsXXiFIrjCK4otLT+o2NA2Cd2g5MLoOVXUZjIOhLurrRxpEXzI8O0KZHr3IjLvlAH1kTPYSuqer5T9ZVBKQ==", - "license": "MIT", + "node_modules/inflected": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/inflected/-/inflected-2.1.0.tgz", + "integrity": "sha512-hAEKNxvHf2Iq3H60oMBHkB4wl5jn3TPF3+fXek/sRwAB5gP9xWs4r7aweSF95f99HFoz69pnZTcu8f0SIHV18w==", + "license": "MIT" + }, + "node_modules/inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.", + "license": "ISC", "dependencies": { - "@types/estree": "*" + "once": "^1.3.0", + "wrappy": "1" } }, - "node_modules/is-regex": { - "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==", + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "license": "ISC" + }, + "node_modules/ini": { + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz", + "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==", + "dev": true, + "license": "ISC" + }, + "node_modules/internal-slot": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.1.0.tgz", + "integrity": "sha512-4gd7VpWNQNB4UKKCFFVcp1AVv+FMOgs9NKzjHKusc8jTMhd5eL1NqQqOpE0KzMds804/yHlglp3uxgluOqAPLw==", "license": "MIT", "dependencies": { - "call-bound": "^1.0.2", - "gopd": "^1.2.0", - "has-tostringtag": "^1.0.2", - "hasown": "^2.0.2" + "es-errors": "^1.3.0", + "hasown": "^2.0.2", + "side-channel": "^1.1.0" }, "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==", + "node_modules/into-stream": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/into-stream/-/into-stream-6.0.0.tgz", + "integrity": "sha512-XHbaOAvP+uFKUFsOgoNPRjLkwB+I22JFPFe5OjTkQ0nwgj6+pSjb4NmB6VMxaPshLiOf+zcpOCBQuLwC1KHhZA==", + "dev": true, "license": "MIT", + "dependencies": { + "from2": "^2.3.0", + "p-is-promise": "^3.0.0" + }, "engines": { - "node": ">= 0.4" + "node": ">=10" }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/is-shared-array-buffer": { - "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==", + "node_modules/is-array-buffer": { + "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==", "license": "MIT", "dependencies": { - "call-bound": "^1.0.3" + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", + "get-intrinsic": "^1.2.6" }, "engines": { "node": ">= 0.4" @@ -6627,27 +5438,24 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-stream": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", - "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", + "node_modules/is-arrayish": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } + "license": "MIT" }, - "node_modules/is-string": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.1.1.tgz", - "integrity": "sha512-BtEeSsoaQjlSPBemMQIrY1MY0uM6vnS1g5fmufYOtnxLGUZM2178PKbhsk7Ffv58IX+ZtcvoGwccYsh0PglkAA==", + "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==", "license": "MIT", "dependencies": { + "async-function": "^1.0.0", "call-bound": "^1.0.3", - "has-tostringtag": "^1.0.2" + "get-proto": "^1.0.1", + "has-tostringtag": "^1.0.2", + "safe-regex-test": "^1.1.0" }, "engines": { "node": ">= 0.4" @@ -6656,15 +5464,13 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-symbol": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.1.1.tgz", - "integrity": "sha512-9gGx6GTtCQM73BgmHQXfDmLtfjjTUDSyoxTCbp5WtoixAhfgsDirWIcVQ/IHpvI5Vgd5i/J5F7B9cN/WlVbC/w==", + "node_modules/is-bigint": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.1.0.tgz", + "integrity": "sha512-n4ZT37wG78iz03xPRKJrHTdZbe3IicyucEtdRsV5yglwc3GyUfbAfpSeD0FJ41NbUNSt5wbhqfp1fS+BgnvDFQ==", "license": "MIT", "dependencies": { - "call-bound": "^1.0.2", - "has-symbols": "^1.1.0", - "safe-regex-test": "^1.1.0" + "has-bigints": "^1.0.2" }, "engines": { "node": ">= 0.4" @@ -6673,13 +5479,14 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-typed-array": { - "version": "1.1.15", - "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.15.tgz", - "integrity": "sha512-p3EcsicXjit7SaskXHs1hA91QxgTw46Fv6EFKKGS5DRFLD8yKnohjF3hxoju94b/OcMZoQukzpPpBE9uLVKzgQ==", + "node_modules/is-boolean-object": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.2.2.tgz", + "integrity": "sha512-wa56o2/ElJMYqjCjGkXri7it5FbebW5usLw/nPmCMs5DeZ7eziSYZhSmPRn0txqeW4LnAmQQU7FgqLpsEFKM4A==", "license": "MIT", "dependencies": { - "which-typed-array": "^1.1.16" + "call-bound": "^1.0.3", + "has-tostringtag": "^1.0.2" }, "engines": { "node": ">= 0.4" @@ -6688,38 +5495,40 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-unicode-supported": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-2.1.0.tgz", - "integrity": "sha512-mE00Gnza5EEB3Ds0HfMyllZzbBrmLOX3vfWoj9A9PEnTfratQ/BcaJOuMhnkhjXvb2+FkY3VuHqtAGpTPmglFQ==", - "dev": true, + "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==", "license": "MIT", "engines": { - "node": ">=18" + "node": ">= 0.4" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "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==", + "node_modules/is-core-module": { + "version": "2.9.0", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.9.0.tgz", + "integrity": "sha512-+5FPy5PnwmO3lvfMb0AsoPaBG+5KHUI0wYFXOtYPnVVVspTFUuMZNfNaNVRt3FZadstu2c8x23vykRW/NBoU6A==", + "dev": true, "license": "MIT", - "engines": { - "node": ">= 0.4" + "dependencies": { + "has": "^1.0.3" }, "funding": { "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-weakref": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.1.1.tgz", - "integrity": "sha512-6i9mGWSlqzNMEqpCp93KwRS1uUOodk2OJ6b+sq7ZPDSy2WuI5NFIxp/254TytR8ftefexkWn5xNiHUNpPOfSew==", + "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==", "license": "MIT", "dependencies": { - "call-bound": "^1.0.3" + "call-bound": "^1.0.2", + "get-intrinsic": "^1.2.6", + "is-typed-array": "^1.1.13" }, "engines": { "node": ">= 0.4" @@ -6728,14 +5537,14 @@ "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==", + "node_modules/is-date-object": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.1.0.tgz", + "integrity": "sha512-PwwhEakHVKTdRNVOw+/Gyh0+MzlCl4R6qKvkhuvLtPMggI1WAHt9sOwZxQLSGpUaDnrdyDsomoRgNnCfKNSXXg==", "license": "MIT", "dependencies": { - "call-bound": "^1.0.3", - "get-intrinsic": "^1.2.6" + "call-bound": "^1.0.2", + "has-tostringtag": "^1.0.2" }, "engines": { "node": ">= 0.4" @@ -6744,699 +5553,406 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/isarray": { + "node_modules/is-document.all": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "dev": true, - "license": "ISC" - }, - "node_modules/issue-parser": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/issue-parser/-/issue-parser-7.0.2.tgz", - "integrity": "sha512-7atWPjhGEIX3JEtMrOYd8TKzboYlq+5sNbdl9POiLYOI14G5HZiQbZP0Xj5EZdrufQVXfJlpTV0hys0CuxwxZw==", - "dev": true, + "resolved": "https://registry.npmjs.org/is-document.all/-/is-document.all-1.0.0.tgz", + "integrity": "sha512-+XSoyS05OdBbhFuELhgTCpFNHkpBOJqtsZfUFFpe5QTw+9Sjbh8zitxhQkYAo6wV7e1Vb8cAPvpCk9jGam/82g==", "license": "MIT", "dependencies": { - "lodash.capitalize": "^4.2.1", - "lodash.escaperegexp": "^4.1.2", - "lodash.isplainobject": "^4.0.6", - "lodash.isstring": "^4.0.1", - "lodash.uniqby": "^4.7.0" - }, - "engines": { - "node": "^18.17 || >=20.6.1" - } - }, - "node_modules/istanbul-lib-coverage": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz", - "integrity": "sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==", - "dev": true, - "license": "BSD-3-Clause", - "engines": { - "node": ">=8" - } - }, - "node_modules/istanbul-lib-instrument": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-6.0.3.tgz", - "integrity": "sha512-Vtgk7L/R2JHyyGW07spoFlB8/lpjiOLTjMdms6AFMraYt3BaJauod/NGrfnVG/y4Ix1JEuMRPDPEj2ua+zz1/Q==", - "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "@babel/core": "^7.23.9", - "@babel/parser": "^7.23.9", - "@istanbuljs/schema": "^0.1.3", - "istanbul-lib-coverage": "^3.2.0", - "semver": "^7.5.4" + "call-bound": "^1.0.4" }, "engines": { - "node": ">=10" - } - }, - "node_modules/istanbul-lib-report": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz", - "integrity": "sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==", - "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "istanbul-lib-coverage": "^3.0.0", - "make-dir": "^4.0.0", - "supports-color": "^7.1.0" + "node": ">= 0.4" }, - "engines": { - "node": ">=10" + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/istanbul-lib-source-maps": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz", - "integrity": "sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==", - "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "debug": "^4.1.1", - "istanbul-lib-coverage": "^3.0.0", - "source-map": "^0.6.1" - }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "license": "MIT", "engines": { - "node": ">=10" + "node": ">=0.10.0" } }, - "node_modules/istanbul-reports": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.2.0.tgz", - "integrity": "sha512-HGYWWS/ehqTV3xN10i23tkPkpH46MLCIMFNCaaKNavAXTF1RkqxawEPtnjnGZ6XKSInBKkiOA5BKS+aZiY3AvA==", - "dev": true, - "license": "BSD-3-Clause", + "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==", + "license": "MIT", "dependencies": { - "html-escaper": "^2.0.0", - "istanbul-lib-report": "^3.0.0" + "call-bound": "^1.0.3" }, "engines": { - "node": ">=8" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/java-properties": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/java-properties/-/java-properties-1.0.2.tgz", - "integrity": "sha512-qjdpeo2yKlYTH7nFdK0vbZWuTCesk4o63v5iVOlhMQPfuIZQfW/HI35SjfhA+4qpg36rnFSvUK5b1m+ckIblQQ==", - "dev": true, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", "license": "MIT", "engines": { - "node": ">= 0.6.0" + "node": ">=8" } }, - "node_modules/jest": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest/-/jest-29.7.0.tgz", - "integrity": "sha512-NIy3oAFp9shda19hy4HK0HRTWKtPJmGdnvywu01nOqNC2vZg+Z+fvJDxpMQA88eb2I9EcafcdjYgsDthnYTvGw==", - "dev": true, + "node_modules/is-generator-function": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.1.2.tgz", + "integrity": "sha512-upqt1SkGkODW9tsGNG5mtXTXtECizwtS2kA161M+gJPc1xdb/Ax629af6YrTwcOeQHbewrPNlE5Dx7kzvXTizA==", "license": "MIT", "dependencies": { - "@jest/core": "^29.7.0", - "@jest/types": "^29.6.3", - "import-local": "^3.0.2", - "jest-cli": "^29.7.0" - }, - "bin": { - "jest": "bin/jest.js" + "call-bound": "^1.0.4", + "generator-function": "^2.0.0", + "get-proto": "^1.0.1", + "has-tostringtag": "^1.0.2", + "safe-regex-test": "^1.1.0" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "peerDependencies": { - "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + "node": ">= 0.4" }, - "peerDependenciesMeta": { - "node-notifier": { - "optional": true - } + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/jest-changed-files": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-29.7.0.tgz", - "integrity": "sha512-fEArFiwf1BpQ+4bXSprcDc3/x4HSzL4al2tozwVpDFpsxALjLYdyiIK4e5Vz66GQJIbXJ82+35PtysofptNX2w==", - "dev": true, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", "license": "MIT", "dependencies": { - "execa": "^5.0.0", - "jest-util": "^29.7.0", - "p-limit": "^3.1.0" + "is-extglob": "^2.1.1" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": ">=0.10.0" } }, - "node_modules/jest-circus": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-29.7.0.tgz", - "integrity": "sha512-3E1nCMgipcTkCocFwM90XXQab9bS+GMsjdpmPrlelaxwD93Ad8iVEjX/vvHPdLPnFf+L40u+5+iutRdA1N9myw==", - "dev": true, + "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==", "license": "MIT", - "dependencies": { - "@jest/environment": "^29.7.0", - "@jest/expect": "^29.7.0", - "@jest/test-result": "^29.7.0", - "@jest/types": "^29.6.3", - "@types/node": "*", - "chalk": "^4.0.0", - "co": "^4.6.0", - "dedent": "^1.0.0", - "is-generator-fn": "^2.0.0", - "jest-each": "^29.7.0", - "jest-matcher-utils": "^29.7.0", - "jest-message-util": "^29.7.0", - "jest-runtime": "^29.7.0", - "jest-snapshot": "^29.7.0", - "jest-util": "^29.7.0", - "p-limit": "^3.1.0", - "pretty-format": "^29.7.0", - "pure-rand": "^6.0.0", - "slash": "^3.0.0", - "stack-utils": "^2.0.3" - }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/jest-cli": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-29.7.0.tgz", - "integrity": "sha512-OVVobw2IubN/GSYsxETi+gOe7Ka59EFMR/twOU3Jb2GnKKeMGJB5SGUUrEz3SFVmJASUdZUzy83sLNNQ2gZslg==", - "dev": true, + "node_modules/is-negative-zero": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.3.tgz", + "integrity": "sha512-5KoIu2Ngpyek75jXodFvnafB6DJgr3u8uuK0LEZJjrU19DrMD3EVERaR8sjz8CCGgpZvxPl9SuE1GMVPFHx1mw==", "license": "MIT", - "dependencies": { - "@jest/core": "^29.7.0", - "@jest/test-result": "^29.7.0", - "@jest/types": "^29.6.3", - "chalk": "^4.0.0", - "create-jest": "^29.7.0", - "exit": "^0.1.2", - "import-local": "^3.0.2", - "jest-config": "^29.7.0", - "jest-util": "^29.7.0", - "jest-validate": "^29.7.0", - "yargs": "^17.3.1" - }, - "bin": { - "jest": "bin/jest.js" - }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "peerDependencies": { - "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + "node": ">= 0.4" }, - "peerDependenciesMeta": { - "node-notifier": { - "optional": true - } + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/jest-config": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-29.7.0.tgz", - "integrity": "sha512-uXbpfeQ7R6TZBqI3/TxCU4q4ttk3u0PJeC+E0zbfSoSjq6bJ7buBPxzQPL0ifrkY4DNu4JUdk0ImlBUYi840eQ==", - "dev": true, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "license": "MIT", + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-number-object": { + "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==", "license": "MIT", "dependencies": { - "@babel/core": "^7.11.6", - "@jest/test-sequencer": "^29.7.0", - "@jest/types": "^29.6.3", - "babel-jest": "^29.7.0", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "deepmerge": "^4.2.2", - "glob": "^7.1.3", - "graceful-fs": "^4.2.9", - "jest-circus": "^29.7.0", - "jest-environment-node": "^29.7.0", - "jest-get-type": "^29.6.3", - "jest-regex-util": "^29.6.3", - "jest-resolve": "^29.7.0", - "jest-runner": "^29.7.0", - "jest-util": "^29.7.0", - "jest-validate": "^29.7.0", - "micromatch": "^4.0.4", - "parse-json": "^5.2.0", - "pretty-format": "^29.7.0", - "slash": "^3.0.0", - "strip-json-comments": "^3.1.1" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "call-bound": "^1.0.3", + "has-tostringtag": "^1.0.2" }, - "peerDependencies": { - "@types/node": "*", - "ts-node": ">=9.0.0" + "engines": { + "node": ">= 0.4" }, - "peerDependenciesMeta": { - "@types/node": { - "optional": true - }, - "ts-node": { - "optional": true - } + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/jest-diff": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.7.0.tgz", - "integrity": "sha512-LMIgiIrhigmPrs03JHpxUh2yISK3vLFPkAodPeo0+BuF7wA2FoQbkEg1u8gBYBThncu7e1oEDUfIXVuTqLRUjw==", + "node_modules/is-obj": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-2.0.0.tgz", + "integrity": "sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==", "dev": true, "license": "MIT", - "dependencies": { - "chalk": "^4.0.0", - "diff-sequences": "^29.6.3", - "jest-get-type": "^29.6.3", - "pretty-format": "^29.7.0" - }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": ">=8" } }, - "node_modules/jest-docblock": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-29.7.0.tgz", - "integrity": "sha512-q617Auw3A612guyaFgsbFeYpNP5t2aoUNLwBUbc/0kD1R4t9ixDbyFTHd1nok4epoVFpr7PmeWHrhvuV3XaJ4g==", + "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", - "dependencies": { - "detect-newline": "^3.0.0" - }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/jest-each": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-29.7.0.tgz", - "integrity": "sha512-gns+Er14+ZrEoC5fhOfYCY1LOHHr0TI+rQUHZS8Ttw2l7gl+80eHc/gFf2Ktkw0+SIACDTeWvpFcv3B04VembQ==", - "dev": true, + "node_modules/is-reference": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/is-reference/-/is-reference-1.2.1.tgz", + "integrity": "sha512-U82MsXXiFIrjCK4otLT+o2NA2Cd2g5MLoOVXUZjIOhLurrRxpEXzI8O0KZHr3IjLvlAH1kTPYSuqer5T9ZVBKQ==", "license": "MIT", "dependencies": { - "@jest/types": "^29.6.3", - "chalk": "^4.0.0", - "jest-get-type": "^29.6.3", - "jest-util": "^29.7.0", - "pretty-format": "^29.7.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "@types/estree": "*" } }, - "node_modules/jest-environment-node": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-29.7.0.tgz", - "integrity": "sha512-DOSwCRqXirTOyheM+4d5YZOrWcdu0LNZ87ewUoywbcb2XR4wKgqiG8vNeYwhjFMbEkfju7wx2GYH0P2gevGvFw==", - "dev": true, + "node_modules/is-regex": { + "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==", "license": "MIT", "dependencies": { - "@jest/environment": "^29.7.0", - "@jest/fake-timers": "^29.7.0", - "@jest/types": "^29.6.3", - "@types/node": "*", - "jest-mock": "^29.7.0", - "jest-util": "^29.7.0" + "call-bound": "^1.0.2", + "gopd": "^1.2.0", + "has-tostringtag": "^1.0.2", + "hasown": "^2.0.2" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/jest-get-type": { - "version": "29.6.3", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.6.3.tgz", - "integrity": "sha512-zrteXnqYxfQh7l5FHyL38jL39di8H8rHoecLH3JNxH3BwOrBsNeabdap5e0I23lD4HHI8W5VFBZqG4Eaq5LNcw==", - "dev": true, + "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==", "license": "MIT", "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/jest-haste-map": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.7.0.tgz", - "integrity": "sha512-fP8u2pyfqx0K1rGn1R9pyE0/KTn+G7PxktWidOBTqFPLYX0b9ksaMFkhK5vrS3DVun09pckLdlx90QthlW7AmA==", - "dev": true, + "node_modules/is-shared-array-buffer": { + "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==", "license": "MIT", "dependencies": { - "@jest/types": "^29.6.3", - "@types/graceful-fs": "^4.1.3", - "@types/node": "*", - "anymatch": "^3.0.3", - "fb-watchman": "^2.0.0", - "graceful-fs": "^4.2.9", - "jest-regex-util": "^29.6.3", - "jest-util": "^29.7.0", - "jest-worker": "^29.7.0", - "micromatch": "^4.0.4", - "walker": "^1.0.8" + "call-bound": "^1.0.3" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": ">= 0.4" }, - "optionalDependencies": { - "fsevents": "^2.3.2" + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/jest-leak-detector": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-29.7.0.tgz", - "integrity": "sha512-kYA8IJcSYtST2BY9I+SMC32nDpBT3J2NvWJx8+JCuCdl/CR1I4EKUJROiP8XtCcxqgTTBGJNdbB1A8XRKbTetw==", + "node_modules/is-stream": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", "dev": true, "license": "MIT", - "dependencies": { - "jest-get-type": "^29.6.3", - "pretty-format": "^29.7.0" - }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/jest-matcher-utils": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.7.0.tgz", - "integrity": "sha512-sBkD+Xi9DtcChsI3L3u0+N0opgPYnCRPtGcQYrgXmR+hmt/fYfWAL0xRXYU8eWOdfuLgBe0YCW3AFtnRLagq/g==", - "dev": true, + "node_modules/is-string": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.1.1.tgz", + "integrity": "sha512-BtEeSsoaQjlSPBemMQIrY1MY0uM6vnS1g5fmufYOtnxLGUZM2178PKbhsk7Ffv58IX+ZtcvoGwccYsh0PglkAA==", "license": "MIT", "dependencies": { - "chalk": "^4.0.0", - "jest-diff": "^29.7.0", - "jest-get-type": "^29.6.3", - "pretty-format": "^29.7.0" + "call-bound": "^1.0.3", + "has-tostringtag": "^1.0.2" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/jest-message-util": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-29.7.0.tgz", - "integrity": "sha512-GBEV4GRADeP+qtB2+6u61stea8mGcOT4mCtrYISZwfu9/ISHFJ/5zOMXYbpBE9RsS5+Gb63DW4FgmnKJ79Kf6w==", - "dev": true, + "node_modules/is-symbol": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.1.1.tgz", + "integrity": "sha512-9gGx6GTtCQM73BgmHQXfDmLtfjjTUDSyoxTCbp5WtoixAhfgsDirWIcVQ/IHpvI5Vgd5i/J5F7B9cN/WlVbC/w==", "license": "MIT", "dependencies": { - "@babel/code-frame": "^7.12.13", - "@jest/types": "^29.6.3", - "@types/stack-utils": "^2.0.0", - "chalk": "^4.0.0", - "graceful-fs": "^4.2.9", - "micromatch": "^4.0.4", - "pretty-format": "^29.7.0", - "slash": "^3.0.0", - "stack-utils": "^2.0.3" + "call-bound": "^1.0.2", + "has-symbols": "^1.1.0", + "safe-regex-test": "^1.1.0" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/jest-mock": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-29.7.0.tgz", - "integrity": "sha512-ITOMZn+UkYS4ZFh83xYAOzWStloNzJFO2s8DWrE4lhtGD+AorgnbkiKERe4wQVBydIGPx059g6riW5Btp6Llnw==", - "dev": true, + "node_modules/is-typed-array": { + "version": "1.1.15", + "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.15.tgz", + "integrity": "sha512-p3EcsicXjit7SaskXHs1hA91QxgTw46Fv6EFKKGS5DRFLD8yKnohjF3hxoju94b/OcMZoQukzpPpBE9uLVKzgQ==", "license": "MIT", "dependencies": { - "@jest/types": "^29.6.3", - "@types/node": "*", - "jest-util": "^29.7.0" + "which-typed-array": "^1.1.16" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/jest-pnp-resolver": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz", - "integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==", + "node_modules/is-unicode-supported": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-2.1.0.tgz", + "integrity": "sha512-mE00Gnza5EEB3Ds0HfMyllZzbBrmLOX3vfWoj9A9PEnTfratQ/BcaJOuMhnkhjXvb2+FkY3VuHqtAGpTPmglFQ==", "dev": true, "license": "MIT", "engines": { - "node": ">=6" - }, - "peerDependencies": { - "jest-resolve": "*" + "node": ">=18" }, - "peerDependenciesMeta": { - "jest-resolve": { - "optional": true - } + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/jest-regex-util": { - "version": "29.6.3", - "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.6.3.tgz", - "integrity": "sha512-KJJBsRCyyLNWCNBOvZyRDnAIfUiRJ8v+hOBQYGn8gDyF3UegwiP4gwRR3/SDa42g1YbVycTidUF3rKjyLFDWbg==", - "dev": true, + "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==", "license": "MIT", "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-resolve": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-29.7.0.tgz", - "integrity": "sha512-IOVhZSrg+UvVAshDSDtHyFCCBUl/Q3AAJv8iZ6ZjnZ74xzvwuzLXid9IIIPgTnY62SJjfuupMKZsZQRsCvxEgA==", - "dev": true, - "license": "MIT", - "dependencies": { - "chalk": "^4.0.0", - "graceful-fs": "^4.2.9", - "jest-haste-map": "^29.7.0", - "jest-pnp-resolver": "^1.2.2", - "jest-util": "^29.7.0", - "jest-validate": "^29.7.0", - "resolve": "^1.20.0", - "resolve.exports": "^2.0.0", - "slash": "^3.0.0" + "node": ">= 0.4" }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/jest-resolve-dependencies": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-29.7.0.tgz", - "integrity": "sha512-un0zD/6qxJ+S0et7WxeI3H5XSe9lTBBR7bOHCHXkKR6luG5mwDDlIzVQ0V5cZCuoTgEdcdwzTghYkTWfubi+nA==", - "dev": true, + "node_modules/is-weakref": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.1.1.tgz", + "integrity": "sha512-6i9mGWSlqzNMEqpCp93KwRS1uUOodk2OJ6b+sq7ZPDSy2WuI5NFIxp/254TytR8ftefexkWn5xNiHUNpPOfSew==", "license": "MIT", "dependencies": { - "jest-regex-util": "^29.6.3", - "jest-snapshot": "^29.7.0" + "call-bound": "^1.0.3" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/jest-runner": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-29.7.0.tgz", - "integrity": "sha512-fsc4N6cPCAahybGBfTRcq5wFR6fpLznMg47sY5aDpsoejOcVYFb07AHuSnR0liMcPTgBsA3ZJL6kFOjPdoNipQ==", - "dev": true, + "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==", "license": "MIT", "dependencies": { - "@jest/console": "^29.7.0", - "@jest/environment": "^29.7.0", - "@jest/test-result": "^29.7.0", - "@jest/transform": "^29.7.0", - "@jest/types": "^29.6.3", - "@types/node": "*", - "chalk": "^4.0.0", - "emittery": "^0.13.1", - "graceful-fs": "^4.2.9", - "jest-docblock": "^29.7.0", - "jest-environment-node": "^29.7.0", - "jest-haste-map": "^29.7.0", - "jest-leak-detector": "^29.7.0", - "jest-message-util": "^29.7.0", - "jest-resolve": "^29.7.0", - "jest-runtime": "^29.7.0", - "jest-util": "^29.7.0", - "jest-watcher": "^29.7.0", - "jest-worker": "^29.7.0", - "p-limit": "^3.1.0", - "source-map-support": "0.5.13" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-runtime": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-29.7.0.tgz", - "integrity": "sha512-gUnLjgwdGqW7B4LvOIkbKs9WGbn+QLqRQQ9juC6HndeDiezIwhDP+mhMwHWCEcfQ5RUXa6OPnFF8BJh5xegwwQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jest/environment": "^29.7.0", - "@jest/fake-timers": "^29.7.0", - "@jest/globals": "^29.7.0", - "@jest/source-map": "^29.6.3", - "@jest/test-result": "^29.7.0", - "@jest/transform": "^29.7.0", - "@jest/types": "^29.6.3", - "@types/node": "*", - "chalk": "^4.0.0", - "cjs-module-lexer": "^1.0.0", - "collect-v8-coverage": "^1.0.0", - "glob": "^7.1.3", - "graceful-fs": "^4.2.9", - "jest-haste-map": "^29.7.0", - "jest-message-util": "^29.7.0", - "jest-mock": "^29.7.0", - "jest-regex-util": "^29.6.3", - "jest-resolve": "^29.7.0", - "jest-snapshot": "^29.7.0", - "jest-util": "^29.7.0", - "slash": "^3.0.0", - "strip-bom": "^4.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-snapshot": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-29.7.0.tgz", - "integrity": "sha512-Rm0BMWtxBcioHr1/OX5YCP8Uov4riHvKPknOGs804Zg9JGZgmIBkbtlxJC/7Z4msKYVbIJtfU+tKb8xlYNfdkw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/core": "^7.11.6", - "@babel/generator": "^7.7.2", - "@babel/plugin-syntax-jsx": "^7.7.2", - "@babel/plugin-syntax-typescript": "^7.7.2", - "@babel/types": "^7.3.3", - "@jest/expect-utils": "^29.7.0", - "@jest/transform": "^29.7.0", - "@jest/types": "^29.6.3", - "babel-preset-current-node-syntax": "^1.0.0", - "chalk": "^4.0.0", - "expect": "^29.7.0", - "graceful-fs": "^4.2.9", - "jest-diff": "^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", - "natural-compare": "^1.4.0", - "pretty-format": "^29.7.0", - "semver": "^7.5.3" + "call-bound": "^1.0.3", + "get-intrinsic": "^1.2.6" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/jest-util": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.7.0.tgz", - "integrity": "sha512-z6EbKajIpqGKU56y5KBUgy1dt1ihhQJgWzUlZHArA/+X2ad7Cb5iF+AK1EWVL/Bo7Rz9uurpqw6SiBCefUbCGA==", + "node_modules/isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", "dev": true, - "license": "MIT", - "dependencies": { - "@jest/types": "^29.6.3", - "@types/node": "*", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "graceful-fs": "^4.2.9", - "picomatch": "^2.2.3" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } + "license": "ISC" }, - "node_modules/jest-validate": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-29.7.0.tgz", - "integrity": "sha512-ZB7wHqaRGVw/9hST/OuFUReG7M8vKeq0/J2egIGLdvjHCmYqGARhzXmtgi+gVeZ5uXFF219aOc3Ls2yLg27tkw==", + "node_modules/issue-parser": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/issue-parser/-/issue-parser-7.0.2.tgz", + "integrity": "sha512-7atWPjhGEIX3JEtMrOYd8TKzboYlq+5sNbdl9POiLYOI14G5HZiQbZP0Xj5EZdrufQVXfJlpTV0hys0CuxwxZw==", "dev": true, "license": "MIT", "dependencies": { - "@jest/types": "^29.6.3", - "camelcase": "^6.2.0", - "chalk": "^4.0.0", - "jest-get-type": "^29.6.3", - "leven": "^3.1.0", - "pretty-format": "^29.7.0" + "lodash.capitalize": "^4.2.1", + "lodash.escaperegexp": "^4.1.2", + "lodash.isplainobject": "^4.0.6", + "lodash.isstring": "^4.0.1", + "lodash.uniqby": "^4.7.0" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": "^18.17 || >=20.6.1" } }, - "node_modules/jest-validate/node_modules/camelcase": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", - "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", + "node_modules/istanbul-lib-coverage": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz", + "integrity": "sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==", "dev": true, - "license": "MIT", + "license": "BSD-3-Clause", "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=8" } }, - "node_modules/jest-watcher": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-29.7.0.tgz", - "integrity": "sha512-49Fg7WXkU3Vl2h6LbLtMQ/HyB6rXSIX7SqvBLQmssRBGN9I0PNvPmAmCWSOY6SOvrjhI/F7/bGAv9RtnsPA03g==", + "node_modules/istanbul-lib-report": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz", + "integrity": "sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==", "dev": true, - "license": "MIT", + "license": "BSD-3-Clause", "dependencies": { - "@jest/test-result": "^29.7.0", - "@jest/types": "^29.6.3", - "@types/node": "*", - "ansi-escapes": "^4.2.1", - "chalk": "^4.0.0", - "emittery": "^0.13.1", - "jest-util": "^29.7.0", - "string-length": "^4.0.1" + "istanbul-lib-coverage": "^3.0.0", + "make-dir": "^4.0.0", + "supports-color": "^7.1.0" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": ">=10" } }, - "node_modules/jest-worker": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.7.0.tgz", - "integrity": "sha512-eIz2msL/EzL9UFTFFx7jBTkeZfku0yUAyZZZmJ93H2TYEiroIx2PQjEXcwYtYl8zXCxb+PAmA2hLIt/6ZEkPHw==", + "node_modules/istanbul-reports": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.2.0.tgz", + "integrity": "sha512-HGYWWS/ehqTV3xN10i23tkPkpH46MLCIMFNCaaKNavAXTF1RkqxawEPtnjnGZ6XKSInBKkiOA5BKS+aZiY3AvA==", "dev": true, - "license": "MIT", + "license": "BSD-3-Clause", "dependencies": { - "@types/node": "*", - "jest-util": "^29.7.0", - "merge-stream": "^2.0.0", - "supports-color": "^8.0.0" + "html-escaper": "^2.0.0", + "istanbul-lib-report": "^3.0.0" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": ">=8" } }, - "node_modules/jest-worker/node_modules/supports-color": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "node_modules/java-properties": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/java-properties/-/java-properties-1.0.2.tgz", + "integrity": "sha512-qjdpeo2yKlYTH7nFdK0vbZWuTCesk4o63v5iVOlhMQPfuIZQfW/HI35SjfhA+4qpg36rnFSvUK5b1m+ckIblQQ==", "dev": true, "license": "MIT", - "dependencies": { - "has-flag": "^4.0.0" - }, "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/supports-color?sponsor=1" + "node": ">= 0.6.0" } }, "node_modules/js-tokens": { @@ -7528,19 +6044,6 @@ "node": ">= 10.16.0" } }, - "node_modules/jsesc": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", - "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", - "dev": true, - "license": "MIT", - "bin": { - "jsesc": "bin/jsesc" - }, - "engines": { - "node": ">=6" - } - }, "node_modules/json-buffer": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", @@ -7591,19 +6094,6 @@ "dev": true, "license": "MIT" }, - "node_modules/json5": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", - "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", - "dev": true, - "license": "MIT", - "bin": { - "json5": "lib/cli.js" - }, - "engines": { - "node": ">=6" - } - }, "node_modules/jsonc-parser": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-2.2.1.tgz", @@ -7678,37 +6168,288 @@ "graceful-fs": "^4.1.9" } }, - "node_modules/kleur": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", - "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", + "node_modules/leven": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", + "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/lightningcss": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.32.0.tgz", + "integrity": "sha512-NXYBzinNrblfraPGyrbPoD19C1h9lfI/1mzgWYvXUTe414Gz/X1FD2XBZSZM7rRTrMA8JL3OtAaGifrIKhQ5yQ==", + "dev": true, + "license": "MPL-2.0", + "dependencies": { + "detect-libc": "^2.0.3" + }, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + }, + "optionalDependencies": { + "lightningcss-android-arm64": "1.32.0", + "lightningcss-darwin-arm64": "1.32.0", + "lightningcss-darwin-x64": "1.32.0", + "lightningcss-freebsd-x64": "1.32.0", + "lightningcss-linux-arm-gnueabihf": "1.32.0", + "lightningcss-linux-arm64-gnu": "1.32.0", + "lightningcss-linux-arm64-musl": "1.32.0", + "lightningcss-linux-x64-gnu": "1.32.0", + "lightningcss-linux-x64-musl": "1.32.0", + "lightningcss-win32-arm64-msvc": "1.32.0", + "lightningcss-win32-x64-msvc": "1.32.0" + } + }, + "node_modules/lightningcss-android-arm64": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-android-arm64/-/lightningcss-android-arm64-1.32.0.tgz", + "integrity": "sha512-YK7/ClTt4kAK0vo6w3X+Pnm0D2cf2vPHbhOXdoNti1Ga0al1P4TBZhwjATvjNwLEBCnKvjJc2jQgHXH0NEwlAg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-darwin-arm64": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.32.0.tgz", + "integrity": "sha512-RzeG9Ju5bag2Bv1/lwlVJvBE3q6TtXskdZLLCyfg5pt+HLz9BqlICO7LZM7VHNTTn/5PRhHFBSjk5lc4cmscPQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-darwin-x64": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.32.0.tgz", + "integrity": "sha512-U+QsBp2m/s2wqpUYT/6wnlagdZbtZdndSmut/NJqlCcMLTWp5muCrID+K5UJ6jqD2BFshejCYXniPDbNh73V8w==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-freebsd-x64": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.32.0.tgz", + "integrity": "sha512-JCTigedEksZk3tHTTthnMdVfGf61Fky8Ji2E4YjUTEQX14xiy/lTzXnu1vwiZe3bYe0q+SpsSH/CTeDXK6WHig==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm-gnueabihf": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.32.0.tgz", + "integrity": "sha512-x6rnnpRa2GL0zQOkt6rts3YDPzduLpWvwAF6EMhXFVZXD4tPrBkEFqzGowzCsIWsPjqSK+tyNEODUBXeeVHSkw==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm64-gnu": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.32.0.tgz", + "integrity": "sha512-0nnMyoyOLRJXfbMOilaSRcLH3Jw5z9HDNGfT/gwCPgaDjnx0i8w7vBzFLFR1f6CMLKF8gVbebmkUN3fa/kQJpQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm64-musl": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.32.0.tgz", + "integrity": "sha512-UpQkoenr4UJEzgVIYpI80lDFvRmPVg6oqboNHfoH4CQIfNA+HOrZ7Mo7KZP02dC6LjghPQJeBsvXhJod/wnIBg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-x64-gnu": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.32.0.tgz", + "integrity": "sha512-V7Qr52IhZmdKPVr+Vtw8o+WLsQJYCTd8loIfpDaMRWGUZfBOYEJeyJIkqGIDMZPwPx24pUMfwSxxI8phr/MbOA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-x64-musl": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.32.0.tgz", + "integrity": "sha512-bYcLp+Vb0awsiXg/80uCRezCYHNg1/l3mt0gzHnWV9XP1W5sKa5/TCdGWaR/zBM2PeF/HbsQv/j2URNOiVuxWg==", + "cpu": [ + "x64" + ], "dev": true, - "license": "MIT", + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], "engines": { - "node": ">=6" + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" } }, - "node_modules/leven": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", - "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", - "license": "MIT", + "node_modules/lightningcss-win32-arm64-msvc": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.32.0.tgz", + "integrity": "sha512-8SbC8BR40pS6baCM8sbtYDSwEVQd4JlFTOlaD3gWGHfThTcABnNDBda6eTZeqbofalIJhFx0qKzgHJmcPTnGdw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "win32" + ], "engines": { - "node": ">=6" + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" } }, - "node_modules/levn": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", - "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "node_modules/lightningcss-win32-x64-msvc": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.32.0.tgz", + "integrity": "sha512-Amq9B/SoZYdDi1kFrojnoqPLxYhQ4Wo5XiL8EVJrVsB8ARoC1PWW6VGtT0WKCemjy8aC+louJnjS7U18x3b06Q==", + "cpu": [ + "x64" + ], "dev": true, - "license": "MIT", - "dependencies": { - "prelude-ls": "^1.2.1", - "type-check": "~0.4.0" - }, + "license": "MPL-2.0", + "optional": true, + "os": [ + "win32" + ], "engines": { - "node": ">= 0.8.0" + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" } }, "node_modules/lines-and-columns": { @@ -7866,16 +6607,6 @@ "integrity": "sha512-WpG9CcFAOjz/FtNht+QJeGpvVl/cdR6P0z6OcXSkr8wFJOsV2GRj2j10JLfjuA4aYkcKCNIEqRGCyTife9R8/g==", "license": "MIT" }, - "node_modules/lru-cache": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", - "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", - "dev": true, - "license": "ISC", - "dependencies": { - "yallist": "^3.0.2" - } - }, "node_modules/magic-string": { "version": "0.25.9", "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.25.9.tgz", @@ -7885,6 +6616,18 @@ "sourcemap-codec": "^1.4.8" } }, + "node_modules/magicast": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/magicast/-/magicast-0.5.3.tgz", + "integrity": "sha512-pVKE4UdSQ7DvHzivsCIFx2BJn1mHG6KsyrFcaxFx6tONdneEuThrDx0Cj3AMg58KyN4pzYT+LHOotxDQDjNvkw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.29.3", + "@babel/types": "^7.29.0", + "source-map-js": "^1.2.1" + } + }, "node_modules/make-asynchronous": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/make-asynchronous/-/make-asynchronous-1.1.0.tgz", @@ -7932,16 +6675,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/makeerror": { - "version": "1.0.12", - "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.12.tgz", - "integrity": "sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==", - "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "tmpl": "1.0.5" - } - }, "node_modules/markdown-escape": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/markdown-escape/-/markdown-escape-2.0.0.tgz", @@ -8272,6 +7005,25 @@ "thenify-all": "^1.0.0" } }, + "node_modules/nanoid": { + "version": "3.3.12", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.12.tgz", + "integrity": "sha512-ZB9RH/39qpq5Vu6Y+NmUaFhQR6pp+M2Xt76XBnEwDaGcVAqhlvxrl3B2bKS5D3NH3QR76v3aSrKaF/Kiy7lEtQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, "node_modules/napi-build-utils": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/napi-build-utils/-/napi-build-utils-1.0.2.tgz", @@ -8361,23 +7113,6 @@ } } }, - "node_modules/node-int64": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", - "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==", - "dev": true, - "license": "MIT" - }, - "node_modules/node-releases": { - "version": "2.0.55", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.55.tgz", - "integrity": "sha512-mIrE/Cw9y+9Au6dS5vDKDhQza9YvG6w+ZrS6X+ZzA7yFW/soAeaups4Qzn1bL6g5FVy8WtP79+0j82oPIbqRjQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18" - } - }, "node_modules/node-sarif-builder": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/node-sarif-builder/-/node-sarif-builder-2.0.3.tgz", @@ -8420,16 +7155,6 @@ "node": "^20.17.0 || >=22.9.0" } }, - "node_modules/normalize-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", - "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/normalize-url": { "version": "9.0.1", "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-9.0.1.tgz", @@ -10414,6 +9139,20 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/obug": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/obug/-/obug-2.1.2.tgz", + "integrity": "sha512-AWGB9WFcRXOQs48Z/udjI5ZcZMHXwX8XPByNpOydgcGsDLIzjGizhoMWJyKAWze7AVW/2W1i+/gPX4YtKe5cyg==", + "dev": true, + "funding": [ + "https://github.com/sponsors/sxzz", + "https://opencollective.com/debug" + ], + "license": "MIT", + "engines": { + "node": ">=12.20.0" + } + }, "node_modules/once": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", @@ -10596,16 +9335,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/p-try": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", - "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, "node_modules/pad": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/pad/-/pad-2.3.0.tgz", @@ -10730,6 +9459,13 @@ "node": ">=8" } }, + "node_modules/pathe": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz", + "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==", + "dev": true, + "license": "MIT" + }, "node_modules/picocolors": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", @@ -10759,16 +9495,6 @@ "node": ">=4" } }, - "node_modules/pirates": { - "version": "4.0.7", - "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.7.tgz", - "integrity": "sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 6" - } - }, "node_modules/pkg": { "version": "5.8.1", "resolved": "https://registry.npmjs.org/pkg/-/pkg-5.8.1.tgz", @@ -10890,75 +9616,6 @@ "node": ">=4" } }, - "node_modules/pkg-dir": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", - "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "find-up": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/pkg-dir/node_modules/find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "dev": true, - "license": "MIT", - "dependencies": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/pkg-dir/node_modules/locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "dev": true, - "license": "MIT", - "dependencies": { - "p-locate": "^4.1.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/pkg-dir/node_modules/p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dev": true, - "license": "MIT", - "dependencies": { - "p-try": "^2.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/pkg-dir/node_modules/p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "dev": true, - "license": "MIT", - "dependencies": { - "p-limit": "^2.2.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/pkg-fetch": { "version": "3.4.2", "resolved": "https://registry.npmjs.org/pkg-fetch/-/pkg-fetch-3.4.2.tgz", @@ -11114,6 +9771,35 @@ "node": ">= 0.4" } }, + "node_modules/postcss": { + "version": "8.5.15", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.15.tgz", + "integrity": "sha512-FfR8sjd4em2T6fb3I2MwAJU7HWVMr9zba+enmQeeWFfCbm+UOC/0X4DS8XtpUTMwWMGbjKYP7xjfNekzyGmB3A==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "nanoid": "^3.3.12", + "picocolors": "^1.1.1", + "source-map-js": "^1.2.1" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, "node_modules/prebuild-install": { "version": "7.1.1", "resolved": "https://registry.npmjs.org/prebuild-install/-/prebuild-install-7.1.1.tgz", @@ -11182,34 +9868,6 @@ "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", - "integrity": "sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jest/schemas": "^29.6.3", - "ansi-styles": "^5.0.0", - "react-is": "^18.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/pretty-format/node_modules/ansi-styles": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, "node_modules/pretty-ms": { "version": "9.3.1", "resolved": "https://registry.npmjs.org/pretty-ms/-/pretty-ms-9.3.1.tgz", @@ -11249,20 +9907,6 @@ "node": ">=0.4.0" } }, - "node_modules/prompts": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", - "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "kleur": "^3.0.3", - "sisteransi": "^1.0.5" - }, - "engines": { - "node": ">= 6" - } - }, "node_modules/proto-list": { "version": "1.2.4", "resolved": "https://registry.npmjs.org/proto-list/-/proto-list-1.2.4.tgz", @@ -11319,23 +9963,6 @@ "node": ">=6" } }, - "node_modules/pure-rand": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/pure-rand/-/pure-rand-6.1.0.tgz", - "integrity": "sha512-bVWawvoZoBYpp6yIoQtQXHZjmz35RSVHnUOTefl8Vcjr8snTPY1wnpSPMWekcFwbxI6gtmT7rSYPFvz71ldiOA==", - "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://github.com/sponsors/dubzzz" - }, - { - "type": "opencollective", - "url": "https://opencollective.com/fast-check" - } - ], - "license": "MIT" - }, "node_modules/queue-microtask": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", @@ -11382,13 +10009,6 @@ "node": ">=0.10.0" } }, - "node_modules/react-is": { - "version": "18.3.1", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz", - "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==", - "dev": true, - "license": "MIT" - }, "node_modules/read-package-up": { "version": "12.0.0", "resolved": "https://registry.npmjs.org/read-package-up/-/read-package-up-12.0.0.tgz", @@ -11618,29 +10238,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/resolve-cwd": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", - "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", - "dev": true, - "license": "MIT", - "dependencies": { - "resolve-from": "^5.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/resolve-cwd/node_modules/resolve-from": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", - "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, "node_modules/resolve-from": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", @@ -11651,16 +10248,6 @@ "node": ">=4" } }, - "node_modules/resolve.exports": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-2.0.3.tgz", - "integrity": "sha512-OcXjMsGdhL4XnbShKpAcSqPMzQoYkYyhbEaeSko47MjRP9NfEQMhZkXL1DoFlt9LWQn4YttrdnV6X2OiyzBi+A==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - } - }, "node_modules/resolve/node_modules/is-core-module": { "version": "2.16.2", "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.2.tgz", @@ -11682,8 +10269,42 @@ "integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==", "license": "MIT", "engines": { - "iojs": ">=1.0.0", - "node": ">=0.10.0" + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, + "node_modules/rolldown": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.0.3.tgz", + "integrity": "sha512-i00lAJ2ks1BYr7rjNjKC7BcqAS7nVfiT3QX1SI5aY+AFHblCmaUf9OE9dbdzDvW6dJxbi2ZCZiy9v3CcwOiX3g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@oxc-project/types": "=0.133.0", + "@rolldown/pluginutils": "^1.0.0" + }, + "bin": { + "rolldown": "bin/cli.mjs" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "optionalDependencies": { + "@rolldown/binding-android-arm64": "1.0.3", + "@rolldown/binding-darwin-arm64": "1.0.3", + "@rolldown/binding-darwin-x64": "1.0.3", + "@rolldown/binding-freebsd-x64": "1.0.3", + "@rolldown/binding-linux-arm-gnueabihf": "1.0.3", + "@rolldown/binding-linux-arm64-gnu": "1.0.3", + "@rolldown/binding-linux-arm64-musl": "1.0.3", + "@rolldown/binding-linux-ppc64-gnu": "1.0.3", + "@rolldown/binding-linux-s390x-gnu": "1.0.3", + "@rolldown/binding-linux-x64-gnu": "1.0.3", + "@rolldown/binding-linux-x64-musl": "1.0.3", + "@rolldown/binding-openharmony-arm64": "1.0.3", + "@rolldown/binding-wasm32-wasi": "1.0.3", + "@rolldown/binding-win32-arm64-msvc": "1.0.3", + "@rolldown/binding-win32-x64-msvc": "1.0.3" } }, "node_modules/rollup": { @@ -12414,6 +11035,13 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/siginfo": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/siginfo/-/siginfo-2.0.0.tgz", + "integrity": "sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==", + "dev": true, + "license": "ISC" + }, "node_modules/signal-exit": { "version": "3.0.7", "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", @@ -12580,13 +11208,6 @@ "integrity": "sha512-j7piyCjAeTDSjzTSQ7DokZtMNwNlEAyxqSZeCS+CXH7fJ4jx3FuJ/mTW3mE+6JLs4VJBbcll0Kjn+KXI5t21Iw==", "license": "MIT" }, - "node_modules/sisteransi": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", - "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", - "dev": true, - "license": "MIT" - }, "node_modules/skin-tone": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/skin-tone/-/skin-tone-2.0.0.tgz", @@ -12618,15 +11239,14 @@ "node": ">=0.10.0" } }, - "node_modules/source-map-support": { - "version": "0.5.13", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.13.tgz", - "integrity": "sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w==", + "node_modules/source-map-js": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", + "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", "dev": true, - "license": "MIT", - "dependencies": { - "buffer-from": "^1.0.0", - "source-map": "^0.6.0" + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" } }, "node_modules/sourcemap-codec": { @@ -12689,35 +11309,12 @@ "through2": "~2.0.0" } }, - "node_modules/sprintf-js": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", - "dev": true, - "license": "BSD-3-Clause" - }, - "node_modules/stack-utils": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz", - "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "escape-string-regexp": "^2.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/stack-utils/node_modules/escape-string-regexp": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", - "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", + "node_modules/stackback": { + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/stackback/-/stackback-0.0.2.tgz", + "integrity": "sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==", "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } + "license": "MIT" }, "node_modules/stacktracey": { "version": "2.2.0", @@ -12729,6 +11326,13 @@ "get-source": "^2.0.12" } }, + "node_modules/std-env": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/std-env/-/std-env-4.1.0.tgz", + "integrity": "sha512-Rq7ybcX2RuC55r9oaPVEW7/xu3tj8u4GeBYHBWCychFtzMIr86A7e3PPEBPT37sHStKX3+TiX/Fr/ACmJLVlLQ==", + "dev": true, + "license": "MIT" + }, "node_modules/stop-iteration-iterator": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/stop-iteration-iterator/-/stop-iteration-iterator-1.1.0.tgz", @@ -12773,20 +11377,6 @@ "safe-buffer": "~5.1.0" } }, - "node_modules/string-length": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz", - "integrity": "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "char-regex": "^1.0.2", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/string-width": { "version": "4.2.3", "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", @@ -12870,16 +11460,6 @@ "node": ">=8" } }, - "node_modules/strip-bom": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", - "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, "node_modules/strip-final-newline": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", @@ -13091,21 +11671,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/test-exclude": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", - "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", - "dev": true, - "license": "ISC", - "dependencies": { - "@istanbuljs/schema": "^0.1.2", - "glob": "^7.1.4", - "minimatch": "^3.0.4" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/text-table": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", @@ -13162,6 +11727,23 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/tinybench": { + "version": "2.9.0", + "resolved": "https://registry.npmjs.org/tinybench/-/tinybench-2.9.0.tgz", + "integrity": "sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==", + "dev": true, + "license": "MIT" + }, + "node_modules/tinyexec": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-1.2.4.tgz", + "integrity": "sha512-SHf/r48b7vOrjve9PxJo3MN5v5yuyjHvdUcrQffT3WXMUfnGmHDVbC4k3sHJaJTgZCwpUplIaAo5ANtMyp3YHg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + } + }, "node_modules/tinyglobby": { "version": "0.2.17", "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz", @@ -13210,12 +11792,15 @@ "url": "https://github.com/sponsors/jonschlinkert" } }, - "node_modules/tmpl": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz", - "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==", + "node_modules/tinyrainbow": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/tinyrainbow/-/tinyrainbow-3.1.0.tgz", + "integrity": "sha512-Bf+ILmBgretUrdJxzXM0SgXLZ3XfiaUuOj/IKQHuTXip+05Xn+uyEYdVg0kYDipTBcLrCVyUzAPz7QmArb0mmw==", "dev": true, - "license": "BSD-3-Clause" + "license": "MIT", + "engines": { + "node": ">=14.0.0" + } }, "node_modules/to-fast-properties": { "version": "2.0.0", @@ -13300,16 +11885,6 @@ "node": ">= 0.8.0" } }, - "node_modules/type-detect": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", - "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, "node_modules/typed-array-buffer": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.3.tgz", @@ -13515,37 +12090,6 @@ "node": ">= 10.0.0" } }, - "node_modules/update-browserslist-db": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.3.3.tgz", - "integrity": "sha512-pJ2sYawQS0R/WI928Gj5GlPhTGzbMelq0+4INtSYNDV9ErKJcX6xjGWkoG/VnB3dpUm00zALaqkrUD77pO5TDQ==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/browserslist" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", - "dependencies": { - "escalade": "^3.2.0", - "picocolors": "^1.1.1" - }, - "bin": { - "update-browserslist-db": "cli.js" - }, - "peerDependencies": { - "browserslist": ">= 4.21.0" - } - }, "node_modules/uri-js": { "version": "4.4.1", "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", @@ -13588,21 +12132,6 @@ "node": ">= 4" } }, - "node_modules/v8-to-istanbul": { - "version": "9.3.0", - "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.3.0.tgz", - "integrity": "sha512-kiGUalWN+rgBJ/1OHZsBtU4rXZOfj/7rKQxULKlIzwzQSvMJUUNgPwJEEh7gU6xEVxC0ahoOBvN2YI8GH6FNgA==", - "dev": true, - "license": "ISC", - "dependencies": { - "@jridgewell/trace-mapping": "^0.3.12", - "@types/istanbul-lib-coverage": "^2.0.1", - "convert-source-map": "^2.0.0" - }, - "engines": { - "node": ">=10.12.0" - } - }, "node_modules/validate-npm-package-license": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", @@ -13632,14 +12161,208 @@ "node": ">= 0.10" } }, - "node_modules/walker": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz", - "integrity": "sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==", + "node_modules/vite": { + "version": "8.0.16", + "resolved": "https://registry.npmjs.org/vite/-/vite-8.0.16.tgz", + "integrity": "sha512-h9bXPmJichP5fLmVQo3PyaGSDE2n3aPuomeAlVRm0JLmt4rY6zmPKd59HYI4LNW8oTK7tlTsuC7l/m7awx9Jcw==", "dev": true, - "license": "Apache-2.0", + "license": "MIT", + "dependencies": { + "lightningcss": "^1.32.0", + "picomatch": "^4.0.4", + "postcss": "^8.5.15", + "rolldown": "1.0.3", + "tinyglobby": "^0.2.17" + }, + "bin": { + "vite": "bin/vite.js" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "funding": { + "url": "https://github.com/vitejs/vite?sponsor=1" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + }, + "peerDependencies": { + "@types/node": "^20.19.0 || >=22.12.0", + "@vitejs/devtools": "^0.1.18", + "esbuild": "^0.27.0 || ^0.28.0", + "jiti": ">=1.21.0", + "less": "^4.0.0", + "sass": "^1.70.0", + "sass-embedded": "^1.70.0", + "stylus": ">=0.54.8", + "sugarss": "^5.0.0", + "terser": "^5.16.0", + "tsx": "^4.8.1", + "yaml": "^2.4.2" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "@vitejs/devtools": { + "optional": true + }, + "esbuild": { + "optional": true + }, + "jiti": { + "optional": true + }, + "less": { + "optional": true + }, + "sass": { + "optional": true + }, + "sass-embedded": { + "optional": true + }, + "stylus": { + "optional": true + }, + "sugarss": { + "optional": true + }, + "terser": { + "optional": true + }, + "tsx": { + "optional": true + }, + "yaml": { + "optional": true + } + } + }, + "node_modules/vite/node_modules/picomatch": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.4.tgz", + "integrity": "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/vitest": { + "version": "4.1.8", + "resolved": "https://registry.npmjs.org/vitest/-/vitest-4.1.8.tgz", + "integrity": "sha512-flY6ScbCIt9HThs+C5HS7jvGOB560DJtk/Z15IQROTA6zEy49Nh8T/dofWTQL+n3vswqn87sbJNiuqw1SDp5Ig==", + "dev": true, + "license": "MIT", + "dependencies": { + "@vitest/expect": "4.1.8", + "@vitest/mocker": "4.1.8", + "@vitest/pretty-format": "4.1.8", + "@vitest/runner": "4.1.8", + "@vitest/snapshot": "4.1.8", + "@vitest/spy": "4.1.8", + "@vitest/utils": "4.1.8", + "es-module-lexer": "^2.0.0", + "expect-type": "^1.3.0", + "magic-string": "^0.30.21", + "obug": "^2.1.1", + "pathe": "^2.0.3", + "picomatch": "^4.0.3", + "std-env": "^4.0.0-rc.1", + "tinybench": "^2.9.0", + "tinyexec": "^1.0.2", + "tinyglobby": "^0.2.15", + "tinyrainbow": "^3.1.0", + "vite": "^6.0.0 || ^7.0.0 || ^8.0.0", + "why-is-node-running": "^2.3.0" + }, + "bin": { + "vitest": "vitest.mjs" + }, + "engines": { + "node": "^20.0.0 || ^22.0.0 || >=24.0.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" + }, + "peerDependencies": { + "@edge-runtime/vm": "*", + "@opentelemetry/api": "^1.9.0", + "@types/node": "^20.0.0 || ^22.0.0 || >=24.0.0", + "@vitest/browser-playwright": "4.1.8", + "@vitest/browser-preview": "4.1.8", + "@vitest/browser-webdriverio": "4.1.8", + "@vitest/coverage-istanbul": "4.1.8", + "@vitest/coverage-v8": "4.1.8", + "@vitest/ui": "4.1.8", + "happy-dom": "*", + "jsdom": "*", + "vite": "^6.0.0 || ^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "@edge-runtime/vm": { + "optional": true + }, + "@opentelemetry/api": { + "optional": true + }, + "@types/node": { + "optional": true + }, + "@vitest/browser-playwright": { + "optional": true + }, + "@vitest/browser-preview": { + "optional": true + }, + "@vitest/browser-webdriverio": { + "optional": true + }, + "@vitest/coverage-istanbul": { + "optional": true + }, + "@vitest/coverage-v8": { + "optional": true + }, + "@vitest/ui": { + "optional": true + }, + "happy-dom": { + "optional": true + }, + "jsdom": { + "optional": true + }, + "vite": { + "optional": false + } + } + }, + "node_modules/vitest/node_modules/magic-string": { + "version": "0.30.21", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz", + "integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==", + "dev": true, + "license": "MIT", "dependencies": { - "makeerror": "1.0.12" + "@jridgewell/sourcemap-codec": "^1.5.5" + } + }, + "node_modules/vitest/node_modules/picomatch": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.4.tgz", + "integrity": "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" } }, "node_modules/wcwidth": { @@ -13781,6 +12504,23 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/why-is-node-running": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/why-is-node-running/-/why-is-node-running-2.3.0.tgz", + "integrity": "sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==", + "dev": true, + "license": "MIT", + "dependencies": { + "siginfo": "^2.0.0", + "stackback": "0.0.2" + }, + "bin": { + "why-is-node-running": "cli.js" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/word-wrap": { "version": "1.2.5", "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", @@ -13821,20 +12561,6 @@ "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", "license": "ISC" }, - "node_modules/write-file-atomic": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", - "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", - "dev": true, - "license": "ISC", - "dependencies": { - "imurmurhash": "^0.1.4", - "signal-exit": "^3.0.7" - }, - "engines": { - "node": "^12.13.0 || ^14.15.0 || >=16.0.0" - } - }, "node_modules/xmlcreate": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/xmlcreate/-/xmlcreate-2.0.4.tgz", @@ -13861,13 +12587,6 @@ "node": ">=10" } }, - "node_modules/yallist": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", - "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", - "dev": true, - "license": "ISC" - }, "node_modules/yargs": { "version": "17.7.3", "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.3.tgz", @@ -13954,7 +12673,7 @@ }, "devDependencies": { "@stoplight/spectral-core": "1.24.1", - "jest": "29.7.0" + "vitest": "4.1.8" }, "engines": { "node": ">=24.0.0" @@ -14002,8 +12721,9 @@ "license": "Apache-2.0", "devDependencies": { "@stoplight/spectral-core": "1.24.1", - "jest": "29.7.0", - "typescript": "5.9.3" + "@vitest/coverage-v8": "^4.1.8", + "typescript": "5.9.3", + "vitest": "4.1.8" }, "engines": { "node": ">=24.0.0" @@ -14038,8 +12758,8 @@ }, "devDependencies": { "ansi-regex": "5.0.1", - "jest": "29.7.0", - "pkg": "5.8.1" + "pkg": "5.8.1", + "vitest": "4.1.8" }, "engines": { "node": ">=24.0.0", diff --git a/package.json b/package.json index 215eadd90..d4df5a5ab 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,6 @@ { "name": "ibm-openapi-validator", + "type": "module", "workspaces": [ "packages/utilities", "packages/ruleset", @@ -20,7 +21,6 @@ "test-utilities": "npm run test --workspace packages/utilities", "test-validator": "npm run test --workspace packages/validator", "test-docker": "npm run build-docker && docker run --rm --volume \"$PWD\"/packages/validator/test/cli-validator/alternate-spectral-configs/extends-default.yaml:/data/ruleset.yaml --volume \"$PWD\"/packages/validator/test/cli-validator/mock-files/oas3/clean.yml:/data/openapi.yaml ibmdevxsdk/openapi-validator:latest --ruleset ruleset.yaml openapi.yaml", - "jest": "jest", "test-travis": "npm run test-travis --workspaces", "lint": "npm run lint --workspaces && eslint --cache --max-warnings 0 scripts eslint.config.mjs", "fix": "npm run fix --workspaces && eslint --fix scripts eslint.config.mjs", @@ -42,10 +42,10 @@ "eslint-config-prettier": "10.1.8", "eslint-plugin-prettier": "5.5.5", "globals": "17.6.0", - "jest": "29.7.0", "jsdoc": "4.0.5", "mustache": "4.2.0", - "semantic-release": "25.0.9" + "semantic-release": "25.0.9", + "vitest": "4.1.8" }, "overrides": { "proxy-agent": "6.3.0", diff --git a/packages/ruleset/README.md b/packages/ruleset/README.md index c6a19c9a5..36b92e3d6 100644 --- a/packages/ruleset/README.md +++ b/packages/ruleset/README.md @@ -21,9 +21,9 @@ rules: ### Spectral config file - JavaScript ```js // .spectral.js -const ibmOpenapiRuleset = require('@ibm-cloud/openapi-ruleset'); +import ibmOpenapiRuleset from '@ibm-cloud/openapi-ruleset'; -module.exports = { +export default { extends: ibmOpenapiRuleset, rules: { 'content-entry-provided': 'off' @@ -34,13 +34,13 @@ module.exports = { ### Programmatically running Spectral ```js // your-module.js -const ibmOpenapiRuleset = require('@ibm-cloud/openapi-ruleset'); -const { Spectral } = require('@stoplight/spectral-core'); +import ibmOpenapiRuleset from '@ibm-cloud/openapi-ruleset'; +import { Spectral } from '@stoplight/spectral-core'; -function async runSpectral(openapiDocument) { +async function runSpectral(openapiDocument) { const spectral = new Spectral(); spectral.setRuleset(ibmOpenapiRuleset); - results = await spectral.run(openapiDocument); + const results = await spectral.run(openapiDocument); console.log(results); } ``` diff --git a/packages/ruleset/package.json b/packages/ruleset/package.json index e9ce9f0c7..114472c4b 100644 --- a/packages/ruleset/package.json +++ b/packages/ruleset/package.json @@ -1,10 +1,14 @@ { "name": "@ibm-cloud/openapi-ruleset", + "type": "module", "description": "Spectral ruleset for validating IBM Cloud services", "version": "1.33.15", "license": "Apache-2.0", "private": false, - "main": "./src/ibm-oas.js", + "exports": { + ".": "./src/ibm-oas.js", + "./src/utils": "./src/utils/index.js" + }, "repository": { "type": "git", "url": "https://github.com/IBM/openapi-validator.git", @@ -13,9 +17,8 @@ "scripts": { "clean": "rm -rf node_modules", "link": "npm install -g", - "jest": "jest", - "test": "jest test", - "test-travis": "jest --silent --runInBand --no-colors --testNamePattern='^((?!@skip-ci).)*$' test", + "test": "vitest run", + "test-travis": "vitest run --reporter=verbose --testNamePattern='^((?!@skip-ci).)*$'", "lint": "eslint --cache --quiet --ext '.js' src test", "fix": "eslint --fix --ext '.js' src test", "pkg": "echo no executables to build in this package" @@ -36,20 +39,11 @@ }, "devDependencies": { "@stoplight/spectral-core": "1.24.1", - "jest": "29.7.0" + "vitest": "4.1.8" }, "engines": { "node": ">=24.0.0" }, - "jest": { - "collectCoverage": true, - "coverageDirectory": "./coverage/", - "testEnvironment": "node", - "moduleNameMapper": { - "nimma/legacy": "/../../node_modules/@stoplight/spectral-core/node_modules/nimma/dist/legacy/cjs", - "nimma/fallbacks": "/../../node_modules/@stoplight/spectral-core/node_modules/nimma/dist/legacy/cjs/fallbacks/" - } - }, "prettier": { "quoteProps": "consistent", "overrides": [ diff --git a/packages/ruleset/src/functions/accept-and-return-models.js b/packages/ruleset/src/functions/accept-and-return-models.js index 3b6ebfccd..1de18fa7d 100644 --- a/packages/ruleset/src/functions/accept-and-return-models.js +++ b/packages/ruleset/src/functions/accept-and-return-models.js @@ -3,12 +3,12 @@ * SPDX-License-Identifier: Apache2.0 */ -const { +import { isObject, isObjectSchema, schemaHasConstraint, -} = require('@ibm-cloud/openapi-ruleset-utilities'); -const { supportsJsonContent, LoggerFactory } = require('../utils'); +} from '@ibm-cloud/openapi-ruleset-utilities'; +import { supportsJsonContent, LoggerFactory } from '../utils/index.js'; let ruleId; let logger; @@ -25,13 +25,13 @@ let logger; * */ -module.exports = function acceptAndReturnModels(operation, options, context) { +export default function acceptAndReturnModels(operation, options, context) { if (!logger) { ruleId = context.rule.name; logger = LoggerFactory.getInstance().getLogger(ruleId); } return checkForProperties(operation, context.path); -}; +} /** * This function checks to ensure a request or response body schema diff --git a/packages/ruleset/src/functions/allowed-keywords.js b/packages/ruleset/src/functions/allowed-keywords.js index 237172d67..a8556b024 100644 --- a/packages/ruleset/src/functions/allowed-keywords.js +++ b/packages/ruleset/src/functions/allowed-keywords.js @@ -3,13 +3,13 @@ * SPDX-License-Identifier: Apache2.0 */ -const { validateSubschemas } = require('@ibm-cloud/openapi-ruleset-utilities'); -const { LoggerFactory } = require('../utils'); +import { validateSubschemas } from '@ibm-cloud/openapi-ruleset-utilities'; +import { LoggerFactory } from '../utils/index.js'; let ruleId; let logger; -module.exports = function (obj, options, context) { +export default function (obj, options, context) { if (!logger) { ruleId = context.rule.name; logger = LoggerFactory.getInstance().getLogger(ruleId); @@ -21,7 +21,7 @@ module.exports = function (obj, options, context) { true, true ); -}; +} /** * This function will check to make sure that 'obj' is an object that contains only fields (keys) diff --git a/packages/ruleset/src/functions/anchored-patterns.js b/packages/ruleset/src/functions/anchored-patterns.js index 4fccc7b79..581df8a98 100644 --- a/packages/ruleset/src/functions/anchored-patterns.js +++ b/packages/ruleset/src/functions/anchored-patterns.js @@ -3,16 +3,16 @@ * SPDX-License-Identifier: Apache2.0 */ -const { +import { isStringSchema, validateSubschemas, -} = require('@ibm-cloud/openapi-ruleset-utilities'); +} from '@ibm-cloud/openapi-ruleset-utilities'; -const { LoggerFactory } = require('../utils'); +import { LoggerFactory } from '../utils/index.js'; let ruleId; let logger; -module.exports = function (schema, _opts, context) { +export default function (schema, _opts, context) { if (!logger) { ruleId = context.rule.name; logger = LoggerFactory.getInstance().getLogger(ruleId); @@ -24,7 +24,7 @@ module.exports = function (schema, _opts, context) { true, false ); -}; +} /** * This function will check the "pattern" attribute found on each string schema diff --git a/packages/ruleset/src/functions/api-symmetry.js b/packages/ruleset/src/functions/api-symmetry.js index 0b19a9b1e..cd2573a11 100644 --- a/packages/ruleset/src/functions/api-symmetry.js +++ b/packages/ruleset/src/functions/api-symmetry.js @@ -3,21 +3,21 @@ * SPDX-License-Identifier: Apache2.0 */ -const { +import { getNodes, getSchemaType, isObject, isArraySchema, validateSubschemas, -} = require('@ibm-cloud/openapi-ruleset-utilities'); +} from '@ibm-cloud/openapi-ruleset-utilities'; -const { +import { LoggerFactory, computeRefsAtPaths, getCanonicalSchemaForPath, getResourceOrientedPaths, getSchemaNameAtPath, -} = require('../utils'); +} from '../utils/index.js'; let ruleId; let logger; @@ -42,13 +42,13 @@ const infoLogStack = []; * - ibm-schema-naming-convention: schemas have appropriate, purpose-based names */ -module.exports = function apiSymmetry(apidef, options, context) { +export default function apiSymmetry(apidef, options, context) { if (!logger) { ruleId = context.rule.name; logger = LoggerFactory.getInstance().getLogger(ruleId); } return checkApiForSymmetry(apidef, getNodes(context)); -}; +} /** * This function checks for most of the API Handbook's rules about schema diff --git a/packages/ruleset/src/functions/array-attributes.js b/packages/ruleset/src/functions/array-attributes.js index 2048b4d3d..648a2239d 100644 --- a/packages/ruleset/src/functions/array-attributes.js +++ b/packages/ruleset/src/functions/array-attributes.js @@ -3,17 +3,17 @@ * SPDX-License-Identifier: Apache2.0 */ -const { isPlainObject } = require('lodash'); -const { +import isPlainObject from 'lodash/isPlainObject.js'; +import { validateNestedSchemas, isArraySchema, -} = require('@ibm-cloud/openapi-ruleset-utilities'); -const { getCompositeSchemaAttribute, LoggerFactory } = require('../utils'); +} from '@ibm-cloud/openapi-ruleset-utilities'; +import { getCompositeSchemaAttribute, LoggerFactory } from '../utils/index.js'; let ruleId; let logger; -module.exports = function (schema, _opts, context) { +export default function (schema, _opts, context) { if (!logger) { ruleId = context.rule.name; logger = LoggerFactory.getInstance().getLogger(ruleId); @@ -25,7 +25,7 @@ module.exports = function (schema, _opts, context) { true, false ); -}; +} function arrayAttributeErrors(schema, path) { logger.debug( diff --git a/packages/ruleset/src/functions/array-of-arrays.js b/packages/ruleset/src/functions/array-of-arrays.js index 1f870e8d9..4aaac9b66 100644 --- a/packages/ruleset/src/functions/array-of-arrays.js +++ b/packages/ruleset/src/functions/array-of-arrays.js @@ -3,21 +3,21 @@ * SPDX-License-Identifier: Apache2.0 */ -const { +import { isArraySchema, validateSubschemas, -} = require('@ibm-cloud/openapi-ruleset-utilities'); -const { LoggerFactory } = require('../utils'); +} from '@ibm-cloud/openapi-ruleset-utilities'; +import { LoggerFactory } from '../utils/index.js'; let ruleId; let logger; -module.exports = function (schema, _opts, context) { +export default function (schema, _opts, context) { if (!logger) { ruleId = context.rule.name; logger = LoggerFactory.getInstance().getLogger(ruleId); } return validateSubschemas(schema, context.path, arrayOfArrays, true, false); -}; +} function arrayOfArrays(schema, path) { if (isArraySchema(schema) && schema.items) { diff --git a/packages/ruleset/src/functions/array-responses.js b/packages/ruleset/src/functions/array-responses.js index fed64ef66..708371551 100644 --- a/packages/ruleset/src/functions/array-responses.js +++ b/packages/ruleset/src/functions/array-responses.js @@ -3,18 +3,18 @@ * SPDX-License-Identifier: Apache2.0 */ -const { isArraySchema } = require('@ibm-cloud/openapi-ruleset-utilities'); -const { LoggerFactory } = require('../utils'); +import { isArraySchema } from '@ibm-cloud/openapi-ruleset-utilities'; +import { LoggerFactory } from '../utils/index.js'; let ruleId; let logger; -module.exports = function (operation, _opts, context) { +export default function (operation, _opts, context) { if (!logger) { ruleId = context.rule.name; logger = LoggerFactory.getInstance().getLogger(ruleId); } return checkForArrayResponses(operation, context.path); -}; +} /** * Checks for operations that are defined as returning a top-level array in diff --git a/packages/ruleset/src/functions/avoid-multiple-types.js b/packages/ruleset/src/functions/avoid-multiple-types.js index 6e0bb1ca4..cb59e3af2 100644 --- a/packages/ruleset/src/functions/avoid-multiple-types.js +++ b/packages/ruleset/src/functions/avoid-multiple-types.js @@ -3,15 +3,13 @@ * SPDX-License-Identifier: Apache2.0 */ -const { - validateNestedSchemas, -} = require('@ibm-cloud/openapi-ruleset-utilities'); -const { LoggerFactory } = require('../utils'); +import { validateNestedSchemas } from '@ibm-cloud/openapi-ruleset-utilities'; +import { LoggerFactory } from '../utils/index.js'; let ruleId; let logger; -module.exports = function (schema, _opts, context) { +export default function (schema, _opts, context) { if (!logger) { ruleId = context.rule.name; logger = LoggerFactory.getInstance().getLogger(ruleId); @@ -23,7 +21,7 @@ module.exports = function (schema, _opts, context) { true, false ); -}; +} /** * Warns about the presence of multiple types within a schema's "type" field. diff --git a/packages/ruleset/src/functions/binary-schemas.js b/packages/ruleset/src/functions/binary-schemas.js index 7542eea2b..572fe2cfc 100644 --- a/packages/ruleset/src/functions/binary-schemas.js +++ b/packages/ruleset/src/functions/binary-schemas.js @@ -3,27 +3,27 @@ * SPDX-License-Identifier: Apache2.0 */ -const { isBinarySchema } = require('@ibm-cloud/openapi-ruleset-utilities'); +import { isBinarySchema } from '@ibm-cloud/openapi-ruleset-utilities'; -const { +import { isJsonMimeType, isParamSchema, isParamContentSchema, isRequestBodySchema, isResponseSchema, LoggerFactory, -} = require('../utils'); +} from '../utils/index.js'; let ruleId; let logger; -module.exports = function (schema, _opts, context) { +export default function (schema, _opts, context) { if (!logger) { ruleId = context.rule.name; logger = LoggerFactory.getInstance().getLogger(ruleId); } return binarySchemaCheck(schema, context.path); -}; +} /** * This function implements the 'binary-schemas' rule which makes sure that diff --git a/packages/ruleset/src/functions/circular-refs.js b/packages/ruleset/src/functions/circular-refs.js index dbfcfa593..ff27ee461 100644 --- a/packages/ruleset/src/functions/circular-refs.js +++ b/packages/ruleset/src/functions/circular-refs.js @@ -3,18 +3,18 @@ * SPDX-License-Identifier: Apache2.0 */ -const { LoggerFactory } = require('../utils'); +import { LoggerFactory } from '../utils/index.js'; let ruleId; let logger; -module.exports = function ($ref, _opts, context) { +export default function ($ref, _opts, context) { if (!logger) { ruleId = context.rule.name; logger = LoggerFactory.getInstance().getLogger(ruleId); } return checkForCircularRef($ref, context.path); -}; +} // This set is used to make sure that we warn about each distinct $ref value only once. const reportedRefValues = new Set(); diff --git a/packages/ruleset/src/functions/collection-array-property.js b/packages/ruleset/src/functions/collection-array-property.js index fb1a44d22..ef1a20dcd 100644 --- a/packages/ruleset/src/functions/collection-array-property.js +++ b/packages/ruleset/src/functions/collection-array-property.js @@ -3,18 +3,18 @@ * SPDX-License-Identifier: Apache2.0 */ -const { +import { schemaHasConstraint, isArraySchema, isObject, getUnresolvedSpec, -} = require('@ibm-cloud/openapi-ruleset-utilities'); -const { LoggerFactory } = require('../utils'); +} from '@ibm-cloud/openapi-ruleset-utilities'; +import { LoggerFactory } from '../utils/index.js'; let ruleId; let logger; -module.exports = function (schema, _opts, context) { +export default function (schema, _opts, context) { if (!logger) { ruleId = context.rule.name; logger = LoggerFactory.getInstance().getLogger(ruleId); @@ -24,7 +24,7 @@ module.exports = function (schema, _opts, context) { context.path, getUnresolvedSpec(context) ); -}; +} /** * This function checks to make sure that for a collection "list" type operation, diff --git a/packages/ruleset/src/functions/consecutive-path-segments.js b/packages/ruleset/src/functions/consecutive-path-segments.js index f32558f5a..63010892d 100644 --- a/packages/ruleset/src/functions/consecutive-path-segments.js +++ b/packages/ruleset/src/functions/consecutive-path-segments.js @@ -3,18 +3,18 @@ * SPDX-License-Identifier: Apache2.0 */ -const { LoggerFactory } = require('../utils'); +import { LoggerFactory } from '../utils/index.js'; let ruleId; let logger; -module.exports = function (pathItem, options, context) { +export default function (pathItem, options, context) { if (!logger) { ruleId = context.rule.name; logger = LoggerFactory.getInstance().getLogger(ruleId); } return consecutivePathSegments(context.path); -}; +} /** * This function detects the presence of two or more consecutive path segments diff --git a/packages/ruleset/src/functions/delete-body.js b/packages/ruleset/src/functions/delete-body.js index b9c043460..a26bf18c0 100644 --- a/packages/ruleset/src/functions/delete-body.js +++ b/packages/ruleset/src/functions/delete-body.js @@ -3,12 +3,12 @@ * SPDX-License-Identifier: Apache2.0 */ -const { LoggerFactory } = require('../utils'); +import { LoggerFactory } from '../utils/index.js'; let ruleId; let logger; -module.exports = function (operation, _opts, context) { +export default function (operation, _opts, context) { if (!logger) { ruleId = context.rule.name; logger = LoggerFactory.getInstance().getLogger(ruleId); @@ -30,7 +30,7 @@ module.exports = function (operation, _opts, context) { } } return deleteBody(operation, context.path); -}; +} // This rule warns about a delete operation if it has a requestBody. function deleteBody(operation, path) { diff --git a/packages/ruleset/src/functions/disallowed-header-parameter.js b/packages/ruleset/src/functions/disallowed-header-parameter.js index 8ed3ee2b2..c59da61ca 100644 --- a/packages/ruleset/src/functions/disallowed-header-parameter.js +++ b/packages/ruleset/src/functions/disallowed-header-parameter.js @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache2.0 */ -const { LoggerFactory } = require('../utils'); +import { LoggerFactory } from '../utils/index.js'; /** * This custom rule function is used to check for disallowed header parameters, @@ -19,7 +19,7 @@ const { LoggerFactory } = require('../utils'); * @param {*} headerName the name of the header parameter to check for * @returns an array of size one if 'param' is flagged, or an empty array otherwise */ -module.exports = function (param, options, context) { +export default function (param, options, context) { const ruleId = context.rule.name; const logger = LoggerFactory.getInstance().getLogger(ruleId); @@ -35,7 +35,7 @@ module.exports = function (param, options, context) { context.path, options.headerName.trim().toLowerCase() ); -}; +} // Return an error if 'param' is a header parameter named ''. diff --git a/packages/ruleset/src/functions/discriminator-property-exists.js b/packages/ruleset/src/functions/discriminator-property-exists.js index 6e6ce0af6..b1c57f9ae 100644 --- a/packages/ruleset/src/functions/discriminator-property-exists.js +++ b/packages/ruleset/src/functions/discriminator-property-exists.js @@ -19,23 +19,23 @@ // The discriminator property (whose name is specified by the discriminator.propertyName field) // must be defined in the schema. -const { +import { schemaHasProperty, validateSubschemas, -} = require('@ibm-cloud/openapi-ruleset-utilities'); +} from '@ibm-cloud/openapi-ruleset-utilities'; -const { LoggerFactory } = require('../utils'); +import { LoggerFactory } from '../utils/index.js'; let ruleId; let logger; -module.exports = function (schema, _opts, context) { +export default function (schema, _opts, context) { if (!logger) { ruleId = context.rule.name; logger = LoggerFactory.getInstance().getLogger(ruleId); } return validateSubschemas(schema, context.path, validateDiscriminators); -}; +} function validateDiscriminators(schema, path) { const { discriminator } = schema; diff --git a/packages/ruleset/src/functions/duplicate-path-parameter.js b/packages/ruleset/src/functions/duplicate-path-parameter.js index 0b335c56d..9c5b88038 100644 --- a/packages/ruleset/src/functions/duplicate-path-parameter.js +++ b/packages/ruleset/src/functions/duplicate-path-parameter.js @@ -3,19 +3,21 @@ * SPDX-License-Identifier: Apache2.0 */ -const { flatten, isEqual, uniqWith } = require('lodash'); -const { operationMethods, LoggerFactory } = require('../utils'); +import flatten from 'lodash/flatten.js'; +import isEqual from 'lodash/isEqual.js'; +import uniqWith from 'lodash/uniqWith.js'; +import { operationMethods, LoggerFactory } from '../utils/index.js'; let ruleId; let logger; -module.exports = function (pathItem, _opts, context) { +export default function (pathItem, _opts, context) { if (!logger) { ruleId = context.rule.name; logger = LoggerFactory.getInstance().getLogger(ruleId); } return duplicatePathParameter(pathItem, context.path); -}; +} // Regex used to identify references to path params within a path string. const pathParamReferenceRegex = /\{(.*?)\}/g; diff --git a/packages/ruleset/src/functions/enum-casing-convention.js b/packages/ruleset/src/functions/enum-casing-convention.js index 610dd8a3c..4eed228de 100644 --- a/packages/ruleset/src/functions/enum-casing-convention.js +++ b/packages/ruleset/src/functions/enum-casing-convention.js @@ -3,15 +3,15 @@ * SPDX-License-Identifier: Apache2.0 */ -const { validateSubschemas } = require('@ibm-cloud/openapi-ruleset-utilities'); -const { casing } = require('@stoplight/spectral-functions'); -const { LoggerFactory } = require('../utils'); +import { validateSubschemas } from '@ibm-cloud/openapi-ruleset-utilities'; +import { casing } from '@stoplight/spectral-functions'; +import { LoggerFactory } from '../utils/index.js'; let casingConfig; let ruleId; let logger; -module.exports = function (schema, options, context) { +export default function (schema, options, context) { // Save this rule's "functionOptions" value since we need // to pass it on to Spectral's "casing" function. casingConfig = options; @@ -22,7 +22,7 @@ module.exports = function (schema, options, context) { } return validateSubschemas(schema, context.path, checkEnumCaseConvention); -}; +} function checkEnumCaseConvention(schema, path) { // If 'schema' has an enum field with string values, diff --git a/packages/ruleset/src/functions/error-response-schemas.js b/packages/ruleset/src/functions/error-response-schemas.js index d7cadae7b..9872488ea 100644 --- a/packages/ruleset/src/functions/error-response-schemas.js +++ b/packages/ruleset/src/functions/error-response-schemas.js @@ -3,25 +3,25 @@ * SPDX-License-Identifier: Apache2.0 */ -const { +import { isArraySchema, isIntegerSchema, isObject, isStringSchema, -} = require('@ibm-cloud/openapi-ruleset-utilities'); -const { LoggerFactory } = require('../utils'); +} from '@ibm-cloud/openapi-ruleset-utilities'; +import { LoggerFactory } from '../utils/index.js'; let ruleId; let logger; -module.exports = function (schema, _opts, context) { +export default function (schema, _opts, context) { if (!logger) { ruleId = context.rule.name; logger = LoggerFactory.getInstance().getLogger(ruleId); } return checkErrorContainerModelSchema(schema, context.path); -}; +} /** * This function will verify that "schema" complies with the API Handbook's diff --git a/packages/ruleset/src/functions/etag-header-exists.js b/packages/ruleset/src/functions/etag-header-exists.js index 8d6ab7855..8053179a1 100644 --- a/packages/ruleset/src/functions/etag-header-exists.js +++ b/packages/ruleset/src/functions/etag-header-exists.js @@ -3,18 +3,18 @@ * SPDX-License-Identifier: Apache2.0 */ -const { LoggerFactory } = require('../utils'); +import { LoggerFactory } from '../utils/index.js'; let ruleId; let logger; -module.exports = function etagHeaderExists(pathItem, options, context) { +export default function etagHeaderExists(pathItem, options, context) { if (!logger) { ruleId = context.rule.name; logger = LoggerFactory.getInstance().getLogger(ruleId); } return etagHeaderCheck(pathItem, context.path); -}; +} /** * This function checks a path item (object containing operations) to make sure that diff --git a/packages/ruleset/src/functions/index.js b/packages/ruleset/src/functions/index.js index 968bc427a..0e013c304 100644 --- a/packages/ruleset/src/functions/index.js +++ b/packages/ruleset/src/functions/index.js @@ -3,84 +3,83 @@ * SPDX-License-Identifier: Apache2.0 */ -module.exports = { - acceptAndReturnModels: require('./accept-and-return-models'), - allowedKeywords: require('./allowed-keywords'), - anchoredPatterns: require('./anchored-patterns'), - apiSymmetry: require('./api-symmetry'), - arrayAttributes: require('./array-attributes'), - arrayOfArrays: require('./array-of-arrays'), - arrayResponses: require('./array-responses'), - avoidMultipleTypes: require('./avoid-multiple-types'), - binarySchemas: require('./binary-schemas'), - circularRefs: require('./circular-refs'), - collectionArrayProperty: require('./collection-array-property'), - consecutivePathSegments: require('./consecutive-path-segments'), - deleteBody: require('./delete-body'), - disallowedHeaderParameter: require('./disallowed-header-parameter'), - discriminatorPropertyExists: require('./discriminator-property-exists'), - duplicatePathParameter: require('./duplicate-path-parameter'), - enumCasingConvention: require('./enum-casing-convention'), - errorResponseSchemas: require('./error-response-schemas'), - etagHeaderExists: require('./etag-header-exists'), - inlineSchemas: require('./inline-schemas'), - integerAttributes: require('./integer-attributes'), - majorVersionInPath: require('./major-version-in-path'), - mergePatchProperties: require('./merge-patch-properties'), - noAmbiguousPaths: require('./no-ambiguous-paths'), - noNullableProperties: require('./no-nullable-properties'), - noOperationRequestBody: require('./no-operation-requestbody'), - noRefInExample: require('./no-ref-in-example'), - noSuperfluousAllOf: require('./no-superfluous-allof'), - noUnsupportedKeywords: require('./no-unsupported-keywords'), - operationIdCasingConvention: require('./operationid-casing-convention'), - operationIdNamingConvention: require('./operationid-naming-convention'), - operationSummaryExists: require('./operation-summary-exists'), - operationSummaryLength: require('./operation-summary-length'), - optionalRequestBody: require('./optional-request-body').optionalRequestBody, - optionalRequestBodyDeprecated: require('./optional-request-body') - .optionalRequestBodyDeprecated, - paginationStyle: require('./pagination-style'), - parameterCasingConvention: require('./parameter-casing-convention'), - parameterDefault: require('./parameter-default'), - parameterDescriptionExists: require('./parameter-description-exists'), - parameterOrder: require('./parameter-order'), - patchRequestContentType: require('./patch-request-content-type'), - pathParameterNotCRN: require('./path-parameter-not-crn'), - pathSegmentCasingConvention: require('./path-segment-casing-convention'), - patternPropertiesCheck: require('./pattern-properties'), - preconditionHeader: require('./precondition-header'), - preferTokenPagination: require('./prefer-token-pagination'), - propertyAttributes: require('./property-attributes'), - propertyCasingConvention: require('./property-casing-convention'), - propertyConsistentNameAndType: require('./property-consistent-name-and-type'), - propertyDescriptionExists: require('./property-description-exists'), - propertyNameCollision: require('./property-name-collision'), - redirectResponseBody: require('./redirect-response-body'), - refPattern: require('./ref-pattern'), - refSiblingDuplicateDescription: require('./ref-sibling-duplicate-description'), - requestAndResponseContent: require('./request-and-response-content'), - requestBodyName: require('./requestbody-name'), - requiredArrayPropertiesInResponse: require('./required-array-properties-in-response'), - requiredEnumPropertiesInResponse: require('./required-enum-properties-in-response'), - requiredProperty: require('./required-property'), - resourceResponseConsistency: require('./resource-response-consistency'), - responseExampleExists: require('./response-example-exists'), - responseStatusCodes: require('./response-status-codes'), - schemaCasingConvention: require('./schema-casing-convention'), - schemaDescriptionExists: require('./schema-description-exists'), - schemaNamingConvention: require('./schema-naming-convention'), - schemaOrContentProvided: require('./schema-or-content-provided'), - schemaTypeExists: require('./schema-type-exists'), - schemaTypeFormat: require('./schema-type-format'), - securitySchemeAttributes: require('./securityscheme-attributes'), - securitySchemes: require('./securityschemes'), - stringAttributes: require('./string-attributes'), - unevaluatedProperties: require('./unevaluated-properties'), - uniqueParameterRequestPropertyNames: require('./unique-parameter-request-property-names'), - unusedTags: require('./unused-tags'), - useDateBasedFormat: require('./use-date-based-format'), - validatePathSegments: require('./valid-path-segments'), - validSchemaExample: require('./valid-schema-example'), - wellDefinedDictionaries: require('./well-defined-dictionaries'), -}; +export { default as acceptAndReturnModels } from './accept-and-return-models.js'; +export { default as allowedKeywords } from './allowed-keywords.js'; +export { default as anchoredPatterns } from './anchored-patterns.js'; +export { default as apiSymmetry } from './api-symmetry.js'; +export { default as arrayAttributes } from './array-attributes.js'; +export { default as arrayOfArrays } from './array-of-arrays.js'; +export { default as arrayResponses } from './array-responses.js'; +export { default as avoidMultipleTypes } from './avoid-multiple-types.js'; +export { default as binarySchemas } from './binary-schemas.js'; +export { default as circularRefs } from './circular-refs.js'; +export { default as collectionArrayProperty } from './collection-array-property.js'; +export { default as consecutivePathSegments } from './consecutive-path-segments.js'; +export { default as deleteBody } from './delete-body.js'; +export { default as disallowedHeaderParameter } from './disallowed-header-parameter.js'; +export { default as discriminatorPropertyExists } from './discriminator-property-exists.js'; +export { default as duplicatePathParameter } from './duplicate-path-parameter.js'; +export { default as enumCasingConvention } from './enum-casing-convention.js'; +export { default as errorResponseSchemas } from './error-response-schemas.js'; +export { default as etagHeaderExists } from './etag-header-exists.js'; +export { default as inlineSchemas } from './inline-schemas.js'; +export { default as integerAttributes } from './integer-attributes.js'; +export { default as majorVersionInPath } from './major-version-in-path.js'; +export { default as mergePatchProperties } from './merge-patch-properties.js'; +export { default as noAmbiguousPaths } from './no-ambiguous-paths.js'; +export { default as noNullableProperties } from './no-nullable-properties.js'; +export { default as noOperationRequestBody } from './no-operation-requestbody.js'; +export { default as noRefInExample } from './no-ref-in-example.js'; +export { default as noSuperfluousAllOf } from './no-superfluous-allof.js'; +export { default as noUnsupportedKeywords } from './no-unsupported-keywords.js'; +export { default as operationIdCasingConvention } from './operationid-casing-convention.js'; +export { default as operationIdNamingConvention } from './operationid-naming-convention.js'; +export { default as operationSummaryExists } from './operation-summary-exists.js'; +export { default as operationSummaryLength } from './operation-summary-length.js'; +export { + optionalRequestBody, + optionalRequestBodyDeprecated, +} from './optional-request-body.js'; +export { default as paginationStyle } from './pagination-style.js'; +export { default as parameterCasingConvention } from './parameter-casing-convention.js'; +export { default as parameterDefault } from './parameter-default.js'; +export { default as parameterDescriptionExists } from './parameter-description-exists.js'; +export { default as parameterOrder } from './parameter-order.js'; +export { default as patchRequestContentType } from './patch-request-content-type.js'; +export { default as pathParameterNotCRN } from './path-parameter-not-crn.js'; +export { default as pathSegmentCasingConvention } from './path-segment-casing-convention.js'; +export { default as patternPropertiesCheck } from './pattern-properties.js'; +export { default as preconditionHeader } from './precondition-header.js'; +export { default as preferTokenPagination } from './prefer-token-pagination.js'; +export { default as propertyAttributes } from './property-attributes.js'; +export { default as propertyCasingConvention } from './property-casing-convention.js'; +export { default as propertyConsistentNameAndType } from './property-consistent-name-and-type.js'; +export { default as propertyDescriptionExists } from './property-description-exists.js'; +export { default as propertyNameCollision } from './property-name-collision.js'; +export { default as redirectResponseBody } from './redirect-response-body.js'; +export { default as refPattern } from './ref-pattern.js'; +export { default as refSiblingDuplicateDescription } from './ref-sibling-duplicate-description.js'; +export { default as requestAndResponseContent } from './request-and-response-content.js'; +export { default as requestBodyName } from './requestbody-name.js'; +export { default as requiredArrayPropertiesInResponse } from './required-array-properties-in-response.js'; +export { default as requiredEnumPropertiesInResponse } from './required-enum-properties-in-response.js'; +export { default as requiredProperty } from './required-property.js'; +export { default as resourceResponseConsistency } from './resource-response-consistency.js'; +export { default as responseExampleExists } from './response-example-exists.js'; +export { default as responseStatusCodes } from './response-status-codes.js'; +export { default as schemaCasingConvention } from './schema-casing-convention.js'; +export { default as schemaDescriptionExists } from './schema-description-exists.js'; +export { default as schemaNamingConvention } from './schema-naming-convention.js'; +export { default as schemaOrContentProvided } from './schema-or-content-provided.js'; +export { default as schemaTypeExists } from './schema-type-exists.js'; +export { default as schemaTypeFormat } from './schema-type-format.js'; +export { default as securitySchemeAttributes } from './securityscheme-attributes.js'; +export { default as securitySchemes } from './securityschemes.js'; +export { default as stringAttributes } from './string-attributes.js'; +export { default as unevaluatedProperties } from './unevaluated-properties.js'; +export { default as uniqueParameterRequestPropertyNames } from './unique-parameter-request-property-names.js'; +export { default as unusedTags } from './unused-tags.js'; +export { default as useDateBasedFormat } from './use-date-based-format.js'; +export { default as validatePathSegments } from './valid-path-segments.js'; +export { default as validSchemaExample } from './valid-schema-example.js'; +export { default as wellDefinedDictionaries } from './well-defined-dictionaries.js'; diff --git a/packages/ruleset/src/functions/inline-schemas.js b/packages/ruleset/src/functions/inline-schemas.js index 6a55ff257..1f61bace7 100644 --- a/packages/ruleset/src/functions/inline-schemas.js +++ b/packages/ruleset/src/functions/inline-schemas.js @@ -3,17 +3,17 @@ * SPDX-License-Identifier: Apache2.0 */ -const { +import { isArraySchema, isPrimitiveSchema, validateSubschemas, -} = require('@ibm-cloud/openapi-ruleset-utilities'); +} from '@ibm-cloud/openapi-ruleset-utilities'; -const { +import { isJsonMimeType, isEmptyObjectSchema, isRefSiblingSchema, -} = require('../utils'); +} from '../utils/index.js'; /** * Checks to make sure that nested object schemas are defined using a $ref rather than @@ -33,9 +33,9 @@ const { * @param {*} path the array of path segments indicating the location of "schema" within the API definition * @returns an array containing the violations found or [] if no violations */ -module.exports = function (schema, options, { path }) { +export default function (schema, options, { path }) { return validateSubschemas(schema, path, checkForInlineObjectSchemas); -}; +} /** * Checks the specified schema to determine if it's an inline object schema. diff --git a/packages/ruleset/src/functions/integer-attributes.js b/packages/ruleset/src/functions/integer-attributes.js index 2f53e0a10..de20e2801 100644 --- a/packages/ruleset/src/functions/integer-attributes.js +++ b/packages/ruleset/src/functions/integer-attributes.js @@ -3,16 +3,16 @@ * SPDX-License-Identifier: Apache2.0 */ -const { +import { isIntegerSchema, validateNestedSchemas, -} = require('@ibm-cloud/openapi-ruleset-utilities'); +} from '@ibm-cloud/openapi-ruleset-utilities'; -const { getCompositeSchemaAttribute, LoggerFactory } = require('../utils'); +import { getCompositeSchemaAttribute, LoggerFactory } from '../utils/index.js'; let ruleId; let logger; -module.exports = function (schema, _opts, context) { +export default function (schema, _opts, context) { if (!logger) { ruleId = context.rule.name; logger = LoggerFactory.getInstance().getLogger(ruleId); @@ -24,7 +24,7 @@ module.exports = function (schema, _opts, context) { true, false ); -}; +} // These are the valid format values that can be used with integer schemas. const intFormats = ['int32', 'int64']; diff --git a/packages/ruleset/src/functions/major-version-in-path.js b/packages/ruleset/src/functions/major-version-in-path.js index 8c365d6e1..3d742394d 100644 --- a/packages/ruleset/src/functions/major-version-in-path.js +++ b/packages/ruleset/src/functions/major-version-in-path.js @@ -3,18 +3,18 @@ * SPDX-License-Identifier: Apache2.0 */ -const { LoggerFactory } = require('../utils'); +import { LoggerFactory } from '../utils/index.js'; let ruleId; let logger; -module.exports = function (apiDef, _opts, context) { +export default function (apiDef, _opts, context) { if (!logger) { ruleId = context.rule.name; logger = LoggerFactory.getInstance().getLogger(ruleId); } return checkMajorVersion(apiDef); -}; +} // Check: // - Each url in the servers object has a path segment of the form v followed by a number, diff --git a/packages/ruleset/src/functions/merge-patch-properties.js b/packages/ruleset/src/functions/merge-patch-properties.js index 500308c7b..dcb29322b 100644 --- a/packages/ruleset/src/functions/merge-patch-properties.js +++ b/packages/ruleset/src/functions/merge-patch-properties.js @@ -3,19 +3,19 @@ * SPDX-License-Identifier: Apache2.0 */ -const { schemaHasConstraint } = require('@ibm-cloud/openapi-ruleset-utilities'); -const { LoggerFactory } = require('../utils'); +import { schemaHasConstraint } from '@ibm-cloud/openapi-ruleset-utilities'; +import { LoggerFactory } from '../utils/index.js'; let ruleId; let logger; -module.exports = function (schema, _opts, context) { +export default function (schema, _opts, context) { if (!logger) { ruleId = context.rule.name; logger = LoggerFactory.getInstance().getLogger(ruleId); } return mergePatchOptionalProperties(schema, context.path); -}; +} /** * This function is invoked for each merge-patch operation's requestBody schema and diff --git a/packages/ruleset/src/functions/no-ambiguous-paths.js b/packages/ruleset/src/functions/no-ambiguous-paths.js index 1380c1d22..9cc368217 100644 --- a/packages/ruleset/src/functions/no-ambiguous-paths.js +++ b/packages/ruleset/src/functions/no-ambiguous-paths.js @@ -3,19 +3,19 @@ * SPDX-License-Identifier: Apache2.0 */ -const { isObject } = require('@ibm-cloud/openapi-ruleset-utilities'); -const { LoggerFactory } = require('../utils'); +import { isObject } from '@ibm-cloud/openapi-ruleset-utilities'; +import { LoggerFactory } from '../utils/index.js'; let ruleId; let logger; -module.exports = function (paths, _options, context) { +export default function (paths, _options, context) { if (!logger) { ruleId = context.rule.name; logger = LoggerFactory.getInstance().getLogger(ruleId); } return checkAmbiguousPaths(paths); -}; +} /** * This function will check for "ambiguous" paths within the API definition. diff --git a/packages/ruleset/src/functions/no-nullable-properties.js b/packages/ruleset/src/functions/no-nullable-properties.js index ed5955240..6fdba7d9b 100644 --- a/packages/ruleset/src/functions/no-nullable-properties.js +++ b/packages/ruleset/src/functions/no-nullable-properties.js @@ -3,26 +3,26 @@ * SPDX-License-Identifier: Apache2.0 */ -const { +import { schemaHasConstraint, validateSubschemas, -} = require('@ibm-cloud/openapi-ruleset-utilities'); -const { +} from '@ibm-cloud/openapi-ruleset-utilities'; +import { isMergePatchMimeType, LoggerFactory, operationMethods, -} = require('../utils'); +} from '../utils/index.js'; let ruleId; let logger; -module.exports = function (schema, _options, context) { +export default function (schema, _options, context) { if (!logger) { ruleId = context.rule.name; logger = LoggerFactory.getInstance().getLogger(ruleId); } return validateSubschemas(schema, context.path, noNullableProperties); -}; +} /** * This function will check to make sure that nullable properties exist only diff --git a/packages/ruleset/src/functions/no-operation-requestbody.js b/packages/ruleset/src/functions/no-operation-requestbody.js index be2a9ec85..af436c2d5 100644 --- a/packages/ruleset/src/functions/no-operation-requestbody.js +++ b/packages/ruleset/src/functions/no-operation-requestbody.js @@ -3,18 +3,18 @@ * SPDX-License-Identifier: Apache2.0 */ -const { LoggerFactory } = require('../utils'); +import { LoggerFactory } from '../utils/index.js'; let ruleId; let logger; -module.exports = function (operation, options, context) { +export default function (operation, options, context) { if (!logger) { ruleId = context.rule.name; logger = LoggerFactory.getInstance().getLogger(ruleId); } return noOperationRequestBody(operation, context.path, options); -}; +} /** * This function will check to make sure that certain operations do not have a requestBody. diff --git a/packages/ruleset/src/functions/no-ref-in-example.js b/packages/ruleset/src/functions/no-ref-in-example.js index ef85a94cc..06e6dc725 100644 --- a/packages/ruleset/src/functions/no-ref-in-example.js +++ b/packages/ruleset/src/functions/no-ref-in-example.js @@ -3,19 +3,19 @@ * SPDX-License-Identifier: Apache2.0 */ -const { isObject } = require('@ibm-cloud/openapi-ruleset-utilities'); -const { LoggerFactory } = require('../utils'); +import { isObject } from '@ibm-cloud/openapi-ruleset-utilities'; +import { LoggerFactory } from '../utils/index.js'; let ruleId; let logger; -module.exports = function (exampleObj, options, context) { +export default function (exampleObj, options, context) { if (!logger) { ruleId = context.rule.name; logger = LoggerFactory.getInstance().getLogger(ruleId); } return noRefInExample(exampleObj, context.path); -}; +} /** * This function will perform a recursive check to make sure that the specified diff --git a/packages/ruleset/src/functions/no-superfluous-allof.js b/packages/ruleset/src/functions/no-superfluous-allof.js index 1960b7b8e..f5728f24d 100644 --- a/packages/ruleset/src/functions/no-superfluous-allof.js +++ b/packages/ruleset/src/functions/no-superfluous-allof.js @@ -3,20 +3,20 @@ * SPDX-License-Identifier: Apache2.0 */ -const { validateSubschemas } = require('@ibm-cloud/openapi-ruleset-utilities'); -const { LoggerFactory } = require('../utils'); +import { validateSubschemas } from '@ibm-cloud/openapi-ruleset-utilities'; +import { LoggerFactory } from '../utils/index.js'; let ruleId; let logger; -module.exports = function (schema, _opts, context) { +export default function (schema, _opts, context) { if (!logger) { ruleId = context.rule.name; logger = LoggerFactory.getInstance().getLogger(ruleId); } return validateSubschemas(schema, context.path, checkForSuperfluousAllOf); -}; +} function checkForSuperfluousAllOf(schema, path) { // We're interested only in schemas that contain ONLY a single-element allOf list. diff --git a/packages/ruleset/src/functions/no-unsupported-keywords.js b/packages/ruleset/src/functions/no-unsupported-keywords.js index f357be307..c6f55b6b7 100644 --- a/packages/ruleset/src/functions/no-unsupported-keywords.js +++ b/packages/ruleset/src/functions/no-unsupported-keywords.js @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache2.0 */ -const { LoggerFactory } = require('../utils'); +import { LoggerFactory } from '../utils/index.js'; let ruleId; let logger; @@ -11,13 +11,13 @@ let logger; const ErrorMsg = 'An unsupported OpenAPI 3.1 keyword was found in the OpenAPI document:'; -module.exports = function (apidef, _opts, context) { +export default function (apidef, _opts, context) { if (!logger) { ruleId = context.rule.name; logger = LoggerFactory.getInstance().getLogger(ruleId); } return noUnsupportedKeywords(apidef); -}; +} /** * If 'unevaluatedProperties' is specified within "schema" then it must be set to false. diff --git a/packages/ruleset/src/functions/operation-summary-exists.js b/packages/ruleset/src/functions/operation-summary-exists.js index 744691986..c8cea6702 100644 --- a/packages/ruleset/src/functions/operation-summary-exists.js +++ b/packages/ruleset/src/functions/operation-summary-exists.js @@ -3,18 +3,18 @@ * SPDX-License-Identifier: Apache2.0 */ -const { LoggerFactory } = require('../utils'); +import { LoggerFactory } from '../utils/index.js'; let ruleId; let logger; -module.exports = function (operation, _opts, context) { +export default function (operation, _opts, context) { if (!logger) { ruleId = context.rule.name; logger = LoggerFactory.getInstance().getLogger(ruleId); } return operationSummary(operation, context.path); -}; +} function operationSummary(operation, path) { logger.debug( diff --git a/packages/ruleset/src/functions/operation-summary-length.js b/packages/ruleset/src/functions/operation-summary-length.js index a499c3dd3..0af6dfaa0 100644 --- a/packages/ruleset/src/functions/operation-summary-length.js +++ b/packages/ruleset/src/functions/operation-summary-length.js @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache2.0 */ -const { LoggerFactory } = require('../utils'); +import { LoggerFactory } from '../utils/index.js'; let ruleId; let logger; @@ -15,13 +15,13 @@ let logger; * - operation-summary: all operations define a non-empty summary */ -module.exports = function (summary, _opts, context) { +export default function (summary, _opts, context) { if (!logger) { ruleId = context.rule.name; logger = LoggerFactory.getInstance().getLogger(ruleId); } return checkSummaryLength(summary, context.path); -}; +} function checkSummaryLength(summary, path) { logger.debug( diff --git a/packages/ruleset/src/functions/operationid-casing-convention.js b/packages/ruleset/src/functions/operationid-casing-convention.js index 074fde8da..589c9aedb 100644 --- a/packages/ruleset/src/functions/operationid-casing-convention.js +++ b/packages/ruleset/src/functions/operationid-casing-convention.js @@ -3,14 +3,14 @@ * SPDX-License-Identifier: Apache2.0 */ -const { casing } = require('@stoplight/spectral-functions'); -const { LoggerFactory } = require('../utils'); +import { casing } from '@stoplight/spectral-functions'; +import { LoggerFactory } from '../utils/index.js'; let casingConfig; let ruleId; let logger; -module.exports = function (operation, options, context) { +export default function (operation, options, context) { // Save this rule's "functionOptions" value since we need // to pass it on to Spectral's "casing" function. casingConfig = options; @@ -21,7 +21,7 @@ module.exports = function (operation, options, context) { } return operationIdCaseConvention(operation, context.path); -}; +} function operationIdCaseConvention(operation, path) { // Bypass the check if the operationId value is missing (the existence diff --git a/packages/ruleset/src/functions/operationid-naming-convention.js b/packages/ruleset/src/functions/operationid-naming-convention.js index faa4ad59a..b69252e82 100644 --- a/packages/ruleset/src/functions/operationid-naming-convention.js +++ b/packages/ruleset/src/functions/operationid-naming-convention.js @@ -3,13 +3,16 @@ * SPDX-License-Identifier: Apache2.0 */ -const { each, merge, pickBy, reduce } = require('lodash'); -const { operationMethods } = require('../utils'); -const inflected = require('inflected'); - -module.exports = function (rootDocument, options) { +import each from 'lodash/each.js'; +import merge from 'lodash/merge.js'; +import pickBy from 'lodash/pickBy.js'; +import reduce from 'lodash/reduce.js'; +import { operationMethods } from '../utils/index.js'; +import { singularize } from 'inflected'; + +export default function (rootDocument, options) { return operationIdNamingConvention(rootDocument, options.strict); -}; +} function operationIdNamingConvention(resolvedSpec, fullNamingCheck) { const operations = reduce( @@ -227,7 +230,7 @@ function operationIdPassedConventionCheck( // Singularize the words in the path according to the naming conventions. for (let i = 0; i < convertedPath.length; i++) { if (i !== convertedPath.length - 1 || !isPlural || pathEndsWithParam) - convertedPath[i] = inflected.singularize(convertedPath[i]); + convertedPath[i] = singularize(convertedPath[i]); } const correctIds = []; diff --git a/packages/ruleset/src/functions/optional-request-body.js b/packages/ruleset/src/functions/optional-request-body.js index e0993aff2..40bacf804 100644 --- a/packages/ruleset/src/functions/optional-request-body.js +++ b/packages/ruleset/src/functions/optional-request-body.js @@ -3,8 +3,7 @@ * SPDX-License-Identifier: Apache2.0 */ -const { getCompositeSchemaAttribute } = require('../utils'); -const { LoggerFactory } = require('../utils'); +import { getCompositeSchemaAttribute, LoggerFactory } from '../utils/index.js'; const oldRuleId = 'ibm-no-optional-properties-in-required-body'; const newRuleId = 'ibm-no-required-properties-in-optional-body'; @@ -69,7 +68,4 @@ function optionalRequestBodyDeprecated(schema, _unused_options, context) { return optionalRequestBody(schema, _unused_options, context); } -module.exports = { - optionalRequestBody, - optionalRequestBodyDeprecated, -}; +export { optionalRequestBody, optionalRequestBodyDeprecated }; diff --git a/packages/ruleset/src/functions/pagination-style.js b/packages/ruleset/src/functions/pagination-style.js index 461f72d60..afaeeb435 100644 --- a/packages/ruleset/src/functions/pagination-style.js +++ b/packages/ruleset/src/functions/pagination-style.js @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache2.0 */ -const { +import { mergeAllOfSchemaProperties, LoggerFactory, getOffsetParamIndex, @@ -11,22 +11,22 @@ const { getSuccessCode, getResponseSchema, getPaginatedOperationFromPath, -} = require('../utils'); -const { +} from '../utils/index.js'; +import { isIntegerSchema, isStringSchema, -} = require('@ibm-cloud/openapi-ruleset-utilities'); +} from '@ibm-cloud/openapi-ruleset-utilities'; let ruleId; let logger; -module.exports = function (pathObj, _opts, context) { +export default function (pathObj, _opts, context) { if (!logger) { ruleId = context.rule.name; logger = LoggerFactory.getInstance().getLogger(ruleId); } return paginationStyle(pathObj, context.path); -}; +} /** * This function implements the pagination-style rule which performs numerous checks diff --git a/packages/ruleset/src/functions/parameter-casing-convention.js b/packages/ruleset/src/functions/parameter-casing-convention.js index abb4390f9..2609f568c 100644 --- a/packages/ruleset/src/functions/parameter-casing-convention.js +++ b/packages/ruleset/src/functions/parameter-casing-convention.js @@ -3,8 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { casing, pattern } = require('@stoplight/spectral-functions'); -const { isDeprecated, LoggerFactory } = require('../utils'); +import { casing, pattern } from '@stoplight/spectral-functions'; +import { isDeprecated, LoggerFactory } from '../utils/index.js'; // Error message prefix for each parameter type. const errorMsgPrefix = { @@ -19,13 +19,13 @@ const errorMsgNoIn = "Parameters must have a valid 'in' value"; let ruleId; let logger; -module.exports = function (param, options, context) { +export default function (param, options, context) { if (!logger) { ruleId = context.rule.name; logger = LoggerFactory.getInstance().getLogger(ruleId); } return parameterCasingConvention(param, context.path, options); -}; +} /** * This function will check 'param' to make sure that its name diff --git a/packages/ruleset/src/functions/parameter-default.js b/packages/ruleset/src/functions/parameter-default.js index 151bf5985..647124a5e 100644 --- a/packages/ruleset/src/functions/parameter-default.js +++ b/packages/ruleset/src/functions/parameter-default.js @@ -3,18 +3,18 @@ * SPDX-License-Identifier: Apache2.0 */ -const { LoggerFactory } = require('../utils'); +import { LoggerFactory } from '../utils/index.js'; let ruleId; let logger; -module.exports = function (param, _opts, context) { +export default function (param, _opts, context) { if (!logger) { ruleId = context.rule.name; logger = LoggerFactory.getInstance().getLogger(ruleId); } return parameterDefault(param, context.path); -}; +} const errorMsg = 'Required parameters should not define a default value'; diff --git a/packages/ruleset/src/functions/parameter-description-exists.js b/packages/ruleset/src/functions/parameter-description-exists.js index 9b7b35626..cc22f961f 100644 --- a/packages/ruleset/src/functions/parameter-description-exists.js +++ b/packages/ruleset/src/functions/parameter-description-exists.js @@ -3,18 +3,18 @@ * SPDX-License-Identifier: Apache2.0 */ -const { LoggerFactory } = require('../utils'); +import { LoggerFactory } from '../utils/index.js'; let ruleId; let logger; -module.exports = function (param, _opts, context) { +export default function (param, _opts, context) { if (!logger) { ruleId = context.rule.name; logger = LoggerFactory.getInstance().getLogger(ruleId); } return parameterDescription(param, context.path); -}; +} function parameterDescription(param, path) { logger.debug( diff --git a/packages/ruleset/src/functions/parameter-order.js b/packages/ruleset/src/functions/parameter-order.js index c246c9747..adb0c4066 100644 --- a/packages/ruleset/src/functions/parameter-order.js +++ b/packages/ruleset/src/functions/parameter-order.js @@ -3,18 +3,18 @@ * SPDX-License-Identifier: Apache2.0 */ -const { LoggerFactory } = require('../utils'); +import { LoggerFactory } from '../utils/index.js'; let ruleId; let logger; -module.exports = function (operation, _opts, context) { +export default function (operation, _opts, context) { if (!logger) { ruleId = context.rule.name; logger = LoggerFactory.getInstance().getLogger(ruleId); } return parameterOrder(operation, context.path); -}; +} function parameterOrder(op, path) { if (op.parameters && op.parameters.length > 0) { diff --git a/packages/ruleset/src/functions/patch-request-content-type.js b/packages/ruleset/src/functions/patch-request-content-type.js index 1b3c8bafd..b67156e77 100644 --- a/packages/ruleset/src/functions/patch-request-content-type.js +++ b/packages/ruleset/src/functions/patch-request-content-type.js @@ -3,22 +3,22 @@ * SPDX-License-Identifier: Apache2.0 */ -const { +import { isJsonPatchMimeType, isMergePatchMimeType, LoggerFactory, -} = require('../utils'); +} from '../utils/index.js'; let ruleId; let logger; -module.exports = function (operation, _opts, context) { +export default function (operation, _opts, context) { if (!logger) { ruleId = context.rule.name; logger = LoggerFactory.getInstance().getLogger(ruleId); } return patchRequestContentType(operation, context.path); -}; +} /** * This function checks to make sure that each PATCH operation supports only the request diff --git a/packages/ruleset/src/functions/path-parameter-not-crn.js b/packages/ruleset/src/functions/path-parameter-not-crn.js index 43e7e44a2..5a0bf336d 100644 --- a/packages/ruleset/src/functions/path-parameter-not-crn.js +++ b/packages/ruleset/src/functions/path-parameter-not-crn.js @@ -3,22 +3,22 @@ * SPDX-License-Identifier: Apache2.0 */ -const { +import { isStringSchema, schemaHasConstraint, -} = require('@ibm-cloud/openapi-ruleset-utilities'); -const { LoggerFactory } = require('../utils'); +} from '@ibm-cloud/openapi-ruleset-utilities'; +import { LoggerFactory } from '../utils/index.js'; let ruleId; let logger; -module.exports = function (pathParam, _opts, context) { +export default function (pathParam, _opts, context) { if (!logger) { ruleId = context.rule.name; logger = LoggerFactory.getInstance().getLogger(ruleId); } return pathParameterNotCRN(pathParam, context.path); -}; +} /** * This function will check "pathParam" (assumed to be a path parameter object) diff --git a/packages/ruleset/src/functions/path-segment-casing-convention.js b/packages/ruleset/src/functions/path-segment-casing-convention.js index 29f6e1065..86bfa8eeb 100644 --- a/packages/ruleset/src/functions/path-segment-casing-convention.js +++ b/packages/ruleset/src/functions/path-segment-casing-convention.js @@ -3,14 +3,14 @@ * SPDX-License-Identifier: Apache2.0 */ -const { casing } = require('@stoplight/spectral-functions'); -const { LoggerFactory } = require('../utils'); +import { casing } from '@stoplight/spectral-functions'; +import { LoggerFactory } from '../utils/index.js'; let casingConfig; let ruleId; let logger; -module.exports = function (pathItem, options, context) { +export default function (pathItem, options, context) { // Save this rule's "functionOptions" value since we need // to pass it on to Spectral's "casing" function. casingConfig = options; @@ -21,7 +21,7 @@ module.exports = function (pathItem, options, context) { } return pathSegmentCasingConvention(context.path); -}; +} function pathSegmentCasingConvention(path) { logger.debug( diff --git a/packages/ruleset/src/functions/pattern-properties.js b/packages/ruleset/src/functions/pattern-properties.js index efb3c6bde..d9c9630c5 100644 --- a/packages/ruleset/src/functions/pattern-properties.js +++ b/packages/ruleset/src/functions/pattern-properties.js @@ -3,16 +3,16 @@ * SPDX-License-Identifier: Apache2.0 */ -const { +import { isObject, validateSubschemas, -} = require('@ibm-cloud/openapi-ruleset-utilities'); -const { LoggerFactory } = require('../utils'); +} from '@ibm-cloud/openapi-ruleset-utilities'; +import { LoggerFactory } from '../utils/index.js'; let ruleId; let logger; -module.exports = function (schema, _opts, context) { +export default function (schema, _opts, context) { if (!logger) { ruleId = context.rule.name; logger = LoggerFactory.getInstance().getLogger(ruleId); @@ -24,7 +24,7 @@ module.exports = function (schema, _opts, context) { true, false ); -}; +} /** * Enforces certain restrictions on the use of "patternProperties" within a schema: diff --git a/packages/ruleset/src/functions/precondition-header.js b/packages/ruleset/src/functions/precondition-header.js index 960d1d0ef..32c0f320f 100644 --- a/packages/ruleset/src/functions/precondition-header.js +++ b/packages/ruleset/src/functions/precondition-header.js @@ -3,18 +3,18 @@ * SPDX-License-Identifier: Apache2.0 */ -const { LoggerFactory } = require('../utils'); +import { LoggerFactory } from '../utils/index.js'; let ruleId; let logger; -module.exports = function (operation, _opts, context) { +export default function (operation, _opts, context) { if (!logger) { ruleId = context.rule.name; logger = LoggerFactory.getInstance().getLogger(ruleId); } return preconditionHeader(operation, context.path); -}; +} /** * This function checks if an operation contains a 412 response it must support at least one conditional header. diff --git a/packages/ruleset/src/functions/prefer-token-pagination.js b/packages/ruleset/src/functions/prefer-token-pagination.js index 8f1fb1323..d9d3025ba 100644 --- a/packages/ruleset/src/functions/prefer-token-pagination.js +++ b/packages/ruleset/src/functions/prefer-token-pagination.js @@ -3,22 +3,22 @@ * SPDX-License-Identifier: Apache2.0 */ -const { +import { getPaginatedOperationFromPath, getOffsetParamIndex, LoggerFactory, -} = require('../utils'); +} from '../utils/index.js'; let ruleId; let logger; -module.exports = function (pathObj, _opts, context) { +export default function (pathObj, _opts, context) { if (!logger) { ruleId = context.rule.name; logger = LoggerFactory.getInstance().getLogger(ruleId); } return checkTypeOfPagination(pathObj, context.path); -}; +} /** * This function implements the prefer-token-pagination rule which checks diff --git a/packages/ruleset/src/functions/property-attributes.js b/packages/ruleset/src/functions/property-attributes.js index 21a4e4fbc..0808ff114 100644 --- a/packages/ruleset/src/functions/property-attributes.js +++ b/packages/ruleset/src/functions/property-attributes.js @@ -3,24 +3,24 @@ * SPDX-License-Identifier: Apache2.0 */ -const { +import { validateSubschemas, isBooleanSchema, isNumberSchema, isIntegerSchema, isObjectSchema, -} = require('@ibm-cloud/openapi-ruleset-utilities'); -const { LoggerFactory } = require('../utils'); +} from '@ibm-cloud/openapi-ruleset-utilities'; +import { LoggerFactory } from '../utils/index.js'; let ruleId; let logger; -module.exports = function (schema, _opts, context) { +export default function (schema, _opts, context) { if (!logger) { ruleId = context.rule.name; logger = LoggerFactory.getInstance().getLogger(ruleId); } return validateSubschemas(schema, context.path, checkPropertyAttributes); -}; +} /** * This rule performs the following checks on each schema (and schema property) diff --git a/packages/ruleset/src/functions/property-casing-convention.js b/packages/ruleset/src/functions/property-casing-convention.js index 6d1cb89f9..8a02095b0 100644 --- a/packages/ruleset/src/functions/property-casing-convention.js +++ b/packages/ruleset/src/functions/property-casing-convention.js @@ -3,15 +3,15 @@ * SPDX-License-Identifier: Apache2.0 */ -const { casing } = require('@stoplight/spectral-functions'); -const { validateSubschemas } = require('@ibm-cloud/openapi-ruleset-utilities'); -const { LoggerFactory } = require('../utils'); +import { casing } from '@stoplight/spectral-functions'; +import { validateSubschemas } from '@ibm-cloud/openapi-ruleset-utilities'; +import { LoggerFactory } from '../utils/index.js'; let casingConfig; let ruleId; let logger; -module.exports = function (schema, options, context) { +export default function (schema, options, context) { // Save this rule's "functionOptions" value since we need // to pass it on to Spectral's "casing" function. casingConfig = options; @@ -26,7 +26,7 @@ module.exports = function (schema, options, context) { context.path, checkPropertyCasingConvention ); -}; +} function checkPropertyCasingConvention(schema, path) { if (schema.properties) { diff --git a/packages/ruleset/src/functions/property-consistent-name-and-type.js b/packages/ruleset/src/functions/property-consistent-name-and-type.js index 6f6c8f0e4..358512822 100644 --- a/packages/ruleset/src/functions/property-consistent-name-and-type.js +++ b/packages/ruleset/src/functions/property-consistent-name-and-type.js @@ -3,12 +3,12 @@ * SPDX-License-Identifier: Apache2.0 */ -const { +import { getSchemaType, validateSubschemas, SchemaType, -} = require('@ibm-cloud/openapi-ruleset-utilities'); -const { LoggerFactory } = require('../utils'); +} from '@ibm-cloud/openapi-ruleset-utilities'; +import { LoggerFactory } from '../utils/index.js'; // We need to look at properties across the entire API definition. // This will act as a global variable to hold all of the properties @@ -19,7 +19,7 @@ let excludedProperties; let ruleId; let logger; -module.exports = function (schema, options, context) { +export default function (schema, options, context) { excludedProperties = options.excludedProperties; if (!logger) { @@ -31,7 +31,7 @@ module.exports = function (schema, options, context) { context.path, propertyConsistentNameAndType ); -}; +} function propertyConsistentNameAndType(schema, path) { if (schema.properties) { diff --git a/packages/ruleset/src/functions/property-description-exists.js b/packages/ruleset/src/functions/property-description-exists.js index 8cf1ae3d7..146575e56 100644 --- a/packages/ruleset/src/functions/property-description-exists.js +++ b/packages/ruleset/src/functions/property-description-exists.js @@ -3,23 +3,23 @@ * SPDX-License-Identifier: Apache2.0 */ -const { +import { schemaHasConstraint, validateSubschemas, -} = require('@ibm-cloud/openapi-ruleset-utilities'); -const { LoggerFactory, isSchemaProperty } = require('../utils'); +} from '@ibm-cloud/openapi-ruleset-utilities'; +import { LoggerFactory, isSchemaProperty } from '../utils/index.js'; let ruleId; let logger; -module.exports = function (schema, _opts, context) { +export default function (schema, _opts, context) { if (!logger) { ruleId = context.rule.name; logger = LoggerFactory.getInstance().getLogger(ruleId); } return validateSubschemas(schema, context.path, propertyDescriptionExists); -}; +} function propertyDescriptionExists(schema, path) { // If "schema" is a schema property, then check for a description. diff --git a/packages/ruleset/src/functions/property-name-collision.js b/packages/ruleset/src/functions/property-name-collision.js index b93484240..86a668b60 100644 --- a/packages/ruleset/src/functions/property-name-collision.js +++ b/packages/ruleset/src/functions/property-name-collision.js @@ -3,19 +3,19 @@ * SPDX-License-Identifier: Apache2.0 */ -const { validateSubschemas } = require('@ibm-cloud/openapi-ruleset-utilities'); -const { LoggerFactory } = require('../utils'); +import { validateSubschemas } from '@ibm-cloud/openapi-ruleset-utilities'; +import { LoggerFactory } from '../utils/index.js'; let ruleId; let logger; -module.exports = function (schema, _opts, context) { +export default function (schema, _opts, context) { if (!logger) { ruleId = context.rule.name; logger = LoggerFactory.getInstance().getLogger(ruleId); } return validateSubschemas(schema, context.path, propertyNameCollision); -}; +} const errorMsg = 'Avoid duplicate property names within a schema, even if different case conventions are used'; diff --git a/packages/ruleset/src/functions/redirect-response-body.js b/packages/ruleset/src/functions/redirect-response-body.js index 4ba4eeabf..f14e060a9 100644 --- a/packages/ruleset/src/functions/redirect-response-body.js +++ b/packages/ruleset/src/functions/redirect-response-body.js @@ -3,13 +3,13 @@ * SPDX-License-Identifier: Apache2.0 */ -const { getResolvedSpec } = require('@ibm-cloud/openapi-ruleset-utilities'); -const { LoggerFactory, getResponseCodes } = require('../utils'); +import { getResolvedSpec } from '@ibm-cloud/openapi-ruleset-utilities'; +import { LoggerFactory, getResponseCodes } from '../utils/index.js'; let ruleId; let logger; -module.exports = function (operation, _opts, context) { +export default function (operation, _opts, context) { if (!logger) { ruleId = context.rule.name; logger = LoggerFactory.getInstance().getLogger(ruleId); @@ -20,7 +20,7 @@ module.exports = function (operation, _opts, context) { context.path, getResolvedSpec(context) ); -}; +} /** * This function performs a few checks on each operation's response field: diff --git a/packages/ruleset/src/functions/ref-pattern.js b/packages/ruleset/src/functions/ref-pattern.js index d25a162cb..a5e76d1cd 100644 --- a/packages/ruleset/src/functions/ref-pattern.js +++ b/packages/ruleset/src/functions/ref-pattern.js @@ -3,19 +3,19 @@ * SPDX-License-Identifier: Apache2.0 */ -const { LoggerFactory } = require('../utils'); +import { LoggerFactory } from '../utils/index.js'; let ruleId; let logger; -module.exports = function ($ref, _opts, context) { +export default function ($ref, _opts, context) { if (!logger) { ruleId = context.rule.name; logger = LoggerFactory.getInstance().getLogger(ruleId); } return checkRefPattern($ref, context.path); -}; +} // This object is used to categorize a $ref value, based on its path (location within the API document). // Each entry corresponds to a particular type of object to which we support references, diff --git a/packages/ruleset/src/functions/ref-sibling-duplicate-description.js b/packages/ruleset/src/functions/ref-sibling-duplicate-description.js index 73a7b3ba1..341629b10 100644 --- a/packages/ruleset/src/functions/ref-sibling-duplicate-description.js +++ b/packages/ruleset/src/functions/ref-sibling-duplicate-description.js @@ -3,20 +3,20 @@ * SPDX-License-Identifier: Apache2.0 */ -const { validateSubschemas } = require('@ibm-cloud/openapi-ruleset-utilities'); -const { LoggerFactory } = require('../utils'); +import { validateSubschemas } from '@ibm-cloud/openapi-ruleset-utilities'; +import { LoggerFactory } from '../utils/index.js'; let ruleId; let logger; -module.exports = function (schema, _opts, context) { +export default function (schema, _opts, context) { if (!logger) { ruleId = context.rule.name; logger = LoggerFactory.getInstance().getLogger(ruleId); } return validateSubschemas(schema, context.path, checkDuplicateDescription); -}; +} function checkDuplicateDescription(schema, path) { // We're only interested in a schema or schema property that has an allOf list. diff --git a/packages/ruleset/src/functions/request-and-response-content.js b/packages/ruleset/src/functions/request-and-response-content.js index f061bd8b1..77deb78e3 100644 --- a/packages/ruleset/src/functions/request-and-response-content.js +++ b/packages/ruleset/src/functions/request-and-response-content.js @@ -3,14 +3,14 @@ * SPDX-License-Identifier: Apache2.0 */ -const { +import { isObject, getResolvedSpec, -} = require('@ibm-cloud/openapi-ruleset-utilities'); -const { +} from '@ibm-cloud/openapi-ruleset-utilities'; +import { LoggerFactory, pathHasMinimallyRepresentedResource, -} = require('../utils'); +} from '../utils/index.js'; let ruleId; let logger; @@ -23,17 +23,13 @@ let logger; * */ -module.exports = function requestAndResponseContent( - operation, - options, - context -) { +export default function requestAndResponseContent(operation, options, context) { if (!logger) { ruleId = context.rule.name; logger = LoggerFactory.getInstance().getLogger(ruleId); } return checkForContent(operation, context.path, getResolvedSpec(context)); -}; +} /** * This function checks to ensure an operation defines "content" on its diff --git a/packages/ruleset/src/functions/requestbody-name.js b/packages/ruleset/src/functions/requestbody-name.js index 55af48465..c1f345a7a 100644 --- a/packages/ruleset/src/functions/requestbody-name.js +++ b/packages/ruleset/src/functions/requestbody-name.js @@ -3,23 +3,23 @@ * SPDX-License-Identifier: Apache2.0 */ -const { +import { isFormMimeType, isRequestBodyExploded, LoggerFactory, -} = require('../utils'); +} from '../utils/index.js'; let ruleId; let logger; -module.exports = function (operation, _opts, context) { +export default function (operation, _opts, context) { if (!logger) { ruleId = context.rule.name; logger = LoggerFactory.getInstance().getLogger(ruleId); } return requestBodyName(operation, context.path); -}; +} // Name of the extension that we're looking for. const EXTENSION_NAME = 'x-codegen-request-body-name'; diff --git a/packages/ruleset/src/functions/required-array-properties-in-response.js b/packages/ruleset/src/functions/required-array-properties-in-response.js index 01faa6bb3..b173f09a4 100644 --- a/packages/ruleset/src/functions/required-array-properties-in-response.js +++ b/packages/ruleset/src/functions/required-array-properties-in-response.js @@ -3,17 +3,17 @@ * SPDX-License-Identifier: Apache2.0 */ -const { +import { isArraySchema, isObject, validateNestedSchemas, -} = require('@ibm-cloud/openapi-ruleset-utilities'); -const { LoggerFactory } = require('../utils'); +} from '@ibm-cloud/openapi-ruleset-utilities'; +import { LoggerFactory } from '../utils/index.js'; let ruleId; let logger; -module.exports = function (schema, _opts, context) { +export default function (schema, _opts, context) { if (!logger) { ruleId = context.rule.name; logger = LoggerFactory.getInstance().getLogger(ruleId); @@ -22,7 +22,7 @@ module.exports = function (schema, _opts, context) { return validateNestedSchemas(schema, context.path, (s, p) => { return checkForOptionalArrays(s, p, []); }); -}; +} /** * Checks "schema" for any optional array properties, including diff --git a/packages/ruleset/src/functions/required-enum-properties-in-response.js b/packages/ruleset/src/functions/required-enum-properties-in-response.js index aecf7131b..21701fce6 100644 --- a/packages/ruleset/src/functions/required-enum-properties-in-response.js +++ b/packages/ruleset/src/functions/required-enum-properties-in-response.js @@ -3,17 +3,17 @@ * SPDX-License-Identifier: Apache2.0 */ -const { +import { isEnumerationSchema, isObject, validateNestedSchemas, -} = require('@ibm-cloud/openapi-ruleset-utilities'); -const { LoggerFactory } = require('../utils'); +} from '@ibm-cloud/openapi-ruleset-utilities'; +import { LoggerFactory } from '../utils/index.js'; let ruleId; let logger; -module.exports = function (schema, _opts, context) { +export default function (schema, _opts, context) { if (!logger) { ruleId = context.rule.name; logger = LoggerFactory.getInstance().getLogger(ruleId); @@ -22,7 +22,7 @@ module.exports = function (schema, _opts, context) { return validateNestedSchemas(schema, context.path, (s, p) => { return checkForOptionalEnumerations(s, p, []); }); -}; +} /** * Checks "schema" for any optional enumeration properties (i.e. type string w/"enum" field present). diff --git a/packages/ruleset/src/functions/required-property.js b/packages/ruleset/src/functions/required-property.js index 0a184357a..c13fca55f 100644 --- a/packages/ruleset/src/functions/required-property.js +++ b/packages/ruleset/src/functions/required-property.js @@ -3,16 +3,16 @@ * SPDX-License-Identifier: Apache2.0 */ -const { +import { schemaHasProperty, validateSubschemas, -} = require('@ibm-cloud/openapi-ruleset-utilities'); -const { LoggerFactory } = require('../utils'); +} from '@ibm-cloud/openapi-ruleset-utilities'; +import { LoggerFactory } from '../utils/index.js'; let ruleId; let logger; -module.exports = function (schema, _opts, context) { +export default function (schema, _opts, context) { if (!logger) { ruleId = context.rule.name; logger = LoggerFactory.getInstance().getLogger(ruleId); @@ -24,7 +24,7 @@ module.exports = function (schema, _opts, context) { true, false ); -}; +} /** * Checks "schema" to make sure that any property names contained in "required" fields diff --git a/packages/ruleset/src/functions/resource-response-consistency.js b/packages/ruleset/src/functions/resource-response-consistency.js index 2305fb8fb..46a48666b 100644 --- a/packages/ruleset/src/functions/resource-response-consistency.js +++ b/packages/ruleset/src/functions/resource-response-consistency.js @@ -3,13 +3,13 @@ * SPDX-License-Identifier: Apache2.0 */ -const { isEqual } = require('lodash'); -const { +import isEqual from 'lodash/isEqual.js'; +import { isObject, getResolvedSpec, getNodes, -} = require('@ibm-cloud/openapi-ruleset-utilities'); -const { +} from '@ibm-cloud/openapi-ruleset-utilities'; +import { computeRefsAtPaths, getResourceSpecificSiblingPath, getResponseCodes, @@ -19,12 +19,12 @@ const { isJsonMimeType, isOperationOfType, LoggerFactory, -} = require('../utils'); +} from '../utils/index.js'; let ruleId; let logger; -module.exports = function (operation, _opts, context) { +export default function (operation, _opts, context) { if (!logger) { ruleId = context.rule.name; logger = LoggerFactory.getInstance().getLogger(ruleId); @@ -36,7 +36,7 @@ module.exports = function (operation, _opts, context) { getResolvedSpec(context), getNodes(context) ); -}; +} /** * Checks that operations that create or update a resource should diff --git a/packages/ruleset/src/functions/response-example-exists.js b/packages/ruleset/src/functions/response-example-exists.js index 203fbfa49..a0d699d60 100644 --- a/packages/ruleset/src/functions/response-example-exists.js +++ b/packages/ruleset/src/functions/response-example-exists.js @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache2.0 */ -module.exports = function (response) { +export default function (response) { if (!responseLevelExamples(response) && !schemaLevelExample(response)) { return [ { @@ -11,7 +11,7 @@ module.exports = function (response) { }, ]; } -}; +} function responseLevelExamples(response) { return response.example || response.examples; diff --git a/packages/ruleset/src/functions/response-status-codes.js b/packages/ruleset/src/functions/response-status-codes.js index 2be84577e..a62eb3cac 100644 --- a/packages/ruleset/src/functions/response-status-codes.js +++ b/packages/ruleset/src/functions/response-status-codes.js @@ -3,27 +3,27 @@ * SPDX-License-Identifier: Apache2.0 */ -const { getResolvedSpec } = require('@ibm-cloud/openapi-ruleset-utilities'); -const { +import { getResolvedSpec } from '@ibm-cloud/openapi-ruleset-utilities'; +import { LoggerFactory, isCreateOperation, isOperationOfType, getResourceSpecificSiblingPath, getResponseCodes, pathHasMinimallyRepresentedResource, -} = require('../utils'); +} from '../utils/index.js'; let ruleId; let logger; -module.exports = function (operation, _opts, context) { +export default function (operation, _opts, context) { if (!logger) { ruleId = context.rule.name; logger = LoggerFactory.getInstance().getLogger(ruleId); } return responseStatusCodes(operation, context.path, getResolvedSpec(context)); -}; +} /** * This function performs a few checks on each operation's responses field: diff --git a/packages/ruleset/src/functions/schema-casing-convention.js b/packages/ruleset/src/functions/schema-casing-convention.js index f971b4a70..dd649cc45 100644 --- a/packages/ruleset/src/functions/schema-casing-convention.js +++ b/packages/ruleset/src/functions/schema-casing-convention.js @@ -3,9 +3,9 @@ * SPDX-License-Identifier: Apache2.0 */ -const { isObject } = require('@ibm-cloud/openapi-ruleset-utilities'); -const { pattern } = require('@stoplight/spectral-functions'); -const { LoggerFactory } = require('../utils'); +import { isObject } from '@ibm-cloud/openapi-ruleset-utilities'; +import { pattern } from '@stoplight/spectral-functions'; +import { LoggerFactory } from '../utils/index.js'; let patternConfig; let ruleId; @@ -18,7 +18,7 @@ let logger; * - ibm-avoid-inline-schemas: all relevant schemas are named (defined with references) */ -module.exports = function (components, options, context) { +export default function (components, options, context) { // Save this rule's "functionOptions" value since we need // to pass it on to Spectral's "pattern" function. patternConfig = options; @@ -29,7 +29,7 @@ module.exports = function (components, options, context) { } return schemaCaseConvention(components, context.path); -}; +} function schemaCaseConvention(components, path) { if (!components.schemas || !isObject(components.schemas)) { diff --git a/packages/ruleset/src/functions/schema-description-exists.js b/packages/ruleset/src/functions/schema-description-exists.js index 011629628..e68250a0a 100644 --- a/packages/ruleset/src/functions/schema-description-exists.js +++ b/packages/ruleset/src/functions/schema-description-exists.js @@ -3,23 +3,23 @@ * SPDX-License-Identifier: Apache2.0 */ -const { +import { validateSubschemas, schemaHasConstraint, -} = require('@ibm-cloud/openapi-ruleset-utilities'); -const { LoggerFactory, isPrimarySchema } = require('../utils'); +} from '@ibm-cloud/openapi-ruleset-utilities'; +import { LoggerFactory, isPrimarySchema } from '../utils/index.js'; let ruleId; let logger; -module.exports = function (schema, _opts, context) { +export default function (schema, _opts, context) { if (!logger) { ruleId = context.rule.name; logger = LoggerFactory.getInstance().getLogger(ruleId); } return validateSubschemas(schema, context.path, schemaDescriptionExists); -}; +} function schemaDescriptionExists(schema, path) { // Check to see if "path" represents a primary schema (i.e. not a schema property). diff --git a/packages/ruleset/src/functions/schema-naming-convention.js b/packages/ruleset/src/functions/schema-naming-convention.js index 125ff32b3..b013cd971 100644 --- a/packages/ruleset/src/functions/schema-naming-convention.js +++ b/packages/ruleset/src/functions/schema-naming-convention.js @@ -3,12 +3,12 @@ * SPDX-License-Identifier: Apache2.0 */ -const { +import { schemaHasProperty, getNodes, -} = require('@ibm-cloud/openapi-ruleset-utilities'); +} from '@ibm-cloud/openapi-ruleset-utilities'; -const { +import { LoggerFactory, computeRefsAtPaths, getCanonicalSchemaForPath, @@ -16,7 +16,7 @@ const { getResourceOrientedPaths, getSchemaNameAtPath, getSuccessResponseSchemaForOperation, -} = require('../utils'); +} from '../utils/index.js'; let ruleId; let logger; @@ -38,13 +38,13 @@ let logger; * - ibm-schema-casing-convention: schema names use upper camel case */ -module.exports = function schemaNames(apidef, options, context) { +export default function schemaNames(apidef, options, context) { if (!logger) { ruleId = context.rule.name; logger = LoggerFactory.getInstance().getLogger(ruleId); } return checkSchemaNames(apidef, getNodes(context)); -}; +} /** * This function checks for most of the API Handbook's schema naming conventions. diff --git a/packages/ruleset/src/functions/schema-or-content-provided.js b/packages/ruleset/src/functions/schema-or-content-provided.js index 5c661b4b5..21b0958ff 100644 --- a/packages/ruleset/src/functions/schema-or-content-provided.js +++ b/packages/ruleset/src/functions/schema-or-content-provided.js @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache2.0 */ -module.exports = function (obj) { +export default function (obj) { if (!obj.schema && !obj.content) { return [ { @@ -11,4 +11,4 @@ module.exports = function (obj) { }, ]; } -}; +} diff --git a/packages/ruleset/src/functions/schema-type-exists.js b/packages/ruleset/src/functions/schema-type-exists.js index 38793896d..7567328f2 100644 --- a/packages/ruleset/src/functions/schema-type-exists.js +++ b/packages/ruleset/src/functions/schema-type-exists.js @@ -3,20 +3,20 @@ * SPDX-License-Identifier: Apache2.0 */ -const { validateSubschemas } = require('@ibm-cloud/openapi-ruleset-utilities'); -const { LoggerFactory, mergeAllOfSchemaProperties } = require('../utils'); +import { validateSubschemas } from '@ibm-cloud/openapi-ruleset-utilities'; +import { LoggerFactory, mergeAllOfSchemaProperties } from '../utils/index.js'; let ruleId; let logger; -module.exports = function (schema, _opts, context) { +export default function (schema, _opts, context) { if (!logger) { ruleId = context.rule.name; logger = LoggerFactory.getInstance().getLogger(ruleId); } return validateSubschemas(schema, context.path, schemaTypeExists); -}; +} function schemaTypeExists(schema, path) { // If we're looking at an allOf list element schema, then diff --git a/packages/ruleset/src/functions/schema-type-format.js b/packages/ruleset/src/functions/schema-type-format.js index 9c18cc8e9..a94d928a2 100644 --- a/packages/ruleset/src/functions/schema-type-format.js +++ b/packages/ruleset/src/functions/schema-type-format.js @@ -3,8 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { validateSubschemas } = require('@ibm-cloud/openapi-ruleset-utilities'); -const { LoggerFactory } = require('../utils'); +import { validateSubschemas } from '@ibm-cloud/openapi-ruleset-utilities'; +import { LoggerFactory } from '../utils/index.js'; // Valid schema types. const validTypes = [ @@ -52,14 +52,14 @@ const stringFormatErrorMsg = `Schema of type string should use one of the follow let ruleId; let logger; -module.exports = function (schema, _opts, context) { +export default function (schema, _opts, context) { if (!logger) { ruleId = context.rule.name; logger = LoggerFactory.getInstance().getLogger(ruleId); } return validateSubschemas(schema, context.path, typeFormatErrors); -}; +} function typeFormatErrors(schema, path) { logger.debug( diff --git a/packages/ruleset/src/functions/securityscheme-attributes.js b/packages/ruleset/src/functions/securityscheme-attributes.js index e529c3717..39da89568 100644 --- a/packages/ruleset/src/functions/securityscheme-attributes.js +++ b/packages/ruleset/src/functions/securityscheme-attributes.js @@ -3,13 +3,15 @@ * SPDX-License-Identifier: Apache2.0 */ -const stringValidator = require('validator'); -const { LoggerFactory } = require('../utils'); +import validator from 'validator'; +import { LoggerFactory } from '../utils/index.js'; + +const { isURL } = validator; let ruleId; let logger; -module.exports = function (securityScheme, _opts, context) { +export default function (securityScheme, _opts, context) { if (!logger) { ruleId = context.rule.name; logger = LoggerFactory.getInstance().getLogger(ruleId); @@ -20,7 +22,7 @@ module.exports = function (securityScheme, _opts, context) { context.path, context.document ); -}; +} const API_KEY = 'apiKey'; const OAUTH2 = 'oauth2'; @@ -276,5 +278,5 @@ function isValidUrl(url, serviceUrl) { } } - return stringValidator.isURL(url); + return isURL(url); } diff --git a/packages/ruleset/src/functions/securityschemes.js b/packages/ruleset/src/functions/securityschemes.js index 09df67ed0..10cd90adf 100644 --- a/packages/ruleset/src/functions/securityschemes.js +++ b/packages/ruleset/src/functions/securityschemes.js @@ -3,19 +3,19 @@ * SPDX-License-Identifier: Apache2.0 */ -const { LoggerFactory, operationMethods } = require('../utils'); +import { LoggerFactory, operationMethods } from '../utils/index.js'; let ruleId; let logger; -module.exports = function (rootDocument, _opts, context) { +export default function (rootDocument, _opts, context) { if (!logger) { ruleId = context.rule.name; logger = LoggerFactory.getInstance().getLogger(ruleId); } return checkSecuritySchemes(rootDocument); -}; +} // Security scheme types that support scopes. const schemeTypesSupportScopes = ['oauth2', 'openIdConnect']; diff --git a/packages/ruleset/src/functions/string-attributes.js b/packages/ruleset/src/functions/string-attributes.js index ce380d260..978cb76d6 100644 --- a/packages/ruleset/src/functions/string-attributes.js +++ b/packages/ruleset/src/functions/string-attributes.js @@ -3,17 +3,17 @@ * SPDX-License-Identifier: Apache2.0 */ -const { +import { schemaHasConstraint, isStringSchema, validateNestedSchemas, -} = require('@ibm-cloud/openapi-ruleset-utilities'); +} from '@ibm-cloud/openapi-ruleset-utilities'; -const { getCompositeSchemaAttribute, LoggerFactory } = require('../utils'); +import { getCompositeSchemaAttribute, LoggerFactory } from '../utils/index.js'; let ruleId; let logger; -module.exports = function (schema, _opts, context) { +export default function (schema, _opts, context) { if (!logger) { ruleId = context.rule.name; logger = LoggerFactory.getInstance().getLogger(ruleId); @@ -25,7 +25,7 @@ module.exports = function (schema, _opts, context) { true, false ); -}; +} // An object holding a list of "format" values to be bypassed when checking // for the "pattern", "minLength" and "maxLength" fields of a string property, respectively. diff --git a/packages/ruleset/src/functions/unevaluated-properties.js b/packages/ruleset/src/functions/unevaluated-properties.js index 04513675b..13cae7f6c 100644 --- a/packages/ruleset/src/functions/unevaluated-properties.js +++ b/packages/ruleset/src/functions/unevaluated-properties.js @@ -3,13 +3,13 @@ * SPDX-License-Identifier: Apache2.0 */ -const { validateSubschemas } = require('@ibm-cloud/openapi-ruleset-utilities'); -const { LoggerFactory } = require('../utils'); +import { validateSubschemas } from '@ibm-cloud/openapi-ruleset-utilities'; +import { LoggerFactory } from '../utils/index.js'; let ruleId; let logger; -module.exports = function (schema, _opts, context) { +export default function (schema, _opts, context) { if (!logger) { ruleId = context.rule.name; logger = LoggerFactory.getInstance().getLogger(ruleId); @@ -21,7 +21,7 @@ module.exports = function (schema, _opts, context) { true, false ); -}; +} /** * If 'unevaluatedProperties' is specified within "schema" then it must be set to false. diff --git a/packages/ruleset/src/functions/unique-parameter-request-property-names.js b/packages/ruleset/src/functions/unique-parameter-request-property-names.js index c5f6c4c47..0c1b371a0 100644 --- a/packages/ruleset/src/functions/unique-parameter-request-property-names.js +++ b/packages/ruleset/src/functions/unique-parameter-request-property-names.js @@ -3,29 +3,29 @@ * SPDX-License-Identifier: Apache2.0 */ -const { +import { isObject, schemaHasConstraint, -} = require('@ibm-cloud/openapi-ruleset-utilities'); +} from '@ibm-cloud/openapi-ruleset-utilities'; -const { +import { isJsonMimeType, isJsonPatchMimeType, isMergePatchMimeType, LoggerFactory, operationMethods, -} = require('../utils'); +} from '../utils/index.js'; let ruleId; let logger; -module.exports = function (pathItem, _opts, context) { +export default function (pathItem, _opts, context) { if (!logger) { ruleId = context.rule.name; logger = LoggerFactory.getInstance().getLogger(ruleId); } return checkForNameCollisions(pathItem, context.path); -}; +} /** * This function checks each operation to see check for collisions between diff --git a/packages/ruleset/src/functions/unused-tags.js b/packages/ruleset/src/functions/unused-tags.js index 4ee883087..99323a61d 100644 --- a/packages/ruleset/src/functions/unused-tags.js +++ b/packages/ruleset/src/functions/unused-tags.js @@ -3,19 +3,19 @@ * SPDX-License-Identifier: Apache2.0 */ -const { LoggerFactory, operationMethods } = require('../utils'); +import { LoggerFactory, operationMethods } from '../utils/index.js'; let ruleId; let logger; -module.exports = function (rootDocument, _opts, context) { +export default function (rootDocument, _opts, context) { if (!logger) { ruleId = context.rule.name; logger = LoggerFactory.getInstance().getLogger(ruleId); } return checkUnusedTags(rootDocument); -}; +} /** * This function implements the 'unused-tag' validation rule. diff --git a/packages/ruleset/src/functions/use-date-based-format.js b/packages/ruleset/src/functions/use-date-based-format.js index 47ca1f53b..4909597cc 100644 --- a/packages/ruleset/src/functions/use-date-based-format.js +++ b/packages/ruleset/src/functions/use-date-based-format.js @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache2.0 */ -const { +import { getExamplesForSchema, isDateSchema, isDateTimeSchema, @@ -12,9 +12,9 @@ const { isStringSchema, validateNestedSchemas, getResolvedSpec, -} = require('@ibm-cloud/openapi-ruleset-utilities'); +} from '@ibm-cloud/openapi-ruleset-utilities'; -const { +import { LoggerFactory, isDateBasedName, isDateBasedValue, @@ -23,7 +23,7 @@ const { isRequestBodySchema, isResponseSchema, isSchemaProperty, -} = require('../utils'); +} from '../utils/index.js'; let ruleId; let logger; @@ -40,7 +40,7 @@ let logger; * with that check in this rule - we recommend either "date" or "date-time". */ -module.exports = function (schema, _opts, context) { +export default function (schema, _opts, context) { if (!logger) { ruleId = context.rule.name; logger = LoggerFactory.getInstance().getLogger(ruleId); @@ -51,7 +51,7 @@ module.exports = function (schema, _opts, context) { context.path, getResolvedSpec(context) ); -}; +} /** * This function implements a rule that enforces date-based schemas use either diff --git a/packages/ruleset/src/functions/valid-path-segments.js b/packages/ruleset/src/functions/valid-path-segments.js index a1d49a01c..0673f1f5f 100644 --- a/packages/ruleset/src/functions/valid-path-segments.js +++ b/packages/ruleset/src/functions/valid-path-segments.js @@ -3,19 +3,19 @@ * SPDX-License-Identifier: Apache2.0 */ -const { LoggerFactory } = require('../utils'); +import { LoggerFactory } from '../utils/index.js'; let ruleId; let logger; -module.exports = function (pathItem, options, context) { +export default function (pathItem, options, context) { if (!logger) { ruleId = context.rule.name; logger = LoggerFactory.getInstance().getLogger(ruleId); } return validatePathSegments(context.path); -}; +} /** * This function validates individual path segments within a path string. diff --git a/packages/ruleset/src/functions/valid-schema-example.js b/packages/ruleset/src/functions/valid-schema-example.js index 03ded9300..50230bd0b 100644 --- a/packages/ruleset/src/functions/valid-schema-example.js +++ b/packages/ruleset/src/functions/valid-schema-example.js @@ -3,18 +3,18 @@ * SPDX-License-Identifier: Apache2.0 */ -const { validate } = require('jsonschema'); -const { +import { validate } from 'jsonschema'; +import { validateSubschemas, getResolvedSpec, -} = require('@ibm-cloud/openapi-ruleset-utilities'); -const { LoggerFactory } = require('../utils'); +} from '@ibm-cloud/openapi-ruleset-utilities'; +import { LoggerFactory } from '../utils/index.js'; let ruleId; let logger; let openapi; -module.exports = function (schema, _opts, context) { +export default function (schema, _opts, context) { if (!logger) { ruleId = context.rule.name; logger = LoggerFactory.getInstance().getLogger(ruleId); @@ -22,7 +22,7 @@ module.exports = function (schema, _opts, context) { openapi = getResolvedSpec(context); return validateSubschemas(schema, context.path, checkSchemaExamples); -}; +} function checkSchemaExamples(schema, path) { if (!isDefined(schema.example) && !definesElements(schema.examples)) { diff --git a/packages/ruleset/src/functions/well-defined-dictionaries.js b/packages/ruleset/src/functions/well-defined-dictionaries.js index cde853c50..64a9b0a98 100644 --- a/packages/ruleset/src/functions/well-defined-dictionaries.js +++ b/packages/ruleset/src/functions/well-defined-dictionaries.js @@ -3,13 +3,13 @@ * SPDX-License-Identifier: Apache2.0 */ -const { +import { isObject, isObjectSchema, schemaHasConstraint, validateNestedSchemas, -} = require('@ibm-cloud/openapi-ruleset-utilities'); -const { LoggerFactory } = require('../utils'); +} from '@ibm-cloud/openapi-ruleset-utilities'; +import { LoggerFactory } from '../utils/index.js'; let ruleId; let logger; @@ -21,14 +21,14 @@ let logger; * - ibm-pattern-properties: patternProperties isn't empty or the wrong type */ -module.exports = function (schema, _opts, context) { +export default function (schema, _opts, context) { if (!logger) { ruleId = context.rule.name; logger = LoggerFactory.getInstance().getLogger(ruleId); } return validateNestedSchemas(schema, context.path, wellDefinedDictionaries); -}; +} function wellDefinedDictionaries(schema, path) { // We only care about object schemas. diff --git a/packages/ruleset/src/ibm-oas.js b/packages/ruleset/src/ibm-oas.js index f2cd0001b..78954ec12 100644 --- a/packages/ruleset/src/ibm-oas.js +++ b/packages/ruleset/src/ibm-oas.js @@ -3,9 +3,103 @@ * SPDX-License-Identifier: Apache2.0 */ -const { oas3 } = require('@stoplight/spectral-formats'); -const { oas } = require('@stoplight/spectral-rulesets'); -const ibmRules = require('./rules'); +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import { oas } from '@stoplight/spectral-rulesets'; +import { + typedEnum, + acceptAndReturnModels, + anchoredPatterns, + apiSymmetry, + arrayAttributes, + inlineSchemas, + avoidMultipleTypes, + propertyNameCollision, + duplicatePathParameter, + binarySchemas, + collectionArrayProperty, + contentContainsSchema, + contentTypeIsSpecific, + requiredPropertyMissing, + discriminatorPropertyExists, + mergePatchProperties, + enumCasingConvention, + errorContentTypeIsJson, + errorResponseSchemas, + etagHeaderExists, + integerAttributes, + majorVersionInPath, + acceptHeader, + noAmbiguousPaths, + arrayOfArrays, + arrayResponses, + authorizationHeader, + deleteBody, + circularRefs, + consecutivePathSegments, + contentTypeHeader, + pathParameterNotCRN, + parameterDefault, + refSiblingDuplicateDescription, + ifModifiedSinceHeader, + ifUnmodifiedSinceHeader, + noNullableProperties, + noOperationRequestBody, + optionalRequestBodyDeprecated, + noRefInExample, + optionalRequestBody, + examplesNameContainsSpace, + noSuperfluousAllOf, + noUnsupportedKeywords, + unusedTags, + operationResponses, + operationSummaryExists, + operationSummaryLength, + operationIdCasingConvention, + operationIdNamingConvention, + paginationStyle, + parameterCasingConvention, + parameterDescriptionExists, + parameterOrder, + parameterSchemaOrContentExists, + patchRequestContentType, + pathSegmentCasingConvention, + patternProperties, + preconditionHeader, + preferTokenPagination, + propertyAttributes, + propertyCasingConvention, + propertyConsistentNameAndType, + propertyDescriptionExists, + redirectResponseBody, + refPattern, + requestAndResponseContent, + requestBodyIsObject, + requestBodyName, + requiredArrayPropertiesInResponse, + requiredEnumPropertiesInResponse, + resourceResponseConsistency, + responseStatusCodes, + schemaCasingConvention, + schemaDescriptionExists, + schemaKeywords, + schemaNamingConvention, + schemaTypeExists, + schemaTypeFormat, + ibmSdkOperations, + securitySchemeAttributes, + securitySchemes, + serverVariableDefaultValue, + stringAttributes, + responseExampleExists, + summarySentenceStyle, + unevaluatedProperties, + uniqueParameterRequestPropertyNames, + useDateBasedFormat, + validPathSegments, + validSchemaExample, + wellDefinedDictionaries, +} from './rules/index.js'; // Spectral's "no-$ref-siblings" rule is configured to run on // OpenAPI 3.0.x documents (ref sibling attributes are allowed in OpenAPI 3.1.x). @@ -15,195 +109,187 @@ oas.rules['no-$ref-siblings'].formats = [oas3]; oas.documentationUrl = 'https://meta.stoplight.io/docs/spectral/4dec24461f3af-open-api-rules'; -module.exports = { - extends: oas, - documentationUrl: - 'https://ibm.github.io/openapi-validator/docs/ibm-cloud-rules.html', - formats: [oas3], - rules: { - // Original list created from Spectral with: - // jq -r '.rules | to_entries | .[] | select(.value.recommended != false) | " \(.key): off"' src/rulesets/oas/index.json +export { oas as extends }; +export const documentationUrl = + 'https://ibm.github.io/openapi-validator/docs/ibm-cloud-rules.html'; +export const formats = [oas3]; +export const rules = { + // Original list created from Spectral with: + // jq -r '.rules | to_entries | .[] | select(.value.recommended != false) | " \(.key): off"' src/rulesets/oas/index.json + // Spectral OAS rules - IBM Custom Settings + // Turn off -- duplicates no_success_response_codes + 'operation-success-response': 'off', + // Enable with same severity as Spectral + 'oas2-operation-formData-consume-check': true, + // Enable with same severity as Spectral + 'operation-operationId-unique': true, + // Enable with same severity as Spectral + 'operation-parameters': true, + // Enable with same severity as Spectral + 'operation-tag-defined': true, + // Turn off - exclude from ibm:oas + 'info-contact': 'off', + // Turn off - exclude from ibm:oas + 'info-description': 'off', + // Enable with same severity as Spectral + 'no-eval-in-markdown': true, + // Enable with same severity as Spectral + 'no-script-tags-in-markdown': true, + // Enable with same severity as Spectral + 'openapi-tags': true, + // Enable with same severity as Spectral + 'operation-description': true, + // Enable with same severity as Spectral + 'operation-operationId': true, + // Turn off - duplicates operation_id_case_convention + 'operation-operationId-valid-in-url': 'off', + // Enable with same severity as Spectral + 'operation-tags': true, + // Enable with same severity as Spectral + 'path-params': true, + // Enable with same severity as Spectral + 'path-declarations-must-exist': true, + // Enable with same severity as Spectral + 'path-keys-no-trailing-slash': true, + // Enable with same severity as Spectral + 'path-not-include-query': true, + // Enable with same severity as Spectral + 'no-$ref-siblings': true, + // Enable with same settings as Spectral, but override the rule to modify + // the 'given' field to only check schemas - Spectral checks everything. + 'typed-enum': typedEnum, + // Enable with same severity as Spectral + 'oas2-api-host': true, + // Enable with same severity as Spectral + 'oas2-api-schemes': true, + // Enable with same severity as Spectral + 'oas2-host-trailing-slash': true, + // Turn off - duplicates non-configurable validation - security-ibm.js + 'oas2-operation-security-defined': 'off', + // Enable with warn severity + 'oas2-valid-schema-example': 'warn', + // Turn off + 'oas2-valid-media-example': 'off', + // Enable with same severity as Spectral + 'oas2-anyOf': true, + // Enable with same severity as Spectral + 'oas2-oneOf': true, + // Turn off + 'oas2-schema': 'off', + // Turn off - duplicates non-configurable validation in base validator + 'oas2-unused-definition': true, + // Enable with same severity as Spectral + 'oas3-api-servers': true, + // Enable with same severity as Spectral + 'oas3-examples-value-or-externalValue': true, + // Turn off - duplicates non-configurable validation - security-ibm.js + 'oas3-operation-security-defined': 'off', + // Enable with same severity as Spectral + 'oas3-server-trailing-slash': true, + // Enable with warn severity + 'oas3-valid-media-example': 'warn', + // Disable - replaced with ibm-valid-schema-example. + 'oas3-valid-schema-example': 'off', + // Enable with same severity as Spectral + 'oas3-schema': true, + // Turn off - duplicates non-configurable validation in base validator + 'oas3-unused-component': true, + // Turn off 'array-items' rule in favor of our 'ibm-array-attributes' rule + 'array-items': 'off', - // Spectral OAS rules - IBM Custom Settings - - // Turn off -- duplicates no_success_response_codes - 'operation-success-response': 'off', - // Enable with same severity as Spectral - 'oas2-operation-formData-consume-check': true, - // Enable with same severity as Spectral - 'operation-operationId-unique': true, - // Enable with same severity as Spectral - 'operation-parameters': true, - // Enable with same severity as Spectral - 'operation-tag-defined': true, - // Turn off - exclude from ibm:oas - 'info-contact': 'off', - // Turn off - exclude from ibm:oas - 'info-description': 'off', - // Enable with same severity as Spectral - 'no-eval-in-markdown': true, - // Enable with same severity as Spectral - 'no-script-tags-in-markdown': true, - // Enable with same severity as Spectral - 'openapi-tags': true, - // Enable with same severity as Spectral - 'operation-description': true, - // Enable with same severity as Spectral - 'operation-operationId': true, - // Turn off - duplicates operation_id_case_convention - 'operation-operationId-valid-in-url': 'off', - // Enable with same severity as Spectral - 'operation-tags': true, - // Enable with same severity as Spectral - 'path-params': true, - // Enable with same severity as Spectral - 'path-declarations-must-exist': true, - // Enable with same severity as Spectral - 'path-keys-no-trailing-slash': true, - // Enable with same severity as Spectral - 'path-not-include-query': true, - // Enable with same severity as Spectral - 'no-$ref-siblings': true, - // Enable with same settings as Spectral, but override the rule to modify - // the 'given' field to only check schemas - Spectral checks everything. - 'typed-enum': ibmRules.typedEnum, - // Enable with same severity as Spectral - 'oas2-api-host': true, - // Enable with same severity as Spectral - 'oas2-api-schemes': true, - // Enable with same severity as Spectral - 'oas2-host-trailing-slash': true, - // Turn off - duplicates non-configurable validation - security-ibm.js - 'oas2-operation-security-defined': 'off', - // Enable with warn severity - 'oas2-valid-schema-example': 'warn', - // Turn off - 'oas2-valid-media-example': 'off', - // Enable with same severity as Spectral - 'oas2-anyOf': true, - // Enable with same severity as Spectral - 'oas2-oneOf': true, - // Turn off - 'oas2-schema': 'off', - // Turn off - duplicates non-configurable validation in base validator - 'oas2-unused-definition': true, - // Enable with same severity as Spectral - 'oas3-api-servers': true, - // Enable with same severity as Spectral - 'oas3-examples-value-or-externalValue': true, - // Turn off - duplicates non-configurable validation - security-ibm.js - 'oas3-operation-security-defined': 'off', - // Enable with same severity as Spectral - 'oas3-server-trailing-slash': true, - // Enable with warn severity - 'oas3-valid-media-example': 'warn', - // Disable - replaced with ibm-valid-schema-example. - 'oas3-valid-schema-example': 'off', - // Enable with same severity as Spectral - 'oas3-schema': true, - // Turn off - duplicates non-configurable validation in base validator - 'oas3-unused-component': true, - // Turn off 'array-items' rule in favor of our 'ibm-array-attributes' rule - 'array-items': 'off', - - // IBM Custom Rules - 'ibm-accept-and-return-models': ibmRules.acceptAndReturnModels, - 'ibm-anchored-patterns': ibmRules.anchoredPatterns, - 'ibm-api-symmetry': ibmRules.apiSymmetry, - 'ibm-array-attributes': ibmRules.arrayAttributes, - 'ibm-avoid-inline-schemas': ibmRules.inlineSchemas, - 'ibm-avoid-multiple-types': ibmRules.avoidMultipleTypes, - 'ibm-avoid-property-name-collision': ibmRules.propertyNameCollision, - 'ibm-avoid-repeating-path-parameters': ibmRules.duplicatePathParameter, - 'ibm-binary-schemas': ibmRules.binarySchemas, - 'ibm-collection-array-property': ibmRules.collectionArrayProperty, - 'ibm-content-contains-schema': ibmRules.contentContainsSchema, - 'ibm-content-type-is-specific': ibmRules.contentTypeIsSpecific, - 'ibm-define-required-properties': ibmRules.requiredPropertyMissing, - 'ibm-discriminator-property': ibmRules.discriminatorPropertyExists, - 'ibm-dont-require-merge-patch-properties': ibmRules.mergePatchProperties, - 'ibm-enum-casing-convention': ibmRules.enumCasingConvention, - 'ibm-error-content-type-is-json': ibmRules.errorContentTypeIsJson, - 'ibm-error-response-schemas': ibmRules.errorResponseSchemas, - 'ibm-etag-header': ibmRules.etagHeaderExists, - 'ibm-integer-attributes': ibmRules.integerAttributes, - 'ibm-major-version-in-path': ibmRules.majorVersionInPath, - 'ibm-no-accept-header': ibmRules.acceptHeader, - 'ibm-no-ambiguous-paths': ibmRules.noAmbiguousPaths, - 'ibm-no-array-of-arrays': ibmRules.arrayOfArrays, - 'ibm-no-array-responses': ibmRules.arrayResponses, - 'ibm-no-authorization-header': ibmRules.authorizationHeader, - 'ibm-no-body-for-delete': ibmRules.deleteBody, - 'ibm-no-circular-refs': ibmRules.circularRefs, - 'ibm-no-consecutive-path-parameter-segments': - ibmRules.consecutivePathSegments, - 'ibm-no-content-type-header': ibmRules.contentTypeHeader, - 'ibm-no-crn-path-parameters': ibmRules.pathParameterNotCRN, - 'ibm-no-default-for-required-parameter': ibmRules.parameterDefault, - 'ibm-no-duplicate-description-with-ref-sibling': - ibmRules.refSiblingDuplicateDescription, - 'ibm-no-if-modified-since-header': ibmRules.ifModifiedSinceHeader, - 'ibm-no-if-unmodified-since-header': ibmRules.ifUnmodifiedSinceHeader, - 'ibm-no-nullable-properties': ibmRules.noNullableProperties, - 'ibm-no-operation-requestbody': ibmRules.noOperationRequestBody, - 'ibm-no-optional-properties-in-required-body': - ibmRules.optionalRequestBodyDeprecated, - 'ibm-no-ref-in-example': ibmRules.noRefInExample, - 'ibm-no-required-properties-in-optional-body': ibmRules.optionalRequestBody, - 'ibm-no-space-in-example-name': ibmRules.examplesNameContainsSpace, - 'ibm-no-superfluous-allof': ibmRules.noSuperfluousAllOf, - 'ibm-no-unsupported-keywords': ibmRules.noUnsupportedKeywords, - 'ibm-openapi-tags-used': ibmRules.unusedTags, - 'ibm-operation-responses': ibmRules.operationResponses, - 'ibm-operation-summary': ibmRules.operationSummaryExists, - 'ibm-operation-summary-length': ibmRules.operationSummaryLength, - 'ibm-operationid-casing-convention': ibmRules.operationIdCasingConvention, - 'ibm-operationid-naming-convention': ibmRules.operationIdNamingConvention, - 'ibm-pagination-style': ibmRules.paginationStyle, - 'ibm-parameter-casing-convention': ibmRules.parameterCasingConvention, - 'ibm-parameter-description': ibmRules.parameterDescriptionExists, - 'ibm-parameter-order': ibmRules.parameterOrder, - 'ibm-parameter-schema-or-content': ibmRules.parameterSchemaOrContentExists, - 'ibm-patch-request-content-type': ibmRules.patchRequestContentType, - 'ibm-path-segment-casing-convention': ibmRules.pathSegmentCasingConvention, - 'ibm-pattern-properties': ibmRules.patternProperties, - 'ibm-precondition-headers': ibmRules.preconditionHeader, - 'ibm-prefer-token-pagination': ibmRules.preferTokenPagination, - 'ibm-property-attributes': ibmRules.propertyAttributes, - 'ibm-property-casing-convention': ibmRules.propertyCasingConvention, - 'ibm-property-consistent-name-and-type': - ibmRules.propertyConsistentNameAndType, - 'ibm-property-description': ibmRules.propertyDescriptionExists, - 'ibm-redirect-response-body': ibmRules.redirectResponseBody, - 'ibm-ref-pattern': ibmRules.refPattern, - 'ibm-request-and-response-content': ibmRules.requestAndResponseContent, - 'ibm-requestbody-is-object': ibmRules.requestBodyIsObject, - 'ibm-requestbody-name': ibmRules.requestBodyName, - 'ibm-required-array-properties-in-response': - ibmRules.requiredArrayPropertiesInResponse, - 'ibm-required-enum-properties-in-response': - ibmRules.requiredEnumPropertiesInResponse, - 'ibm-resource-response-consistency': ibmRules.resourceResponseConsistency, - 'ibm-response-status-codes': ibmRules.responseStatusCodes, - 'ibm-schema-casing-convention': ibmRules.schemaCasingConvention, - 'ibm-schema-description': ibmRules.schemaDescriptionExists, - 'ibm-schema-keywords': ibmRules.schemaKeywords, - 'ibm-schema-naming-convention': ibmRules.schemaNamingConvention, - 'ibm-schema-type': ibmRules.schemaTypeExists, - 'ibm-schema-type-format': ibmRules.schemaTypeFormat, - 'ibm-sdk-operations': ibmRules.ibmSdkOperations, - 'ibm-securityscheme-attributes': ibmRules.securitySchemeAttributes, - 'ibm-securityschemes': ibmRules.securitySchemes, - 'ibm-server-variable-default-value': ibmRules.serverVariableDefaultValue, - 'ibm-string-attributes': ibmRules.stringAttributes, - 'ibm-success-response-example': ibmRules.responseExampleExists, - 'ibm-summary-sentence-style': ibmRules.summarySentenceStyle, - 'ibm-unevaluated-properties': ibmRules.unevaluatedProperties, - 'ibm-unique-parameter-request-property-names': - ibmRules.uniqueParameterRequestPropertyNames, - 'ibm-use-date-based-format': ibmRules.useDateBasedFormat, - 'ibm-valid-path-segments': ibmRules.validPathSegments, - 'ibm-valid-schema-example': ibmRules.validSchemaExample, - 'ibm-well-defined-dictionaries': ibmRules.wellDefinedDictionaries, - }, + // IBM Custom Rules + 'ibm-accept-and-return-models': acceptAndReturnModels, + 'ibm-anchored-patterns': anchoredPatterns, + 'ibm-api-symmetry': apiSymmetry, + 'ibm-array-attributes': arrayAttributes, + 'ibm-avoid-inline-schemas': inlineSchemas, + 'ibm-avoid-multiple-types': avoidMultipleTypes, + 'ibm-avoid-property-name-collision': propertyNameCollision, + 'ibm-avoid-repeating-path-parameters': duplicatePathParameter, + 'ibm-binary-schemas': binarySchemas, + 'ibm-collection-array-property': collectionArrayProperty, + 'ibm-content-contains-schema': contentContainsSchema, + 'ibm-content-type-is-specific': contentTypeIsSpecific, + 'ibm-define-required-properties': requiredPropertyMissing, + 'ibm-discriminator-property': discriminatorPropertyExists, + 'ibm-dont-require-merge-patch-properties': mergePatchProperties, + 'ibm-enum-casing-convention': enumCasingConvention, + 'ibm-error-content-type-is-json': errorContentTypeIsJson, + 'ibm-error-response-schemas': errorResponseSchemas, + 'ibm-etag-header': etagHeaderExists, + 'ibm-integer-attributes': integerAttributes, + 'ibm-major-version-in-path': majorVersionInPath, + 'ibm-no-accept-header': acceptHeader, + 'ibm-no-ambiguous-paths': noAmbiguousPaths, + 'ibm-no-array-of-arrays': arrayOfArrays, + 'ibm-no-array-responses': arrayResponses, + 'ibm-no-authorization-header': authorizationHeader, + 'ibm-no-body-for-delete': deleteBody, + 'ibm-no-circular-refs': circularRefs, + 'ibm-no-consecutive-path-parameter-segments': consecutivePathSegments, + 'ibm-no-content-type-header': contentTypeHeader, + 'ibm-no-crn-path-parameters': pathParameterNotCRN, + 'ibm-no-default-for-required-parameter': parameterDefault, + 'ibm-no-duplicate-description-with-ref-sibling': + refSiblingDuplicateDescription, + 'ibm-no-if-modified-since-header': ifModifiedSinceHeader, + 'ibm-no-if-unmodified-since-header': ifUnmodifiedSinceHeader, + 'ibm-no-nullable-properties': noNullableProperties, + 'ibm-no-operation-requestbody': noOperationRequestBody, + 'ibm-no-optional-properties-in-required-body': optionalRequestBodyDeprecated, + 'ibm-no-ref-in-example': noRefInExample, + 'ibm-no-required-properties-in-optional-body': optionalRequestBody, + 'ibm-no-space-in-example-name': examplesNameContainsSpace, + 'ibm-no-superfluous-allof': noSuperfluousAllOf, + 'ibm-no-unsupported-keywords': noUnsupportedKeywords, + 'ibm-openapi-tags-used': unusedTags, + 'ibm-operation-responses': operationResponses, + 'ibm-operation-summary': operationSummaryExists, + 'ibm-operation-summary-length': operationSummaryLength, + 'ibm-operationid-casing-convention': operationIdCasingConvention, + 'ibm-operationid-naming-convention': operationIdNamingConvention, + 'ibm-pagination-style': paginationStyle, + 'ibm-parameter-casing-convention': parameterCasingConvention, + 'ibm-parameter-description': parameterDescriptionExists, + 'ibm-parameter-order': parameterOrder, + 'ibm-parameter-schema-or-content': parameterSchemaOrContentExists, + 'ibm-patch-request-content-type': patchRequestContentType, + 'ibm-path-segment-casing-convention': pathSegmentCasingConvention, + 'ibm-pattern-properties': patternProperties, + 'ibm-precondition-headers': preconditionHeader, + 'ibm-prefer-token-pagination': preferTokenPagination, + 'ibm-property-attributes': propertyAttributes, + 'ibm-property-casing-convention': propertyCasingConvention, + 'ibm-property-consistent-name-and-type': propertyConsistentNameAndType, + 'ibm-property-description': propertyDescriptionExists, + 'ibm-redirect-response-body': redirectResponseBody, + 'ibm-ref-pattern': refPattern, + 'ibm-request-and-response-content': requestAndResponseContent, + 'ibm-requestbody-is-object': requestBodyIsObject, + 'ibm-requestbody-name': requestBodyName, + 'ibm-required-array-properties-in-response': + requiredArrayPropertiesInResponse, + 'ibm-required-enum-properties-in-response': requiredEnumPropertiesInResponse, + 'ibm-resource-response-consistency': resourceResponseConsistency, + 'ibm-response-status-codes': responseStatusCodes, + 'ibm-schema-casing-convention': schemaCasingConvention, + 'ibm-schema-description': schemaDescriptionExists, + 'ibm-schema-keywords': schemaKeywords, + 'ibm-schema-naming-convention': schemaNamingConvention, + 'ibm-schema-type': schemaTypeExists, + 'ibm-schema-type-format': schemaTypeFormat, + 'ibm-sdk-operations': ibmSdkOperations, + 'ibm-securityscheme-attributes': securitySchemeAttributes, + 'ibm-securityschemes': securitySchemes, + 'ibm-server-variable-default-value': serverVariableDefaultValue, + 'ibm-string-attributes': stringAttributes, + 'ibm-success-response-example': responseExampleExists, + 'ibm-summary-sentence-style': summarySentenceStyle, + 'ibm-unevaluated-properties': unevaluatedProperties, + 'ibm-unique-parameter-request-property-names': + uniqueParameterRequestPropertyNames, + 'ibm-use-date-based-format': useDateBasedFormat, + 'ibm-valid-path-segments': validPathSegments, + 'ibm-valid-schema-example': validSchemaExample, + 'ibm-well-defined-dictionaries': wellDefinedDictionaries, }; diff --git a/packages/ruleset/src/rules/accept-and-return-models.js b/packages/ruleset/src/rules/accept-and-return-models.js index 731409674..a08814e76 100644 --- a/packages/ruleset/src/rules/accept-and-return-models.js +++ b/packages/ruleset/src/rules/accept-and-return-models.js @@ -3,21 +3,21 @@ * SPDX-License-Identifier: Apache2.0 */ -const { +import { responseSchemas, requestBodySchemas, -} = require('@ibm-cloud/openapi-ruleset-utilities/src/collections'); -const { oas3 } = require('@stoplight/spectral-formats'); -const { acceptAndReturnModels } = require('../functions'); +} from '@ibm-cloud/openapi-ruleset-utilities/src/collections'; +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import acceptAndReturnModels from '../functions/accept-and-return-models.js'; -module.exports = { - description: 'Request and response bodies must be defined as model instances', - given: [...responseSchemas, ...requestBodySchemas], - message: '{{error}}', - severity: 'error', - formats: [oas3], - resolved: true, - then: { - function: acceptAndReturnModels, - }, +export const description = + 'Request and response bodies must be defined as model instances'; +export const given = [...responseSchemas, ...requestBodySchemas]; +export const message = '{{error}}'; +export const severity = 'error'; +export const formats = [oas3]; +export const resolved = true; +export const then = { + function: acceptAndReturnModels, }; diff --git a/packages/ruleset/src/rules/accept-header.js b/packages/ruleset/src/rules/accept-header.js index f382b2753..538be16dc 100644 --- a/packages/ruleset/src/rules/accept-header.js +++ b/packages/ruleset/src/rules/accept-header.js @@ -3,23 +3,20 @@ * SPDX-License-Identifier: Apache2.0 */ -const { - parameters, -} = require('@ibm-cloud/openapi-ruleset-utilities/src/collections'); -const { oas3 } = require('@stoplight/spectral-formats'); -const { disallowedHeaderParameter } = require('../functions'); +import { parameters } from '@ibm-cloud/openapi-ruleset-utilities/src/collections'; +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import { disallowedHeaderParameter } from '../functions/index.js'; -module.exports = { - description: - 'Operations should not explicitly define the Accept header parameter', - message: '{{description}}', - formats: [oas3], - given: parameters, - severity: 'warn', - then: { - function: disallowedHeaderParameter, - functionOptions: { - headerName: 'Accept', - }, +export const description = + 'Operations should not explicitly define the Accept header parameter'; +export const message = '{{description}}'; +export const formats = [oas3]; +export const given = parameters; +export const severity = 'warn'; +export const then = { + function: disallowedHeaderParameter, + functionOptions: { + headerName: 'Accept', }, }; diff --git a/packages/ruleset/src/rules/anchored-patterns.js b/packages/ruleset/src/rules/anchored-patterns.js index f88c8082e..7670e7531 100644 --- a/packages/ruleset/src/rules/anchored-patterns.js +++ b/packages/ruleset/src/rules/anchored-patterns.js @@ -3,20 +3,17 @@ * SPDX-License-Identifier: Apache2.0 */ -const { - schemas, -} = require('@ibm-cloud/openapi-ruleset-utilities/src/collections'); -const { oas3 } = require('@stoplight/spectral-formats'); -const { anchoredPatterns } = require('../functions'); +import { schemas } from '@ibm-cloud/openapi-ruleset-utilities/src/collections'; +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import { anchoredPatterns } from '../functions/index.js'; -module.exports = { - description: 'Pattern attributes should be anchored with ^ and $', - message: '{{error}}', - severity: 'warn', - formats: [oas3], - resolved: true, - given: schemas, - then: { - function: anchoredPatterns, - }, +export const description = 'Pattern attributes should be anchored with ^ and $'; +export const message = '{{error}}'; +export const severity = 'warn'; +export const formats = [oas3]; +export const resolved = true; +export const given = schemas; +export const then = { + function: anchoredPatterns, }; diff --git a/packages/ruleset/src/rules/api-symmetry.js b/packages/ruleset/src/rules/api-symmetry.js index bfb554bae..146ab4864 100644 --- a/packages/ruleset/src/rules/api-symmetry.js +++ b/packages/ruleset/src/rules/api-symmetry.js @@ -3,18 +3,17 @@ * SPDX-License-Identifier: Apache2.0 */ -const { oas3 } = require('@stoplight/spectral-formats'); -const { apiSymmetry } = require('../functions'); +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import { apiSymmetry } from '../functions/index.js'; -module.exports = { - description: - 'Variations of a resource schema should be graph fragments of the canonical schema', - message: '{{error}}', - given: ['$'], - severity: 'warn', - formats: [oas3], - resolved: true, - then: { - function: apiSymmetry, - }, +export const description = + 'Variations of a resource schema should be graph fragments of the canonical schema'; +export const message = '{{error}}'; +export const given = ['$']; +export const severity = 'warn'; +export const formats = [oas3]; +export const resolved = true; +export const then = { + function: apiSymmetry, }; diff --git a/packages/ruleset/src/rules/array-attributes.js b/packages/ruleset/src/rules/array-attributes.js index 654449785..986b8f04b 100644 --- a/packages/ruleset/src/rules/array-attributes.js +++ b/packages/ruleset/src/rules/array-attributes.js @@ -3,20 +3,18 @@ * SPDX-License-Identifier: Apache2.0 */ -const { - schemas, -} = require('@ibm-cloud/openapi-ruleset-utilities/src/collections'); -const { oas3 } = require('@stoplight/spectral-formats'); -const { arrayAttributes } = require('../functions'); +import { schemas } from '@ibm-cloud/openapi-ruleset-utilities/src/collections'; +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import { arrayAttributes } from '../functions/index.js'; -module.exports = { - description: 'Array schemas should have certain attributes defined', - message: '{{error}}', - severity: 'warn', - formats: [oas3], - resolved: true, - given: schemas, - then: { - function: arrayAttributes, - }, +export const description = + 'Array schemas should have certain attributes defined'; +export const message = '{{error}}'; +export const severity = 'warn'; +export const formats = [oas3]; +export const resolved = true; +export const given = schemas; +export const then = { + function: arrayAttributes, }; diff --git a/packages/ruleset/src/rules/array-of-arrays.js b/packages/ruleset/src/rules/array-of-arrays.js index 8cbc49995..172b3dd51 100644 --- a/packages/ruleset/src/rules/array-of-arrays.js +++ b/packages/ruleset/src/rules/array-of-arrays.js @@ -3,20 +3,18 @@ * SPDX-License-Identifier: Apache2.0 */ -const { - schemas, -} = require('@ibm-cloud/openapi-ruleset-utilities/src/collections'); -const { oas3 } = require('@stoplight/spectral-formats'); -const { arrayOfArrays } = require('../functions'); +import { schemas } from '@ibm-cloud/openapi-ruleset-utilities/src/collections'; +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import { arrayOfArrays } from '../functions/index.js'; -module.exports = { - description: 'Array schema with items of type array should be avoided', - message: '{{error}}', - given: schemas, - severity: 'warn', - formats: [oas3], - resolved: true, - then: { - function: arrayOfArrays, - }, +export const description = + 'Array schema with items of type array should be avoided'; +export const message = '{{error}}'; +export const given = schemas; +export const severity = 'warn'; +export const formats = [oas3]; +export const resolved = true; +export const then = { + function: arrayOfArrays, }; diff --git a/packages/ruleset/src/rules/array-responses.js b/packages/ruleset/src/rules/array-responses.js index 69fb7cf10..5173cb02a 100644 --- a/packages/ruleset/src/rules/array-responses.js +++ b/packages/ruleset/src/rules/array-responses.js @@ -3,21 +3,18 @@ * SPDX-License-Identifier: Apache2.0 */ -const { - operations, -} = require('@ibm-cloud/openapi-ruleset-utilities/src/collections'); -const { oas3 } = require('@stoplight/spectral-formats'); -const { arrayResponses } = require('../functions'); +import { operations } from '@ibm-cloud/openapi-ruleset-utilities/src/collections'; +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import { arrayResponses } from '../functions/index.js'; -module.exports = { - description: - 'Operations should not return an array as the top-level structure of a response.', - message: '{{error}}', - given: operations, - severity: 'error', - formats: [oas3], - resolved: true, - then: { - function: arrayResponses, - }, +export const description = + 'Operations should not return an array as the top-level structure of a response.'; +export const message = '{{error}}'; +export const given = operations; +export const severity = 'error'; +export const formats = [oas3]; +export const resolved = true; +export const then = { + function: arrayResponses, }; diff --git a/packages/ruleset/src/rules/authorization-header.js b/packages/ruleset/src/rules/authorization-header.js index 4046dd852..c0ae52742 100644 --- a/packages/ruleset/src/rules/authorization-header.js +++ b/packages/ruleset/src/rules/authorization-header.js @@ -3,23 +3,20 @@ * SPDX-License-Identifier: Apache2.0 */ -const { - parameters, -} = require('@ibm-cloud/openapi-ruleset-utilities/src/collections'); -const { oas3 } = require('@stoplight/spectral-formats'); -const { disallowedHeaderParameter } = require('../functions'); +import { parameters } from '@ibm-cloud/openapi-ruleset-utilities/src/collections'; +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import { disallowedHeaderParameter } from '../functions/index.js'; -module.exports = { - description: - 'Operations should not explicitly define the Authorization header parameter', - message: '{{description}}', - formats: [oas3], - given: parameters, - severity: 'warn', - then: { - function: disallowedHeaderParameter, - functionOptions: { - headerName: 'Authorization', - }, +export const description = + 'Operations should not explicitly define the Authorization header parameter'; +export const message = '{{description}}'; +export const formats = [oas3]; +export const given = parameters; +export const severity = 'warn'; +export const then = { + function: disallowedHeaderParameter, + functionOptions: { + headerName: 'Authorization', }, }; diff --git a/packages/ruleset/src/rules/avoid-multiple-types.js b/packages/ruleset/src/rules/avoid-multiple-types.js index 1ef5b29ef..8e47c4b4c 100644 --- a/packages/ruleset/src/rules/avoid-multiple-types.js +++ b/packages/ruleset/src/rules/avoid-multiple-types.js @@ -3,21 +3,18 @@ * SPDX-License-Identifier: Apache2.0 */ -const { oas3_1 } = require('@stoplight/spectral-formats'); -const { avoidMultipleTypes } = require('../functions'); -const { - schemas, -} = require('@ibm-cloud/openapi-ruleset-utilities/src/collections'); +import { avoidMultipleTypes } from '../functions/index.js'; +import { schemas } from '@ibm-cloud/openapi-ruleset-utilities/src/collections'; +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3_1 } = spectralFormats; -module.exports = { - description: - 'OpenAPI 3.1 documents should avoid multiple types in the schema "type" field.', - message: '{{error}}', - given: schemas, - severity: 'error', - formats: [oas3_1], - resolved: true, - then: { - function: avoidMultipleTypes, - }, +export const description = + 'OpenAPI 3.1 documents should avoid multiple types in the schema "type" field.'; +export const message = '{{error}}'; +export const given = schemas; +export const severity = 'error'; +export const formats = [oas3_1]; +export const resolved = true; +export const then = { + function: avoidMultipleTypes, }; diff --git a/packages/ruleset/src/rules/binary-schemas.js b/packages/ruleset/src/rules/binary-schemas.js index 09a01f24f..5faccbb0a 100644 --- a/packages/ruleset/src/rules/binary-schemas.js +++ b/packages/ruleset/src/rules/binary-schemas.js @@ -3,24 +3,21 @@ * SPDX-License-Identifier: Apache2.0 */ -const { - schemas, -} = require('@ibm-cloud/openapi-ruleset-utilities/src/collections'); -const { oas3 } = require('@stoplight/spectral-formats'); -const { binarySchemas } = require('../functions'); +import { schemas } from '@ibm-cloud/openapi-ruleset-utilities/src/collections'; +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import { binarySchemas } from '../functions/index.js'; // 1. Parameters should not contain binary (type: string, format: binary) values. // 2. JSON request bodies should not contain binary (type: string, format: binary) values. // 3. JSON response bodies should not contain binary (type: string, format: binary) values. -module.exports = { - description: - 'Checks that binary schemas are used only in the proper places within an API definition.', - message: '{{error}}', - formats: [oas3], - given: schemas, - severity: 'warn', - resolved: true, - then: { - function: binarySchemas, - }, +export const description = + 'Checks that binary schemas are used only in the proper places within an API definition.'; +export const message = '{{error}}'; +export const formats = [oas3]; +export const given = schemas; +export const severity = 'warn'; +export const resolved = true; +export const then = { + function: binarySchemas, }; diff --git a/packages/ruleset/src/rules/circular-refs.js b/packages/ruleset/src/rules/circular-refs.js index e742a1cfd..26a54031d 100644 --- a/packages/ruleset/src/rules/circular-refs.js +++ b/packages/ruleset/src/rules/circular-refs.js @@ -3,17 +3,17 @@ * SPDX-License-Identifier: Apache2.0 */ -const { oas3 } = require('@stoplight/spectral-formats'); -const { circularRefs } = require('../functions'); +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import { circularRefs } from '../functions/index.js'; -module.exports = { - description: 'API definition should not contain circular references.', - message: '{{error}}', - given: '$..$ref', - severity: 'warn', - formats: [oas3], - resolved: true, - then: { - function: circularRefs, - }, +export const description = + 'API definition should not contain circular references.'; +export const message = '{{error}}'; +export const given = '$..$ref'; +export const severity = 'warn'; +export const formats = [oas3]; +export const resolved = true; +export const then = { + function: circularRefs, }; diff --git a/packages/ruleset/src/rules/collection-array-property.js b/packages/ruleset/src/rules/collection-array-property.js index 92b6acd16..0f6b57cca 100644 --- a/packages/ruleset/src/rules/collection-array-property.js +++ b/packages/ruleset/src/rules/collection-array-property.js @@ -3,19 +3,18 @@ * SPDX-License-Identifier: Apache2.0 */ -const { oas3 } = require('@stoplight/spectral-formats'); -const { collectionArrayProperty } = require('../functions'); +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import { collectionArrayProperty } from '../functions/index.js'; -module.exports = { - description: - 'Collection list operation response schema should define array property whose name matches the final path segment of the operation path', - message: '{{error}}', - given: - '$.paths[*].get.responses[?(@property.match(/2\\d\\d/))].content[*].schema', - severity: 'warn', - formats: [oas3], - resolved: true, - then: { - function: collectionArrayProperty, - }, +export const description = + 'Collection list operation response schema should define array property whose name matches the final path segment of the operation path'; +export const message = '{{error}}'; +export const given = + '$.paths[*].get.responses[?(@property.match(/2\\d\\d/))].content[*].schema'; +export const severity = 'warn'; +export const formats = [oas3]; +export const resolved = true; +export const then = { + function: collectionArrayProperty, }; diff --git a/packages/ruleset/src/rules/consecutive-path-segments.js b/packages/ruleset/src/rules/consecutive-path-segments.js index dc27dc66f..88f22f0b0 100644 --- a/packages/ruleset/src/rules/consecutive-path-segments.js +++ b/packages/ruleset/src/rules/consecutive-path-segments.js @@ -3,21 +3,18 @@ * SPDX-License-Identifier: Apache2.0 */ -const { - paths, -} = require('@ibm-cloud/openapi-ruleset-utilities/src/collections'); -const { oas3 } = require('@stoplight/spectral-formats'); -const { consecutivePathSegments } = require('../functions'); +import { paths } from '@ibm-cloud/openapi-ruleset-utilities/src/collections'; +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import { consecutivePathSegments } from '../functions/index.js'; -module.exports = { - description: - 'Path strings should not contain two or more consecutive path parameter references', - message: '{{error}}', - formats: [oas3], - given: paths, - severity: 'error', - resolved: true, - then: { - function: consecutivePathSegments, - }, +export const description = + 'Path strings should not contain two or more consecutive path parameter references'; +export const message = '{{error}}'; +export const formats = [oas3]; +export const given = paths; +export const severity = 'error'; +export const resolved = true; +export const then = { + function: consecutivePathSegments, }; diff --git a/packages/ruleset/src/rules/content-contains-schema.js b/packages/ruleset/src/rules/content-contains-schema.js index f126eb384..96af59237 100644 --- a/packages/ruleset/src/rules/content-contains-schema.js +++ b/packages/ruleset/src/rules/content-contains-schema.js @@ -3,20 +3,19 @@ * SPDX-License-Identifier: Apache2.0 */ -const { oas3 } = require('@stoplight/spectral-formats'); -const { truthy } = require('@stoplight/spectral-functions'); +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import { truthy } from '@stoplight/spectral-functions'; -module.exports = { - description: 'Content entries must specify a schema', - formats: [oas3], - given: [ - '$.paths[*][post,put,patch].requestBody.content[*]', - '$.paths[*][get,post,put,patch,delete][parameters,responses][*].content[*]', - ], - severity: 'warn', - resolved: true, - then: { - field: 'schema', - function: truthy, - }, +export const description = 'Content entries must specify a schema'; +export const formats = [oas3]; +export const given = [ + '$.paths[*][post,put,patch].requestBody.content[*]', + '$.paths[*][get,post,put,patch,delete][parameters,responses][*].content[*]', +]; +export const severity = 'warn'; +export const resolved = true; +export const then = { + field: 'schema', + function: truthy, }; diff --git a/packages/ruleset/src/rules/content-type-header.js b/packages/ruleset/src/rules/content-type-header.js index 61a168a3f..a4f21732b 100644 --- a/packages/ruleset/src/rules/content-type-header.js +++ b/packages/ruleset/src/rules/content-type-header.js @@ -3,23 +3,20 @@ * SPDX-License-Identifier: Apache2.0 */ -const { - parameters, -} = require('@ibm-cloud/openapi-ruleset-utilities/src/collections'); -const { oas3 } = require('@stoplight/spectral-formats'); -const { disallowedHeaderParameter } = require('../functions'); +import { parameters } from '@ibm-cloud/openapi-ruleset-utilities/src/collections'; +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import { disallowedHeaderParameter } from '../functions/index.js'; -module.exports = { - description: - 'Operations should not explicitly define the Content-Type header parameter', - message: '{{description}}', - formats: [oas3], - given: parameters, - severity: 'warn', - then: { - function: disallowedHeaderParameter, - functionOptions: { - headerName: 'Content-Type', - }, +export const description = + 'Operations should not explicitly define the Content-Type header parameter'; +export const message = '{{description}}'; +export const formats = [oas3]; +export const given = parameters; +export const severity = 'warn'; +export const then = { + function: disallowedHeaderParameter, + functionOptions: { + headerName: 'Content-Type', }, }; diff --git a/packages/ruleset/src/rules/content-type-is-specific.js b/packages/ruleset/src/rules/content-type-is-specific.js index 878097db0..80e646a8d 100644 --- a/packages/ruleset/src/rules/content-type-is-specific.js +++ b/packages/ruleset/src/rules/content-type-is-specific.js @@ -3,20 +3,20 @@ * SPDX-License-Identifier: Apache2.0 */ -const { oas3 } = require('@stoplight/spectral-formats'); -const { falsy } = require('@stoplight/spectral-functions'); +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import { falsy } from '@stoplight/spectral-functions'; -module.exports = { - description: '*/* should only be used when all content types are supported', - formats: [oas3], - severity: 'warn', - resolved: true, - given: [ - '$.paths[*][*][parameters,responses][*].content', - '$.paths[*][*][requestBody].content', - ], - then: { - field: '*/*', - function: falsy, - }, +export const description = + '*/* should only be used when all content types are supported'; +export const formats = [oas3]; +export const severity = 'warn'; +export const resolved = true; +export const given = [ + '$.paths[*][*][parameters,responses][*].content', + '$.paths[*][*][requestBody].content', +]; +export const then = { + field: '*/*', + function: falsy, }; diff --git a/packages/ruleset/src/rules/delete-body.js b/packages/ruleset/src/rules/delete-body.js index e4d847994..909aa72c4 100644 --- a/packages/ruleset/src/rules/delete-body.js +++ b/packages/ruleset/src/rules/delete-body.js @@ -3,20 +3,18 @@ * SPDX-License-Identifier: Apache2.0 */ -const { - operations, -} = require('@ibm-cloud/openapi-ruleset-utilities/src/collections'); -const { oas3 } = require('@stoplight/spectral-formats'); -const { deleteBody } = require('../functions'); +import { operations } from '@ibm-cloud/openapi-ruleset-utilities/src/collections'; +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import { deleteBody } from '../functions/index.js'; -module.exports = { - description: 'Delete operations should not contain a requestBody.', - message: '{{error}}', - severity: 'off', - formats: [oas3], - resolved: true, - given: operations, - then: { - function: deleteBody, - }, +export const description = + 'Delete operations should not contain a requestBody.'; +export const message = '{{error}}'; +export const severity = 'off'; +export const formats = [oas3]; +export const resolved = true; +export const given = operations; +export const then = { + function: deleteBody, }; diff --git a/packages/ruleset/src/rules/discriminator-property-exists.js b/packages/ruleset/src/rules/discriminator-property-exists.js index e1f392e49..3550d2def 100644 --- a/packages/ruleset/src/rules/discriminator-property-exists.js +++ b/packages/ruleset/src/rules/discriminator-property-exists.js @@ -3,20 +3,18 @@ * SPDX-License-Identifier: Apache2.0 */ -const { - schemas, -} = require('@ibm-cloud/openapi-ruleset-utilities/src/collections'); -const { oas3 } = require('@stoplight/spectral-formats'); -const { discriminatorPropertyExists } = require('../functions'); +import { schemas } from '@ibm-cloud/openapi-ruleset-utilities/src/collections'; +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import { discriminatorPropertyExists } from '../functions/index.js'; -module.exports = { - description: 'The discriminator property name must be defined in this schema', - message: '{{error}}', - given: schemas, - severity: 'error', - formats: [oas3], - resolved: true, - then: { - function: discriminatorPropertyExists, - }, +export const description = + 'The discriminator property name must be defined in this schema'; +export const message = '{{error}}'; +export const given = schemas; +export const severity = 'error'; +export const formats = [oas3]; +export const resolved = true; +export const then = { + function: discriminatorPropertyExists, }; diff --git a/packages/ruleset/src/rules/duplicate-path-parameter.js b/packages/ruleset/src/rules/duplicate-path-parameter.js index 024cf87e5..dcd51fd40 100644 --- a/packages/ruleset/src/rules/duplicate-path-parameter.js +++ b/packages/ruleset/src/rules/duplicate-path-parameter.js @@ -3,19 +3,17 @@ * SPDX-License-Identifier: Apache2.0 */ -const { - paths, -} = require('@ibm-cloud/openapi-ruleset-utilities/src/collections'); -const { oas3 } = require('@stoplight/spectral-formats'); -const { duplicatePathParameter } = require('../functions'); +import { paths } from '@ibm-cloud/openapi-ruleset-utilities/src/collections'; +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import { duplicatePathParameter } from '../functions/index.js'; -module.exports = { - description: 'Common path parameters should be defined on the path object.', - given: paths, - severity: 'warn', - formats: [oas3], - resolved: true, - then: { - function: duplicatePathParameter, - }, +export const description = + 'Common path parameters should be defined on the path object.'; +export const given = paths; +export const severity = 'warn'; +export const formats = [oas3]; +export const resolved = true; +export const then = { + function: duplicatePathParameter, }; diff --git a/packages/ruleset/src/rules/enum-casing-convention.js b/packages/ruleset/src/rules/enum-casing-convention.js index ca7cdc9ff..ed603117f 100644 --- a/packages/ruleset/src/rules/enum-casing-convention.js +++ b/packages/ruleset/src/rules/enum-casing-convention.js @@ -3,22 +3,20 @@ * SPDX-License-Identifier: Apache2.0 */ -const { - schemas, -} = require('@ibm-cloud/openapi-ruleset-utilities/src/collections'); -const { oas3 } = require('@stoplight/spectral-formats'); -const { enumCasingConvention } = require('../functions'); +import { schemas } from '@ibm-cloud/openapi-ruleset-utilities/src/collections'; +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import { enumCasingConvention } from '../functions/index.js'; -module.exports = { - description: 'Enum values must follow a specified case convention', - message: '{{error}}', - formats: [oas3], - given: schemas, - severity: 'error', - then: { - function: enumCasingConvention, - functionOptions: { - type: 'snake', - }, +export const description = + 'Enum values must follow a specified case convention'; +export const message = '{{error}}'; +export const formats = [oas3]; +export const given = schemas; +export const severity = 'error'; +export const then = { + function: enumCasingConvention, + functionOptions: { + type: 'snake', }, }; diff --git a/packages/ruleset/src/rules/error-content-type-is-json.js b/packages/ruleset/src/rules/error-content-type-is-json.js index 3a0d430dc..2329b8953 100644 --- a/packages/ruleset/src/rules/error-content-type-is-json.js +++ b/packages/ruleset/src/rules/error-content-type-is-json.js @@ -3,19 +3,18 @@ * SPDX-License-Identifier: Apache2.0 */ -const { oas3 } = require('@stoplight/spectral-formats'); -const { truthy } = require('@stoplight/spectral-functions'); +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import { truthy } from '@stoplight/spectral-functions'; -module.exports = { - description: 'error response should support application/json', - formats: [oas3], - severity: 'warn', - resolved: true, - given: [ - '$.paths[*][*].responses[?(@property >= 400 && @property < 600)].content', - ], - then: { - field: 'application/json', - function: truthy, - }, +export const description = 'error response should support application/json'; +export const formats = [oas3]; +export const severity = 'warn'; +export const resolved = true; +export const given = [ + '$.paths[*][*].responses[?(@property >= 400 && @property < 600)].content', +]; +export const then = { + field: 'application/json', + function: truthy, }; diff --git a/packages/ruleset/src/rules/error-response-schemas.js b/packages/ruleset/src/rules/error-response-schemas.js index b3dbb665d..e287fc93a 100644 --- a/packages/ruleset/src/rules/error-response-schemas.js +++ b/packages/ruleset/src/rules/error-response-schemas.js @@ -3,19 +3,18 @@ * SPDX-License-Identifier: Apache2.0 */ -const { oas3 } = require('@stoplight/spectral-formats'); -const { errorResponseSchemas } = require('../functions'); +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import { errorResponseSchemas } from '../functions/index.js'; -module.exports = { - description: - 'Error response schemas should comply with API Handbook guidance', - message: '{{error}}', - given: - '$.paths[*][*].responses[?(@property >= 400 && @property < 600)].content[*].schema', - severity: 'warn', - formats: [oas3], - resolved: true, - then: { - function: errorResponseSchemas, - }, +export const description = + 'Error response schemas should comply with API Handbook guidance'; +export const message = '{{error}}'; +export const given = + '$.paths[*][*].responses[?(@property >= 400 && @property < 600)].content[*].schema'; +export const severity = 'warn'; +export const formats = [oas3]; +export const resolved = true; +export const then = { + function: errorResponseSchemas, }; diff --git a/packages/ruleset/src/rules/etag-header-exists.js b/packages/ruleset/src/rules/etag-header-exists.js index 654fdef8a..9993b1a63 100644 --- a/packages/ruleset/src/rules/etag-header-exists.js +++ b/packages/ruleset/src/rules/etag-header-exists.js @@ -3,21 +3,18 @@ * SPDX-License-Identifier: Apache2.0 */ -const { - paths, -} = require('@ibm-cloud/openapi-ruleset-utilities/src/collections'); -const { oas3 } = require('@stoplight/spectral-formats'); -const { etagHeaderExists } = require('../functions'); +import { paths } from '@ibm-cloud/openapi-ruleset-utilities/src/collections'; +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import { etagHeaderExists } from '../functions/index.js'; -module.exports = { - description: - 'ETag response header should be defined in GET operation for resources that support If-Match or If-None-Match header parameters', - message: '{{error}}', - given: paths, - severity: 'error', - formats: [oas3], - resolved: true, - then: { - function: etagHeaderExists, - }, +export const description = + 'ETag response header should be defined in GET operation for resources that support If-Match or If-None-Match header parameters'; +export const message = '{{error}}'; +export const given = paths; +export const severity = 'error'; +export const formats = [oas3]; +export const resolved = true; +export const then = { + function: etagHeaderExists, }; diff --git a/packages/ruleset/src/rules/examples-name-contains-space.js b/packages/ruleset/src/rules/examples-name-contains-space.js index 7a58397ab..330d60ac0 100644 --- a/packages/ruleset/src/rules/examples-name-contains-space.js +++ b/packages/ruleset/src/rules/examples-name-contains-space.js @@ -3,20 +3,19 @@ * SPDX-License-Identifier: Apache2.0 */ -const { pattern } = require('@stoplight/spectral-functions'); -const { oas3 } = require('@stoplight/spectral-formats'); +import { pattern } from '@stoplight/spectral-functions'; +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; -module.exports = { - description: 'Examples name should not contain space', - message: '{{description}}', - severity: 'warn', - resolved: false, - formats: [oas3], - given: '$.paths[*][*].responses[*][*][*].examples[*]~', - then: { - function: pattern, - functionOptions: { - notMatch: '^(.*\\s+.*)+$', - }, +export const description = 'Examples name should not contain space'; +export const message = '{{description}}'; +export const severity = 'warn'; +export const resolved = false; +export const formats = [oas3]; +export const given = '$.paths[*][*].responses[*][*][*].examples[*]~'; +export const then = { + function: pattern, + functionOptions: { + notMatch: '^(.*\\s+.*)+$', }, }; diff --git a/packages/ruleset/src/rules/ibm-sdk-operations.js b/packages/ruleset/src/rules/ibm-sdk-operations.js index 175a39716..d4b90a97a 100644 --- a/packages/ruleset/src/rules/ibm-sdk-operations.js +++ b/packages/ruleset/src/rules/ibm-sdk-operations.js @@ -3,22 +3,22 @@ * SPDX-License-Identifier: Apache2.0 */ -const { oas3 } = require('@stoplight/spectral-formats'); -const { schema } = require('@stoplight/spectral-functions'); +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import { schema } from '@stoplight/spectral-functions'; -module.exports = { - description: 'Ensures that x-sdk-operations fields are properly structured', - message: '{{error}}', - given: '$.', - severity: 'warn', - formats: [oas3], - resolved: true, - then: { - function: schema, - functionOptions: { - schema: { - $ref: '../schemas/x-sdk-operations.json', - }, +export const description = + 'Ensures that x-sdk-operations fields are properly structured'; +export const message = '{{error}}'; +export const given = '$.'; +export const severity = 'warn'; +export const formats = [oas3]; +export const resolved = true; +export const then = { + function: schema, + functionOptions: { + schema: { + $ref: '../schemas/x-sdk-operations.json', }, }, }; diff --git a/packages/ruleset/src/rules/if-modified-since-header.js b/packages/ruleset/src/rules/if-modified-since-header.js index cf655b3e3..ae9bd5f5e 100644 --- a/packages/ruleset/src/rules/if-modified-since-header.js +++ b/packages/ruleset/src/rules/if-modified-since-header.js @@ -3,24 +3,21 @@ * SPDX-License-Identifier: Apache2.0 */ -const { - parameters, -} = require('@ibm-cloud/openapi-ruleset-utilities/src/collections'); -const { oas3 } = require('@stoplight/spectral-formats'); -const { disallowedHeaderParameter } = require('../functions'); +import { parameters } from '@ibm-cloud/openapi-ruleset-utilities/src/collections'; +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import { disallowedHeaderParameter } from '../functions/index.js'; -module.exports = { - description: - 'Operations should support the If-None-Match header parameter instead of If-Modified-Since', - message: '{{description}}', - formats: [oas3], - given: parameters, - severity: 'warn', - resolved: true, - then: { - function: disallowedHeaderParameter, - functionOptions: { - headerName: 'If-Modified-Since', - }, +export const description = + 'Operations should support the If-None-Match header parameter instead of If-Modified-Since'; +export const message = '{{description}}'; +export const formats = [oas3]; +export const given = parameters; +export const severity = 'warn'; +export const resolved = true; +export const then = { + function: disallowedHeaderParameter, + functionOptions: { + headerName: 'If-Modified-Since', }, }; diff --git a/packages/ruleset/src/rules/if-unmodified-since-header.js b/packages/ruleset/src/rules/if-unmodified-since-header.js index f4e0e98c3..6997c8c55 100644 --- a/packages/ruleset/src/rules/if-unmodified-since-header.js +++ b/packages/ruleset/src/rules/if-unmodified-since-header.js @@ -3,24 +3,21 @@ * SPDX-License-Identifier: Apache2.0 */ -const { - parameters, -} = require('@ibm-cloud/openapi-ruleset-utilities/src/collections'); -const { oas3 } = require('@stoplight/spectral-formats'); -const { disallowedHeaderParameter } = require('../functions'); +import { parameters } from '@ibm-cloud/openapi-ruleset-utilities/src/collections'; +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import { disallowedHeaderParameter } from '../functions/index.js'; -module.exports = { - description: - 'Operations should support the If-Match header parameter instead of If-Unmodified-Since', - message: '{{description}}', - formats: [oas3], - given: parameters, - severity: 'warn', - resolved: true, - then: { - function: disallowedHeaderParameter, - functionOptions: { - headerName: 'If-Unmodified-Since', - }, +export const description = + 'Operations should support the If-Match header parameter instead of If-Unmodified-Since'; +export const message = '{{description}}'; +export const formats = [oas3]; +export const given = parameters; +export const severity = 'warn'; +export const resolved = true; +export const then = { + function: disallowedHeaderParameter, + functionOptions: { + headerName: 'If-Unmodified-Since', }, }; diff --git a/packages/ruleset/src/rules/index.js b/packages/ruleset/src/rules/index.js index abbca580f..22f332c17 100644 --- a/packages/ruleset/src/rules/index.js +++ b/packages/ruleset/src/rules/index.js @@ -3,97 +3,290 @@ * SPDX-License-Identifier: Apache2.0 */ -module.exports = { - acceptAndReturnModels: require('./accept-and-return-models'), - acceptHeader: require('./accept-header'), - anchoredPatterns: require('./anchored-patterns'), - apiSymmetry: require('./api-symmetry'), - arrayAttributes: require('./array-attributes'), - arrayOfArrays: require('./array-of-arrays'), - arrayResponses: require('./array-responses'), - authorizationHeader: require('./authorization-header'), - avoidMultipleTypes: require('./avoid-multiple-types'), - binarySchemas: require('./binary-schemas'), - circularRefs: require('./circular-refs'), - collectionArrayProperty: require('./collection-array-property'), - consecutivePathSegments: require('./consecutive-path-segments'), - contentContainsSchema: require('./content-contains-schema'), - contentTypeHeader: require('./content-type-header'), - contentTypeIsSpecific: require('./content-type-is-specific'), - deleteBody: require('./delete-body'), - discriminatorPropertyExists: require('./discriminator-property-exists'), - duplicatePathParameter: require('./duplicate-path-parameter'), - etagHeaderExists: require('./etag-header-exists'), - enumCasingConvention: require('./enum-casing-convention'), - errorContentTypeIsJson: require('./error-content-type-is-json'), - errorResponseSchemas: require('./error-response-schemas'), - examplesNameContainsSpace: require('./examples-name-contains-space'), - ibmSdkOperations: require('./ibm-sdk-operations'), - ifModifiedSinceHeader: require('./if-modified-since-header'), - ifUnmodifiedSinceHeader: require('./if-unmodified-since-header'), - inlineSchemas: require('./inline-schemas'), - integerAttributes: require('./integer-attributes'), - majorVersionInPath: require('./major-version-in-path'), - mergePatchProperties: require('./merge-patch-properties'), - noAmbiguousPaths: require('./no-ambiguous-paths'), - noNullableProperties: require('./no-nullable-properties'), - noOperationRequestBody: require('./no-operation-requestbody'), - noRefInExample: require('./no-ref-in-example'), - noSuperfluousAllOf: require('./no-superfluous-allof'), - noUnsupportedKeywords: require('./no-unsupported-keywords'), - operationIdCasingConvention: require('./operationid-casing-convention'), - operationIdNamingConvention: require('./operationid-naming-convention'), - operationResponses: require('./operation-responses'), - operationSummaryExists: require('./operation-summary-exists'), - operationSummaryLength: require('./operation-summary-length'), - optionalRequestBody: require('./optional-request-body'), - optionalRequestBodyDeprecated: require('./optional-request-body-deprecated'), - paginationStyle: require('./pagination-style'), - parameterCasingConvention: require('./parameter-casing-convention'), - parameterDefault: require('./parameter-default'), - parameterDescriptionExists: require('./parameter-description-exists'), - parameterOrder: require('./parameter-order'), - parameterSchemaOrContentExists: require('./parameter-schema-or-content-exists'), - patchRequestContentType: require('./patch-request-content-type'), - pathParameterNotCRN: require('./path-parameter-not-crn'), - pathSegmentCasingConvention: require('./path-segment-casing-convention'), - patternProperties: require('./pattern-properties'), - preconditionHeader: require('./precondition-header'), - preferTokenPagination: require('./prefer-token-pagination'), - propertyAttributes: require('./property-attributes'), - propertyCasingConvention: require('./property-casing-convention'), - propertyConsistentNameAndType: require('./property-consistent-name-and-type'), - propertyDescriptionExists: require('./property-description-exists'), - propertyNameCollision: require('./property-name-collision'), - redirectResponseBody: require('./redirect-response-body'), - refPattern: require('./ref-pattern'), - refSiblingDuplicateDescription: require('./ref-sibling-duplicate-description'), - requestAndResponseContent: require('./request-and-response-content'), - requestBodyIsObject: require('./requestbody-is-object'), - requestBodyName: require('./requestbody-name'), - requiredArrayPropertiesInResponse: require('./required-array-properties-in-response'), - requiredEnumPropertiesInResponse: require('./required-enum-properties-in-response'), - requiredPropertyMissing: require('./required-property-missing'), - resourceResponseConsistency: require('./resource-response-consistency'), - responseExampleExists: require('./response-example-exists'), - responseStatusCodes: require('./response-status-codes'), - schemaCasingConvention: require('./schema-casing-convention'), - schemaDescriptionExists: require('./schema-description-exists'), - schemaKeywords: require('./schema-keywords'), - schemaNamingConvention: require('./schema-naming-convention'), - schemaTypeExists: require('./schema-type-exists'), - schemaTypeFormat: require('./schema-type-format'), - securitySchemes: require('./securityschemes'), - securitySchemeAttributes: require('./securityscheme-attributes'), - serverVariableDefaultValue: require('./server-variable-default-value'), - stringAttributes: require('./string-attributes'), - summarySentenceStyle: require('./summary-sentence-style'), - typedEnum: require('./typed-enum'), - unevaluatedProperties: require('./unevaluated-properties'), - unusedTags: require('./unused-tags'), - uniqueParameterRequestPropertyNames: require('./unique-parameter-request-property-names'), - useDateBasedFormat: require('./use-date-based-format'), - validPathSegments: require('./valid-path-segments'), - validSchemaExample: require('./valid-schema-example'), - wellDefinedDictionaries: require('./well-defined-dictionaries'), +import * as acceptAndReturnModelsModule from './accept-and-return-models.js'; +import * as acceptHeaderModule from './accept-header.js'; +import * as anchoredPatternsModule from './anchored-patterns.js'; +import * as apiSymmetryModule from './api-symmetry.js'; +import * as arrayAttributesModule from './array-attributes.js'; +import * as arrayOfArraysModule from './array-of-arrays.js'; +import * as arrayResponsesModule from './array-responses.js'; +import * as authorizationHeaderModule from './authorization-header.js'; +import * as avoidMultipleTypesModule from './avoid-multiple-types.js'; +import * as binarySchemasModule from './binary-schemas.js'; +import * as circularRefsModule from './circular-refs.js'; +import * as collectionArrayPropertyModule from './collection-array-property.js'; +import * as consecutivePathSegmentsModule from './consecutive-path-segments.js'; +import * as contentContainsSchemaModule from './content-contains-schema.js'; +import * as contentTypeHeaderModule from './content-type-header.js'; +import * as contentTypeIsSpecificModule from './content-type-is-specific.js'; +import * as deleteBodyModule from './delete-body.js'; +import * as discriminatorPropertyExistsModule from './discriminator-property-exists.js'; +import * as duplicatePathParameterModule from './duplicate-path-parameter.js'; +import * as etagHeaderExistsModule from './etag-header-exists.js'; +import * as enumCasingConventionModule from './enum-casing-convention.js'; +import * as errorContentTypeIsJsonModule from './error-content-type-is-json.js'; +import * as errorResponseSchemasModule from './error-response-schemas.js'; +import * as examplesNameContainsSpaceModule from './examples-name-contains-space.js'; +import * as ibmSdkOperationsModule from './ibm-sdk-operations.js'; +import * as ifModifiedSinceHeaderModule from './if-modified-since-header.js'; +import * as ifUnmodifiedSinceHeaderModule from './if-unmodified-since-header.js'; +import * as inlineSchemasModule from './inline-schemas.js'; +import * as integerAttributesModule from './integer-attributes.js'; +import * as majorVersionInPathModule from './major-version-in-path.js'; +import * as mergePatchPropertiesModule from './merge-patch-properties.js'; +import * as noAmbiguousPathsModule from './no-ambiguous-paths.js'; +import * as noNullablePropertiesModule from './no-nullable-properties.js'; +import * as noOperationRequestBodyModule from './no-operation-requestbody.js'; +import * as noRefInExampleModule from './no-ref-in-example.js'; +import * as noSuperfluousAllOfModule from './no-superfluous-allof.js'; +import * as noUnsupportedKeywordsModule from './no-unsupported-keywords.js'; +import * as operationIdCasingConventionModule from './operationid-casing-convention.js'; +import * as operationIdNamingConventionModule from './operationid-naming-convention.js'; +import * as operationResponsesModule from './operation-responses.js'; +import * as operationSummaryExistsModule from './operation-summary-exists.js'; +import * as operationSummaryLengthModule from './operation-summary-length.js'; +import * as optionalRequestBodyModule from './optional-request-body.js'; +import * as optionalRequestBodyDeprecatedModule from './optional-request-body-deprecated.js'; +import * as paginationStyleModule from './pagination-style.js'; +import * as parameterCasingConventionModule from './parameter-casing-convention.js'; +import * as parameterDefaultModule from './parameter-default.js'; +import * as parameterDescriptionExistsModule from './parameter-description-exists.js'; +import * as parameterOrderModule from './parameter-order.js'; +import * as parameterSchemaOrContentExistsModule from './parameter-schema-or-content-exists.js'; +import * as patchRequestContentTypeModule from './patch-request-content-type.js'; +import * as pathParameterNotCRNModule from './path-parameter-not-crn.js'; +import * as pathSegmentCasingConventionModule from './path-segment-casing-convention.js'; +import * as patternPropertiesModule from './pattern-properties.js'; +import * as preconditionHeaderModule from './precondition-header.js'; +import * as preferTokenPaginationModule from './prefer-token-pagination.js'; +import * as propertyAttributesModule from './property-attributes.js'; +import * as propertyCasingConventionModule from './property-casing-convention.js'; +import * as propertyConsistentNameAndTypeModule from './property-consistent-name-and-type.js'; +import * as propertyDescriptionExistsModule from './property-description-exists.js'; +import * as propertyNameCollisionModule from './property-name-collision.js'; +import * as redirectResponseBodyModule from './redirect-response-body.js'; +import * as refPatternModule from './ref-pattern.js'; +import * as refSiblingDuplicateDescriptionModule from './ref-sibling-duplicate-description.js'; +import * as requestAndResponseContentModule from './request-and-response-content.js'; +import * as requestBodyIsObjectModule from './requestbody-is-object.js'; +import * as requestBodyNameModule from './requestbody-name.js'; +import * as requiredArrayPropertiesInResponseModule from './required-array-properties-in-response.js'; +import * as requiredEnumPropertiesInResponseModule from './required-enum-properties-in-response.js'; +import * as requiredPropertyMissingModule from './required-property-missing.js'; +import * as resourceResponseConsistencyModule from './resource-response-consistency.js'; +import * as responseExampleExistsModule from './response-example-exists.js'; +import * as responseStatusCodesModule from './response-status-codes.js'; +import * as schemaCasingConventionModule from './schema-casing-convention.js'; +import * as schemaDescriptionExistsModule from './schema-description-exists.js'; +import * as schemaKeywordsModule from './schema-keywords.js'; +import * as schemaNamingConventionModule from './schema-naming-convention.js'; +import * as schemaTypeExistsModule from './schema-type-exists.js'; +import * as schemaTypeFormatModule from './schema-type-format.js'; +import * as securitySchemesModule from './securityschemes.js'; +import * as securitySchemeAttributesModule from './securityscheme-attributes.js'; +import * as serverVariableDefaultValueModule from './server-variable-default-value.js'; +import * as stringAttributesModule from './string-attributes.js'; +import * as summarySentenceStyleModule from './summary-sentence-style.js'; +import typedEnumDefault from './typed-enum.js'; +import * as unevaluatedPropertiesModule from './unevaluated-properties.js'; +import * as unusedTagsModule from './unused-tags.js'; +import * as uniqueParameterRequestPropertyNamesModule from './unique-parameter-request-property-names.js'; +import * as useDateBasedFormatModule from './use-date-based-format.js'; +import * as validPathSegmentsModule from './valid-path-segments.js'; +import * as validSchemaExampleModule from './valid-schema-example.js'; +import * as wellDefinedDictionariesModule from './well-defined-dictionaries.js'; + +export const acceptAndReturnModels = acceptAndReturnModelsModule; +export const acceptHeader = acceptHeaderModule; +export const anchoredPatterns = anchoredPatternsModule; +export const apiSymmetry = apiSymmetryModule; +export const arrayAttributes = arrayAttributesModule; +export const arrayOfArrays = arrayOfArraysModule; +export const arrayResponses = arrayResponsesModule; +export const authorizationHeader = authorizationHeaderModule; +export const avoidMultipleTypes = avoidMultipleTypesModule; +export const binarySchemas = binarySchemasModule; +export const circularRefs = circularRefsModule; +export const collectionArrayProperty = collectionArrayPropertyModule; +export const consecutivePathSegments = consecutivePathSegmentsModule; +export const contentContainsSchema = contentContainsSchemaModule; +export const contentTypeHeader = contentTypeHeaderModule; +export const contentTypeIsSpecific = contentTypeIsSpecificModule; +export const deleteBody = deleteBodyModule; +export const discriminatorPropertyExists = discriminatorPropertyExistsModule; +export const duplicatePathParameter = duplicatePathParameterModule; +export const etagHeaderExists = etagHeaderExistsModule; +export const enumCasingConvention = enumCasingConventionModule; +export const errorContentTypeIsJson = errorContentTypeIsJsonModule; +export const errorResponseSchemas = errorResponseSchemasModule; +export const examplesNameContainsSpace = examplesNameContainsSpaceModule; +export const ibmSdkOperations = ibmSdkOperationsModule; +export const ifModifiedSinceHeader = ifModifiedSinceHeaderModule; +export const ifUnmodifiedSinceHeader = ifUnmodifiedSinceHeaderModule; +export const inlineSchemas = inlineSchemasModule; +export const integerAttributes = integerAttributesModule; +export const majorVersionInPath = majorVersionInPathModule; +export const mergePatchProperties = mergePatchPropertiesModule; +export const noAmbiguousPaths = noAmbiguousPathsModule; +export const noNullableProperties = noNullablePropertiesModule; +export const noOperationRequestBody = noOperationRequestBodyModule; +export const noRefInExample = noRefInExampleModule; +export const noSuperfluousAllOf = noSuperfluousAllOfModule; +export const noUnsupportedKeywords = noUnsupportedKeywordsModule; +export const operationIdCasingConvention = operationIdCasingConventionModule; +export const operationIdNamingConvention = operationIdNamingConventionModule; +export const operationResponses = operationResponsesModule; +export const operationSummaryExists = operationSummaryExistsModule; +export const operationSummaryLength = operationSummaryLengthModule; +export const optionalRequestBody = optionalRequestBodyModule; +export const optionalRequestBodyDeprecated = + optionalRequestBodyDeprecatedModule; +export const paginationStyle = paginationStyleModule; +export const parameterCasingConvention = parameterCasingConventionModule; +export const parameterDefault = parameterDefaultModule; +export const parameterDescriptionExists = parameterDescriptionExistsModule; +export const parameterOrder = parameterOrderModule; +export const parameterSchemaOrContentExists = + parameterSchemaOrContentExistsModule; +export const patchRequestContentType = patchRequestContentTypeModule; +export const pathParameterNotCRN = pathParameterNotCRNModule; +export const pathSegmentCasingConvention = pathSegmentCasingConventionModule; +export const patternProperties = patternPropertiesModule; +export const preconditionHeader = preconditionHeaderModule; +export const preferTokenPagination = preferTokenPaginationModule; +export const propertyAttributes = propertyAttributesModule; +export const propertyCasingConvention = propertyCasingConventionModule; +export const propertyConsistentNameAndType = + propertyConsistentNameAndTypeModule; +export const propertyDescriptionExists = propertyDescriptionExistsModule; +export const propertyNameCollision = propertyNameCollisionModule; +export const redirectResponseBody = redirectResponseBodyModule; +export const refPattern = refPatternModule; +export const refSiblingDuplicateDescription = + refSiblingDuplicateDescriptionModule; +export const requestAndResponseContent = requestAndResponseContentModule; +export const requestBodyIsObject = requestBodyIsObjectModule; +export const requestBodyName = requestBodyNameModule; +export const requiredArrayPropertiesInResponse = + requiredArrayPropertiesInResponseModule; +export const requiredEnumPropertiesInResponse = + requiredEnumPropertiesInResponseModule; +export const requiredPropertyMissing = requiredPropertyMissingModule; +export const resourceResponseConsistency = resourceResponseConsistencyModule; +export const responseExampleExists = responseExampleExistsModule; +export const responseStatusCodes = responseStatusCodesModule; +export const schemaCasingConvention = schemaCasingConventionModule; +export const schemaDescriptionExists = schemaDescriptionExistsModule; +export const schemaKeywords = schemaKeywordsModule; +export const schemaNamingConvention = schemaNamingConventionModule; +export const schemaTypeExists = schemaTypeExistsModule; +export const schemaTypeFormat = schemaTypeFormatModule; +export const securitySchemes = securitySchemesModule; +export const securitySchemeAttributes = securitySchemeAttributesModule; +export const serverVariableDefaultValue = serverVariableDefaultValueModule; +export const stringAttributes = stringAttributesModule; +export const summarySentenceStyle = summarySentenceStyleModule; +export const typedEnum = typedEnumDefault; +export const unevaluatedProperties = unevaluatedPropertiesModule; +export const unusedTags = unusedTagsModule; +export const uniqueParameterRequestPropertyNames = + uniqueParameterRequestPropertyNamesModule; +export const useDateBasedFormat = useDateBasedFormatModule; +export const validPathSegments = validPathSegmentsModule; +export const validSchemaExample = validSchemaExampleModule; +export const wellDefinedDictionaries = wellDefinedDictionariesModule; + +export default { + acceptAndReturnModels, + acceptHeader, + anchoredPatterns, + apiSymmetry, + arrayAttributes, + arrayOfArrays, + arrayResponses, + authorizationHeader, + avoidMultipleTypes, + binarySchemas, + circularRefs, + collectionArrayProperty, + consecutivePathSegments, + contentContainsSchema, + contentTypeHeader, + contentTypeIsSpecific, + deleteBody, + discriminatorPropertyExists, + duplicatePathParameter, + etagHeaderExists, + enumCasingConvention, + errorContentTypeIsJson, + errorResponseSchemas, + examplesNameContainsSpace, + ibmSdkOperations, + ifModifiedSinceHeader, + ifUnmodifiedSinceHeader, + inlineSchemas, + integerAttributes, + majorVersionInPath, + mergePatchProperties, + noAmbiguousPaths, + noNullableProperties, + noOperationRequestBody, + noRefInExample, + noSuperfluousAllOf, + noUnsupportedKeywords, + operationIdCasingConvention, + operationIdNamingConvention, + operationResponses, + operationSummaryExists, + operationSummaryLength, + optionalRequestBody, + optionalRequestBodyDeprecated, + paginationStyle, + parameterCasingConvention, + parameterDefault, + parameterDescriptionExists, + parameterOrder, + parameterSchemaOrContentExists, + patchRequestContentType, + pathParameterNotCRN, + pathSegmentCasingConvention, + patternProperties, + preconditionHeader, + preferTokenPagination, + propertyAttributes, + propertyCasingConvention, + propertyConsistentNameAndType, + propertyDescriptionExists, + propertyNameCollision, + redirectResponseBody, + refPattern, + refSiblingDuplicateDescription, + requestAndResponseContent, + requestBodyIsObject, + requestBodyName, + requiredArrayPropertiesInResponse, + requiredEnumPropertiesInResponse, + requiredPropertyMissing, + resourceResponseConsistency, + responseExampleExists, + responseStatusCodes, + schemaCasingConvention, + schemaDescriptionExists, + schemaKeywords, + schemaNamingConvention, + schemaTypeExists, + schemaTypeFormat, + securitySchemes, + securitySchemeAttributes, + serverVariableDefaultValue, + stringAttributes, + summarySentenceStyle, + typedEnum, + unevaluatedProperties, + unusedTags, + uniqueParameterRequestPropertyNames, + useDateBasedFormat, + validPathSegments, + validSchemaExample, + wellDefinedDictionaries, }; diff --git a/packages/ruleset/src/rules/inline-schemas.js b/packages/ruleset/src/rules/inline-schemas.js index 392da88a7..f53cd699f 100644 --- a/packages/ruleset/src/rules/inline-schemas.js +++ b/packages/ruleset/src/rules/inline-schemas.js @@ -3,20 +3,18 @@ * SPDX-License-Identifier: Apache2.0 */ -const { - unresolvedSchemas, -} = require('@ibm-cloud/openapi-ruleset-utilities/src/collections'); -const { oas3 } = require('@stoplight/spectral-formats'); -const { inlineSchemas } = require('../functions'); +import { unresolvedSchemas } from '@ibm-cloud/openapi-ruleset-utilities/src/collections'; +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import { inlineSchemas } from '../functions/index.js'; -module.exports = { - description: 'Nested objects should be defined as a $ref to a named schema', - message: '{{error}}', - formats: [oas3], - given: unresolvedSchemas, - severity: 'warn', - resolved: false, - then: { - function: inlineSchemas, - }, +export const description = + 'Nested objects should be defined as a $ref to a named schema'; +export const message = '{{error}}'; +export const formats = [oas3]; +export const given = unresolvedSchemas; +export const severity = 'warn'; +export const resolved = false; +export const then = { + function: inlineSchemas, }; diff --git a/packages/ruleset/src/rules/integer-attributes.js b/packages/ruleset/src/rules/integer-attributes.js index 2dde421e2..960e294b3 100644 --- a/packages/ruleset/src/rules/integer-attributes.js +++ b/packages/ruleset/src/rules/integer-attributes.js @@ -3,20 +3,18 @@ * SPDX-License-Identifier: Apache2.0 */ -const { - schemas, -} = require('@ibm-cloud/openapi-ruleset-utilities/src/collections'); -const { oas3 } = require('@stoplight/spectral-formats'); -const { integerAttributes } = require('../functions'); +import { schemas } from '@ibm-cloud/openapi-ruleset-utilities/src/collections'; +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import { integerAttributes } from '../functions/index.js'; -module.exports = { - description: 'Integer schemas should have certain attributes defined', - message: '{{error}}', - severity: 'error', - formats: [oas3], - resolved: true, - given: schemas, - then: { - function: integerAttributes, - }, +export const description = + 'Integer schemas should have certain attributes defined'; +export const message = '{{error}}'; +export const severity = 'error'; +export const formats = [oas3]; +export const resolved = true; +export const given = schemas; +export const then = { + function: integerAttributes, }; diff --git a/packages/ruleset/src/rules/major-version-in-path.js b/packages/ruleset/src/rules/major-version-in-path.js index c43c81323..708a1714f 100644 --- a/packages/ruleset/src/rules/major-version-in-path.js +++ b/packages/ruleset/src/rules/major-version-in-path.js @@ -3,17 +3,16 @@ * SPDX-License-Identifier: Apache2.0 */ -const { oas3 } = require('@stoplight/spectral-formats'); -const { majorVersionInPath } = require('../functions'); +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import { majorVersionInPath } from '../functions/index.js'; -module.exports = { - description: - 'All paths must contain the API major version as a distinct path segment', - message: '{{error}}', - formats: [oas3], - given: '$', - severity: 'warn', - then: { - function: majorVersionInPath, - }, +export const description = + 'All paths must contain the API major version as a distinct path segment'; +export const message = '{{error}}'; +export const formats = [oas3]; +export const given = '$'; +export const severity = 'warn'; +export const then = { + function: majorVersionInPath, }; diff --git a/packages/ruleset/src/rules/merge-patch-properties.js b/packages/ruleset/src/rules/merge-patch-properties.js index 019caab87..1cc413fe3 100644 --- a/packages/ruleset/src/rules/merge-patch-properties.js +++ b/packages/ruleset/src/rules/merge-patch-properties.js @@ -3,21 +3,20 @@ * SPDX-License-Identifier: Apache2.0 */ -const { oas3 } = require('@stoplight/spectral-formats'); -const { mergePatchProperties } = require('../functions'); +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import { mergePatchProperties } from '../functions/index.js'; -module.exports = { - description: - 'A JSON merge-patch requestBody should have no required properties', - message: '{{description}}', - given: [ - // This expression should visit the request body schema for each "merge-patch" type operation. - '$.paths[*][patch].requestBody.content[?(@property.match(/^application\\/merge-patch\\+json(;.*)*/))].schema', - ], - severity: 'warn', - formats: [oas3], - resolved: true, - then: { - function: mergePatchProperties, - }, +export const description = + 'A JSON merge-patch requestBody should have no required properties'; +export const message = '{{description}}'; +export const given = [ + // This expression should visit the request body schema for each "merge-patch" type operation. + '$.paths[*][patch].requestBody.content[?(@property.match(/^application\\/merge-patch\\+json(;.*)*/))].schema', +]; +export const severity = 'warn'; +export const formats = [oas3]; +export const resolved = true; +export const then = { + function: mergePatchProperties, }; diff --git a/packages/ruleset/src/rules/no-ambiguous-paths.js b/packages/ruleset/src/rules/no-ambiguous-paths.js index 1ba26c9e2..b64160b79 100644 --- a/packages/ruleset/src/rules/no-ambiguous-paths.js +++ b/packages/ruleset/src/rules/no-ambiguous-paths.js @@ -3,17 +3,17 @@ * SPDX-License-Identifier: Apache2.0 */ -const { oas3 } = require('@stoplight/spectral-formats'); -const { noAmbiguousPaths } = require('../functions'); +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import { noAmbiguousPaths } from '../functions/index.js'; -module.exports = { - description: 'Avoid ambiguous path strings within an OpenAPI document', - message: '{{error}}', - severity: 'warn', - formats: [oas3], - resolved: true, - given: ['$.paths'], - then: { - function: noAmbiguousPaths, - }, +export const description = + 'Avoid ambiguous path strings within an OpenAPI document'; +export const message = '{{error}}'; +export const severity = 'warn'; +export const formats = [oas3]; +export const resolved = true; +export const given = ['$.paths']; +export const then = { + function: noAmbiguousPaths, }; diff --git a/packages/ruleset/src/rules/no-nullable-properties.js b/packages/ruleset/src/rules/no-nullable-properties.js index e16b12d33..d2bdbfbbc 100644 --- a/packages/ruleset/src/rules/no-nullable-properties.js +++ b/packages/ruleset/src/rules/no-nullable-properties.js @@ -3,21 +3,18 @@ * SPDX-License-Identifier: Apache2.0 */ -const { oas3 } = require('@stoplight/spectral-formats'); -const { - schemas, -} = require('@ibm-cloud/openapi-ruleset-utilities/src/collections'); -const { noNullableProperties } = require('../functions'); +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import { schemas } from '@ibm-cloud/openapi-ruleset-utilities/src/collections'; +import { noNullableProperties } from '../functions/index.js'; -module.exports = { - description: - 'Nullable properties should exist only in JSON merge-patch request bodies', - message: '{{error}}', - severity: 'warn', - formats: [oas3], - resolved: true, - given: schemas, - then: { - function: noNullableProperties, - }, +export const description = + 'Nullable properties should exist only in JSON merge-patch request bodies'; +export const message = '{{error}}'; +export const severity = 'warn'; +export const formats = [oas3]; +export const resolved = true; +export const given = schemas; +export const then = { + function: noNullableProperties, }; diff --git a/packages/ruleset/src/rules/no-operation-requestbody.js b/packages/ruleset/src/rules/no-operation-requestbody.js index b1bad6e74..ae4d5cf8d 100644 --- a/packages/ruleset/src/rules/no-operation-requestbody.js +++ b/packages/ruleset/src/rules/no-operation-requestbody.js @@ -3,24 +3,22 @@ * SPDX-License-Identifier: Apache2.0 */ -const { - operations, -} = require('@ibm-cloud/openapi-ruleset-utilities/src/collections'); -const { oas3 } = require('@stoplight/spectral-formats'); -const { noOperationRequestBody } = require('../functions'); +import { operations } from '@ibm-cloud/openapi-ruleset-utilities/src/collections'; +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import { noOperationRequestBody } from '../functions/index.js'; -module.exports = { - description: 'Certain operations should not contain a requestBody', - message: '{{error}}', - severity: 'warn', - formats: [oas3], - resolved: true, - given: operations, - then: { - function: noOperationRequestBody, - functionOptions: { - // HTTP methods that should NOT have a requestBody: - httpMethods: ['delete', 'get', 'head', 'options'], - }, +export const description = + 'Certain operations should not contain a requestBody'; +export const message = '{{error}}'; +export const severity = 'warn'; +export const formats = [oas3]; +export const resolved = true; +export const given = operations; +export const then = { + function: noOperationRequestBody, + functionOptions: { + // HTTP methods that should NOT have a requestBody: + httpMethods: ['delete', 'get', 'head', 'options'], }, }; diff --git a/packages/ruleset/src/rules/no-ref-in-example.js b/packages/ruleset/src/rules/no-ref-in-example.js index a4eab27dc..0346ce844 100644 --- a/packages/ruleset/src/rules/no-ref-in-example.js +++ b/packages/ruleset/src/rules/no-ref-in-example.js @@ -3,16 +3,16 @@ * SPDX-License-Identifier: Apache2.0 */ -const { oas3 } = require('@stoplight/spectral-formats'); -const { noRefInExample } = require('../functions'); -module.exports = { - description: 'The use of $ref is not valid within an example field', - message: '{{description}}', - given: ['$..example'], - severity: 'error', - formats: [oas3], - resolved: false, - then: { - function: noRefInExample, - }, +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import { noRefInExample } from '../functions/index.js'; +export const description = + 'The use of $ref is not valid within an example field'; +export const message = '{{description}}'; +export const given = ['$..example']; +export const severity = 'error'; +export const formats = [oas3]; +export const resolved = false; +export const then = { + function: noRefInExample, }; diff --git a/packages/ruleset/src/rules/no-superfluous-allof.js b/packages/ruleset/src/rules/no-superfluous-allof.js index 9e8f4ded5..0d37d0e8e 100644 --- a/packages/ruleset/src/rules/no-superfluous-allof.js +++ b/packages/ruleset/src/rules/no-superfluous-allof.js @@ -3,19 +3,17 @@ * SPDX-License-Identifier: Apache2.0 */ -const { - schemas, -} = require('@ibm-cloud/openapi-ruleset-utilities/src/collections'); -const { oas3 } = require('@stoplight/spectral-formats'); -const { noSuperfluousAllOf } = require('../functions'); +import { schemas } from '@ibm-cloud/openapi-ruleset-utilities/src/collections'; +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import { noSuperfluousAllOf } from '../functions/index.js'; -module.exports = { - description: 'Avoid schemas containing only a single-element allOf', - given: schemas, - severity: 'warn', - formats: [oas3], - resolved: true, - then: { - function: noSuperfluousAllOf, - }, +export const description = + 'Avoid schemas containing only a single-element allOf'; +export const given = schemas; +export const severity = 'warn'; +export const formats = [oas3]; +export const resolved = true; +export const then = { + function: noSuperfluousAllOf, }; diff --git a/packages/ruleset/src/rules/no-unsupported-keywords.js b/packages/ruleset/src/rules/no-unsupported-keywords.js index 6ecb0e78b..e4f022988 100644 --- a/packages/ruleset/src/rules/no-unsupported-keywords.js +++ b/packages/ruleset/src/rules/no-unsupported-keywords.js @@ -3,18 +3,17 @@ * SPDX-License-Identifier: Apache2.0 */ -const { oas3_1 } = require('@stoplight/spectral-formats'); -const { noUnsupportedKeywords } = require('../functions'); +import { noUnsupportedKeywords } from '../functions/index.js'; +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3_1 } = spectralFormats; -module.exports = { - description: - 'Verifies that unsupported OpenAPI 3.1 keywords are not used in the API document.', - message: '{{error}}', - given: ['$'], - severity: 'error', - formats: [oas3_1], - resolved: false, - then: { - function: noUnsupportedKeywords, - }, +export const description = + 'Verifies that unsupported OpenAPI 3.1 keywords are not used in the API document.'; +export const message = '{{error}}'; +export const given = ['$']; +export const severity = 'error'; +export const formats = [oas3_1]; +export const resolved = false; +export const then = { + function: noUnsupportedKeywords, }; diff --git a/packages/ruleset/src/rules/operation-responses.js b/packages/ruleset/src/rules/operation-responses.js index ac91d7d70..24ce58c38 100644 --- a/packages/ruleset/src/rules/operation-responses.js +++ b/packages/ruleset/src/rules/operation-responses.js @@ -3,21 +3,19 @@ * SPDX-License-Identifier: Apache2.0 */ -const { - operations, -} = require('@ibm-cloud/openapi-ruleset-utilities/src/collections'); -const { oas3_1 } = require('@stoplight/spectral-formats'); -const { truthy } = require('@stoplight/spectral-functions'); +import { operations } from '@ibm-cloud/openapi-ruleset-utilities/src/collections'; +import { truthy } from '@stoplight/spectral-functions'; +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3_1 } = spectralFormats; -module.exports = { - description: 'Verifies that each operation has a "responses" field', - message: 'Operations MUST have a "responses" field', - severity: 'error', - formats: [oas3_1], - resolved: true, - given: operations, - then: { - field: 'responses', - function: truthy, - }, +export const description = + 'Verifies that each operation has a "responses" field'; +export const message = 'Operations MUST have a "responses" field'; +export const severity = 'error'; +export const formats = [oas3_1]; +export const resolved = true; +export const given = operations; +export const then = { + field: 'responses', + function: truthy, }; diff --git a/packages/ruleset/src/rules/operation-summary-exists.js b/packages/ruleset/src/rules/operation-summary-exists.js index d8917230b..58bed63ae 100644 --- a/packages/ruleset/src/rules/operation-summary-exists.js +++ b/packages/ruleset/src/rules/operation-summary-exists.js @@ -3,19 +3,16 @@ * SPDX-License-Identifier: Apache2.0 */ -const { - operations, -} = require('@ibm-cloud/openapi-ruleset-utilities/src/collections'); -const { oas3 } = require('@stoplight/spectral-formats'); -const { operationSummaryExists } = require('../functions'); +import { operations } from '@ibm-cloud/openapi-ruleset-utilities/src/collections'; +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import { operationSummaryExists } from '../functions/index.js'; -module.exports = { - description: 'Operations must have a non-empty summary', - given: operations, - severity: 'warn', - formats: [oas3], - resolved: true, - then: { - function: operationSummaryExists, - }, +export const description = 'Operations must have a non-empty summary'; +export const given = operations; +export const severity = 'warn'; +export const formats = [oas3]; +export const resolved = true; +export const then = { + function: operationSummaryExists, }; diff --git a/packages/ruleset/src/rules/operation-summary-length.js b/packages/ruleset/src/rules/operation-summary-length.js index 2c534016a..0bc78bc22 100644 --- a/packages/ruleset/src/rules/operation-summary-length.js +++ b/packages/ruleset/src/rules/operation-summary-length.js @@ -3,19 +3,17 @@ * SPDX-License-Identifier: Apache2.0 */ -const { - operations, -} = require('@ibm-cloud/openapi-ruleset-utilities/src/collections'); -const { oas3 } = require('@stoplight/spectral-formats'); -const { operationSummaryLength } = require('../functions'); +import { operations } from '@ibm-cloud/openapi-ruleset-utilities/src/collections'; +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import { operationSummaryLength } from '../functions/index.js'; -module.exports = { - description: 'Operation summaries must be 80 characters or less in length', - given: operations.map(op => `${op}.summary`), - severity: 'error', - formats: [oas3], - resolved: true, - then: { - function: operationSummaryLength, - }, +export const description = + 'Operation summaries must be 80 characters or less in length'; +export const given = operations.map(op => `${op}.summary`); +export const severity = 'error'; +export const formats = [oas3]; +export const resolved = true; +export const then = { + function: operationSummaryLength, }; diff --git a/packages/ruleset/src/rules/operationid-casing-convention.js b/packages/ruleset/src/rules/operationid-casing-convention.js index 3593a605a..3a899daa3 100644 --- a/packages/ruleset/src/rules/operationid-casing-convention.js +++ b/packages/ruleset/src/rules/operationid-casing-convention.js @@ -3,22 +3,20 @@ * SPDX-License-Identifier: Apache2.0 */ -const { - operations, -} = require('@ibm-cloud/openapi-ruleset-utilities/src/collections'); -const { oas3 } = require('@stoplight/spectral-formats'); -const { operationIdCasingConvention } = require('../functions'); +import { operations } from '@ibm-cloud/openapi-ruleset-utilities/src/collections'; +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import { operationIdCasingConvention } from '../functions/index.js'; -module.exports = { - description: 'Operation ids must follow a specified case convention', - message: '{{error}}', - formats: [oas3], - given: operations, - severity: 'warn', - then: { - function: operationIdCasingConvention, - functionOptions: { - type: 'snake', - }, +export const description = + 'Operation ids must follow a specified case convention'; +export const message = '{{error}}'; +export const formats = [oas3]; +export const given = operations; +export const severity = 'warn'; +export const then = { + function: operationIdCasingConvention, + functionOptions: { + type: 'snake', }, }; diff --git a/packages/ruleset/src/rules/operationid-naming-convention.js b/packages/ruleset/src/rules/operationid-naming-convention.js index dc33e431c..cb8546e43 100644 --- a/packages/ruleset/src/rules/operationid-naming-convention.js +++ b/packages/ruleset/src/rules/operationid-naming-convention.js @@ -3,20 +3,19 @@ * SPDX-License-Identifier: Apache2.0 */ -const { oas2, oas3 } = require('@stoplight/spectral-formats'); -const { operationIdNamingConvention } = require('../functions'); +import { operationIdNamingConvention } from '../functions/index.js'; +import spectralFormats from '@stoplight/spectral-formats'; +const { oas2, oas3 } = spectralFormats; -module.exports = { - description: 'Operation ids should follow naming convention', - message: '{{error}}', - given: ['$'], - severity: 'warn', - formats: [oas2, oas3], - resolved: true, - then: { - function: operationIdNamingConvention, - functionOptions: { - strict: true, - }, +export const description = 'Operation ids should follow naming convention'; +export const message = '{{error}}'; +export const given = ['$']; +export const severity = 'warn'; +export const formats = [oas2, oas3]; +export const resolved = true; +export const then = { + function: operationIdNamingConvention, + functionOptions: { + strict: true, }, }; diff --git a/packages/ruleset/src/rules/optional-request-body-deprecated.js b/packages/ruleset/src/rules/optional-request-body-deprecated.js index 2d962a28b..1732c3285 100644 --- a/packages/ruleset/src/rules/optional-request-body-deprecated.js +++ b/packages/ruleset/src/rules/optional-request-body-deprecated.js @@ -3,19 +3,18 @@ * SPDX-License-Identifier: Apache2.0 */ -const { oas3 } = require('@stoplight/spectral-formats'); -const { optionalRequestBodyDeprecated } = require('../functions'); +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import { optionalRequestBodyDeprecated } from '../functions/index.js'; -module.exports = { - description: - 'An optional requestBody with required properties should probably be required', - message: '{{description}}', - given: - "$.paths[*][*][?(@property === 'requestBody' && @.required !== true)].content[*].schema", - severity: 'off', - formats: [oas3], - resolved: true, - then: { - function: optionalRequestBodyDeprecated, - }, +export const description = + 'An optional requestBody with required properties should probably be required'; +export const message = '{{description}}'; +export const given = + "$.paths[*][*][?(@property === 'requestBody' && @.required !== true)].content[*].schema"; +export const severity = 'off'; +export const formats = [oas3]; +export const resolved = true; +export const then = { + function: optionalRequestBodyDeprecated, }; diff --git a/packages/ruleset/src/rules/optional-request-body.js b/packages/ruleset/src/rules/optional-request-body.js index a27da45e8..3361439aa 100644 --- a/packages/ruleset/src/rules/optional-request-body.js +++ b/packages/ruleset/src/rules/optional-request-body.js @@ -3,19 +3,18 @@ * SPDX-License-Identifier: Apache2.0 */ -const { oas3 } = require('@stoplight/spectral-formats'); -const { optionalRequestBody } = require('../functions'); +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import { optionalRequestBody } from '../functions/index.js'; -module.exports = { - description: - 'An optional requestBody with required properties should probably be required', - message: '{{description}}', - given: - "$.paths[*][*][?(@property === 'requestBody' && @.required !== true)].content[*].schema", - severity: 'info', - formats: [oas3], - resolved: true, - then: { - function: optionalRequestBody, - }, +export const description = + 'An optional requestBody with required properties should probably be required'; +export const message = '{{description}}'; +export const given = + "$.paths[*][*][?(@property === 'requestBody' && @.required !== true)].content[*].schema"; +export const severity = 'info'; +export const formats = [oas3]; +export const resolved = true; +export const then = { + function: optionalRequestBody, }; diff --git a/packages/ruleset/src/rules/pagination-style.js b/packages/ruleset/src/rules/pagination-style.js index ccec49110..802eff9a5 100644 --- a/packages/ruleset/src/rules/pagination-style.js +++ b/packages/ruleset/src/rules/pagination-style.js @@ -3,20 +3,18 @@ * SPDX-License-Identifier: Apache2.0 */ -const { - paths, -} = require('@ibm-cloud/openapi-ruleset-utilities/src/collections'); -const { oas3 } = require('@stoplight/spectral-formats'); -const { paginationStyle } = require('../functions'); +import { paths } from '@ibm-cloud/openapi-ruleset-utilities/src/collections'; +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import { paginationStyle } from '../functions/index.js'; -module.exports = { - description: 'List operations should have correct pagination style', - message: '{{error}}', - given: paths, - severity: 'warn', - formats: [oas3], - resolved: true, - then: { - function: paginationStyle, - }, +export const description = + 'List operations should have correct pagination style'; +export const message = '{{error}}'; +export const given = paths; +export const severity = 'warn'; +export const formats = [oas3]; +export const resolved = true; +export const then = { + function: paginationStyle, }; diff --git a/packages/ruleset/src/rules/parameter-casing-convention.js b/packages/ruleset/src/rules/parameter-casing-convention.js index f234b1c11..05a2dfca6 100644 --- a/packages/ruleset/src/rules/parameter-casing-convention.js +++ b/packages/ruleset/src/rules/parameter-casing-convention.js @@ -3,55 +3,51 @@ * SPDX-License-Identifier: Apache2.0 */ -const { - parameters, -} = require('@ibm-cloud/openapi-ruleset-utilities/src/collections'); -const { oas3 } = require('@stoplight/spectral-formats'); -const { parameterCasingConvention } = require('../functions'); +import { parameters } from '@ibm-cloud/openapi-ruleset-utilities/src/collections'; +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import { parameterCasingConvention } from '../functions/index.js'; -module.exports = { - description: 'Parameter names must follow case conventions', - message: '{{error}}', - formats: [oas3], - given: parameters, - severity: 'error', - resolved: true, - then: { - function: parameterCasingConvention, +export const description = 'Parameter names must follow case conventions'; +export const message = '{{error}}'; +export const formats = [oas3]; +export const given = parameters; +export const severity = 'error'; +export const resolved = true; +export const then = { + function: parameterCasingConvention, - // The configuration of this rule should be an object - // with keys that represent the different parameter types - // to be checked for property casing conventions: 'query', 'path', and 'header'. - // The value of each key should be an object that is either the appropriate - // configuration needed by Spectral's casing() function OR pattern() function - // to enforce the desired case convention for parameters of that type. - // To disable case convention checks for a particular parameter type, - // simply remove that entry from the config object. - functionOptions: { - // Allow snake case for query parameter names, - // but also allow '.' within the name. - query: { - type: 'snake', - separator: { - char: '.', - }, - }, - - // Allow snake case for path parameter names. - path: { - type: 'snake', + // The configuration of this rule should be an object + // with keys that represent the different parameter types + // to be checked for property casing conventions: 'query', 'path', and 'header'. + // The value of each key should be an object that is either the appropriate + // configuration needed by Spectral's casing() function OR pattern() function + // to enforce the desired case convention for parameters of that type. + // To disable case convention checks for a particular parameter type, + // simply remove that entry from the config object. + functionOptions: { + // Allow snake case for query parameter names, + // but also allow '.' within the name. + query: { + type: 'snake', + separator: { + char: '.', }, + }, - // Spectral casing convention types aren't robust enough to handle - // the complexity of headers, so we define our own kebab/pascal case regex. - header: { - match: '/^[A-Z]+[a-z0-9]*-*([A-Z]+[a-z0-9]*-*)*$/', - }, + // Allow snake case for path parameter names. + path: { + type: 'snake', + }, - // Define an alternate message for the header pattern validation - // to avoid using the default Spectral message. - headerMessage: - 'Header parameter names must be kebab-separated pascal case', + // Spectral casing convention types aren't robust enough to handle + // the complexity of headers, so we define our own kebab/pascal case regex. + header: { + match: '/^[A-Z]+[a-z0-9]*-*([A-Z]+[a-z0-9]*-*)*$/', }, + + // Define an alternate message for the header pattern validation + // to avoid using the default Spectral message. + headerMessage: 'Header parameter names must be kebab-separated pascal case', }, }; diff --git a/packages/ruleset/src/rules/parameter-default.js b/packages/ruleset/src/rules/parameter-default.js index 3ad6b5bf3..e655d450b 100644 --- a/packages/ruleset/src/rules/parameter-default.js +++ b/packages/ruleset/src/rules/parameter-default.js @@ -3,20 +3,18 @@ * SPDX-License-Identifier: Apache2.0 */ -const { - parameters, -} = require('@ibm-cloud/openapi-ruleset-utilities/src/collections'); -const { oas2, oas3 } = require('@stoplight/spectral-formats'); -const { parameterDefault } = require('../functions'); +import { parameters } from '@ibm-cloud/openapi-ruleset-utilities/src/collections'; +import { parameterDefault } from '../functions/index.js'; +import spectralFormats from '@stoplight/spectral-formats'; +const { oas2, oas3 } = spectralFormats; -module.exports = { - description: 'Required parameters should not define a default value', - message: '{{error}}', - given: parameters, - severity: 'warn', - formats: [oas2, oas3], - resolved: true, - then: { - function: parameterDefault, - }, +export const description = + 'Required parameters should not define a default value'; +export const message = '{{error}}'; +export const given = parameters; +export const severity = 'warn'; +export const formats = [oas2, oas3]; +export const resolved = true; +export const then = { + function: parameterDefault, }; diff --git a/packages/ruleset/src/rules/parameter-description-exists.js b/packages/ruleset/src/rules/parameter-description-exists.js index 9a4f77804..9c6f22e4f 100644 --- a/packages/ruleset/src/rules/parameter-description-exists.js +++ b/packages/ruleset/src/rules/parameter-description-exists.js @@ -3,20 +3,17 @@ * SPDX-License-Identifier: Apache2.0 */ -const { - parameters, -} = require('@ibm-cloud/openapi-ruleset-utilities/src/collections'); -const { oas3 } = require('@stoplight/spectral-formats'); -const { parameterDescriptionExists } = require('../functions'); +import { parameters } from '@ibm-cloud/openapi-ruleset-utilities/src/collections'; +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import { parameterDescriptionExists } from '../functions/index.js'; -module.exports = { - description: 'Parameters should have a non-empty description', - message: '{{error}}', - given: parameters, - severity: 'warn', - formats: [oas3], - resolved: true, - then: { - function: parameterDescriptionExists, - }, +export const description = 'Parameters should have a non-empty description'; +export const message = '{{error}}'; +export const given = parameters; +export const severity = 'warn'; +export const formats = [oas3]; +export const resolved = true; +export const then = { + function: parameterDescriptionExists, }; diff --git a/packages/ruleset/src/rules/parameter-order.js b/packages/ruleset/src/rules/parameter-order.js index 054b0aec2..4031bc69d 100644 --- a/packages/ruleset/src/rules/parameter-order.js +++ b/packages/ruleset/src/rules/parameter-order.js @@ -3,21 +3,18 @@ * SPDX-License-Identifier: Apache2.0 */ -const { - operations, -} = require('@ibm-cloud/openapi-ruleset-utilities/src/collections'); -const { oas3 } = require('@stoplight/spectral-formats'); -const { parameterOrder } = require('../functions'); +import { operations } from '@ibm-cloud/openapi-ruleset-utilities/src/collections'; +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import { parameterOrder } from '../functions/index.js'; -module.exports = { - description: - 'All required operation parameters should be listed before any optional parameters.', - message: '{{error}}', - given: operations, - severity: 'warn', - formats: [oas3], - resolved: true, - then: { - function: parameterOrder, - }, +export const description = + 'All required operation parameters should be listed before any optional parameters.'; +export const message = '{{error}}'; +export const given = operations; +export const severity = 'warn'; +export const formats = [oas3]; +export const resolved = true; +export const then = { + function: parameterOrder, }; diff --git a/packages/ruleset/src/rules/parameter-schema-or-content-exists.js b/packages/ruleset/src/rules/parameter-schema-or-content-exists.js index 190d23aa8..7d6b6b442 100644 --- a/packages/ruleset/src/rules/parameter-schema-or-content-exists.js +++ b/packages/ruleset/src/rules/parameter-schema-or-content-exists.js @@ -3,17 +3,16 @@ * SPDX-License-Identifier: Apache2.0 */ -const { oas3 } = require('@stoplight/spectral-formats'); -const { schemaOrContentProvided } = require('../functions'); +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import { schemaOrContentProvided } from '../functions/index.js'; -module.exports = { - description: 'Parameter must provide either a schema or content', - message: '{{error}}', - severity: 'error', - formats: [oas3], - resolved: true, - given: '$.paths[*][*].parameters[*]', - then: { - function: schemaOrContentProvided, - }, +export const description = 'Parameter must provide either a schema or content'; +export const message = '{{error}}'; +export const severity = 'error'; +export const formats = [oas3]; +export const resolved = true; +export const given = '$.paths[*][*].parameters[*]'; +export const then = { + function: schemaOrContentProvided, }; diff --git a/packages/ruleset/src/rules/patch-request-content-type.js b/packages/ruleset/src/rules/patch-request-content-type.js index a90ca2d6e..fc38ee351 100644 --- a/packages/ruleset/src/rules/patch-request-content-type.js +++ b/packages/ruleset/src/rules/patch-request-content-type.js @@ -3,21 +3,18 @@ * SPDX-License-Identifier: Apache2.0 */ -const { - patchOperations, -} = require('@ibm-cloud/openapi-ruleset-utilities/src/collections'); -const { oas3 } = require('@stoplight/spectral-formats'); -const { patchRequestContentType } = require('../functions'); +import { patchOperations } from '@ibm-cloud/openapi-ruleset-utilities/src/collections'; +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import { patchRequestContentType } from '../functions/index.js'; -module.exports = { - description: - 'PATCH operations should support content types application/json-patch+json or application/merge-patch+json', - message: '{{description}}', - given: patchOperations, - severity: 'warn', - formats: [oas3], - resolved: true, - then: { - function: patchRequestContentType, - }, +export const description = + 'PATCH operations should support content types application/json-patch+json or application/merge-patch+json'; +export const message = '{{description}}'; +export const given = patchOperations; +export const severity = 'warn'; +export const formats = [oas3]; +export const resolved = true; +export const then = { + function: patchRequestContentType, }; diff --git a/packages/ruleset/src/rules/path-parameter-not-crn.js b/packages/ruleset/src/rules/path-parameter-not-crn.js index 40eff1972..46142aa1f 100644 --- a/packages/ruleset/src/rules/path-parameter-not-crn.js +++ b/packages/ruleset/src/rules/path-parameter-not-crn.js @@ -3,21 +3,20 @@ * SPDX-License-Identifier: Apache2.0 */ -const { oas3 } = require('@stoplight/spectral-formats'); -const { pathParameterNotCRN } = require('../functions'); +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import { pathParameterNotCRN } from '../functions/index.js'; -module.exports = { - description: - 'Path parameters should not be defined as a CRN (Cloud Resource Name) value', - message: '{{error}}', - formats: [oas3], - given: [ - '$.paths[*].parameters[?(@.in === "path")]', - '$.paths[*][get,put,post,delete,options,head,patch,trace].parameters[?(@.in === "path")]', - ], - severity: 'warn', - resolved: true, - then: { - function: pathParameterNotCRN, - }, +export const description = + 'Path parameters should not be defined as a CRN (Cloud Resource Name) value'; +export const message = '{{error}}'; +export const formats = [oas3]; +export const given = [ + '$.paths[*].parameters[?(@.in === "path")]', + '$.paths[*][get,put,post,delete,options,head,patch,trace].parameters[?(@.in === "path")]', +]; +export const severity = 'warn'; +export const resolved = true; +export const then = { + function: pathParameterNotCRN, }; diff --git a/packages/ruleset/src/rules/path-segment-casing-convention.js b/packages/ruleset/src/rules/path-segment-casing-convention.js index 64b3d9a45..3ccf8448b 100644 --- a/packages/ruleset/src/rules/path-segment-casing-convention.js +++ b/packages/ruleset/src/rules/path-segment-casing-convention.js @@ -3,22 +3,20 @@ * SPDX-License-Identifier: Apache2.0 */ -const { - paths, -} = require('@ibm-cloud/openapi-ruleset-utilities/src/collections'); -const { oas3 } = require('@stoplight/spectral-formats'); -const { pathSegmentCasingConvention } = require('../functions'); +import { paths } from '@ibm-cloud/openapi-ruleset-utilities/src/collections'; +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import { pathSegmentCasingConvention } from '../functions/index.js'; -module.exports = { - description: 'Path segments must follow a specified case convention', - message: '{{error}}', - formats: [oas3], - given: paths, - severity: 'error', - then: { - function: pathSegmentCasingConvention, - functionOptions: { - type: 'snake', - }, +export const description = + 'Path segments must follow a specified case convention'; +export const message = '{{error}}'; +export const formats = [oas3]; +export const given = paths; +export const severity = 'error'; +export const then = { + function: pathSegmentCasingConvention, + functionOptions: { + type: 'snake', }, }; diff --git a/packages/ruleset/src/rules/pattern-properties.js b/packages/ruleset/src/rules/pattern-properties.js index 8d0a13064..4a80591f7 100644 --- a/packages/ruleset/src/rules/pattern-properties.js +++ b/packages/ruleset/src/rules/pattern-properties.js @@ -3,21 +3,18 @@ * SPDX-License-Identifier: Apache2.0 */ -const { oas3_1 } = require('@stoplight/spectral-formats'); -const { patternPropertiesCheck } = require('../functions'); -const { - schemas, -} = require('@ibm-cloud/openapi-ruleset-utilities/src/collections'); +import { patternPropertiesCheck } from '../functions/index.js'; +import { schemas } from '@ibm-cloud/openapi-ruleset-utilities/src/collections'; +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3_1 } = spectralFormats; -module.exports = { - description: - 'Enforces certain restrictions on the use of "patternProperties" within a schema.', - message: '{{error}}', - given: schemas, - severity: 'error', - formats: [oas3_1], - resolved: true, - then: { - function: patternPropertiesCheck, - }, +export const description = + 'Enforces certain restrictions on the use of "patternProperties" within a schema.'; +export const message = '{{error}}'; +export const given = schemas; +export const severity = 'error'; +export const formats = [oas3_1]; +export const resolved = true; +export const then = { + function: patternPropertiesCheck, }; diff --git a/packages/ruleset/src/rules/precondition-header.js b/packages/ruleset/src/rules/precondition-header.js index 73e000830..96d0535d5 100644 --- a/packages/ruleset/src/rules/precondition-header.js +++ b/packages/ruleset/src/rules/precondition-header.js @@ -3,21 +3,18 @@ * SPDX-License-Identifier: Apache2.0 */ -const { - operations, -} = require('@ibm-cloud/openapi-ruleset-utilities/src/collections'); -const { oas3 } = require('@stoplight/spectral-formats'); -const { preconditionHeader } = require('../functions'); +import { operations } from '@ibm-cloud/openapi-ruleset-utilities/src/collections'; +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import { preconditionHeader } from '../functions/index.js'; -module.exports = { - description: - 'Operations with `412` response must support at least one conditional header.', - message: '{{error}}', - formats: [oas3], - given: operations, - severity: 'error', - resolved: true, - then: { - function: preconditionHeader, - }, +export const description = + 'Operations with `412` response must support at least one conditional header.'; +export const message = '{{error}}'; +export const formats = [oas3]; +export const given = operations; +export const severity = 'error'; +export const resolved = true; +export const then = { + function: preconditionHeader, }; diff --git a/packages/ruleset/src/rules/prefer-token-pagination.js b/packages/ruleset/src/rules/prefer-token-pagination.js index 3ddafe334..98c81218a 100644 --- a/packages/ruleset/src/rules/prefer-token-pagination.js +++ b/packages/ruleset/src/rules/prefer-token-pagination.js @@ -3,21 +3,18 @@ * SPDX-License-Identifier: Apache2.0 */ -const { - paths, -} = require('@ibm-cloud/openapi-ruleset-utilities/src/collections'); -const { oas3 } = require('@stoplight/spectral-formats'); -const { preferTokenPagination } = require('../functions'); +import { paths } from '@ibm-cloud/openapi-ruleset-utilities/src/collections'; +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import { preferTokenPagination } from '../functions/index.js'; -module.exports = { - description: - 'Paginated list operations should use token-based pagination, rather than offset/limit pagination.', - message: '{{error}}', - given: paths, - severity: 'warn', - formats: [oas3], - resolved: true, - then: { - function: preferTokenPagination, - }, +export const description = + 'Paginated list operations should use token-based pagination, rather than offset/limit pagination.'; +export const message = '{{error}}'; +export const given = paths; +export const severity = 'warn'; +export const formats = [oas3]; +export const resolved = true; +export const then = { + function: preferTokenPagination, }; diff --git a/packages/ruleset/src/rules/property-attributes.js b/packages/ruleset/src/rules/property-attributes.js index 8bfe54e01..72772a673 100644 --- a/packages/ruleset/src/rules/property-attributes.js +++ b/packages/ruleset/src/rules/property-attributes.js @@ -3,21 +3,18 @@ * SPDX-License-Identifier: Apache2.0 */ -const { - schemas, -} = require('@ibm-cloud/openapi-ruleset-utilities/src/collections'); -const { oas3 } = require('@stoplight/spectral-formats'); -const { propertyAttributes } = require('../functions'); +import { schemas } from '@ibm-cloud/openapi-ruleset-utilities/src/collections'; +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import { propertyAttributes } from '../functions/index.js'; -module.exports = { - description: - 'Performs checks on specific attributes of a schema or schema property', - message: '{{error}}', - given: schemas, - severity: 'error', - formats: [oas3], - resolved: true, - then: { - function: propertyAttributes, - }, +export const description = + 'Performs checks on specific attributes of a schema or schema property'; +export const message = '{{error}}'; +export const given = schemas; +export const severity = 'error'; +export const formats = [oas3]; +export const resolved = true; +export const then = { + function: propertyAttributes, }; diff --git a/packages/ruleset/src/rules/property-casing-convention.js b/packages/ruleset/src/rules/property-casing-convention.js index b12a26e10..e27741928 100644 --- a/packages/ruleset/src/rules/property-casing-convention.js +++ b/packages/ruleset/src/rules/property-casing-convention.js @@ -3,22 +3,20 @@ * SPDX-License-Identifier: Apache2.0 */ -const { - schemas, -} = require('@ibm-cloud/openapi-ruleset-utilities/src/collections'); -const { oas3 } = require('@stoplight/spectral-formats'); -const { propertyCasingConvention } = require('../functions'); +import { schemas } from '@ibm-cloud/openapi-ruleset-utilities/src/collections'; +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import { propertyCasingConvention } from '../functions/index.js'; -module.exports = { - description: 'Property names must follow a specified case convention', - message: '{{error}}', - formats: [oas3], - given: schemas, - severity: 'error', - then: { - function: propertyCasingConvention, - functionOptions: { - type: 'snake', - }, +export const description = + 'Property names must follow a specified case convention'; +export const message = '{{error}}'; +export const formats = [oas3]; +export const given = schemas; +export const severity = 'error'; +export const then = { + function: propertyCasingConvention, + functionOptions: { + type: 'snake', }, }; diff --git a/packages/ruleset/src/rules/property-consistent-name-and-type.js b/packages/ruleset/src/rules/property-consistent-name-and-type.js index c4b2267c6..55a636742 100644 --- a/packages/ruleset/src/rules/property-consistent-name-and-type.js +++ b/packages/ruleset/src/rules/property-consistent-name-and-type.js @@ -3,24 +3,21 @@ * SPDX-License-Identifier: Apache2.0 */ -const { - schemas, -} = require('@ibm-cloud/openapi-ruleset-utilities/src/collections'); -const { oas3 } = require('@stoplight/spectral-formats'); -const { propertyConsistentNameAndType } = require('../functions'); +import { schemas } from '@ibm-cloud/openapi-ruleset-utilities/src/collections'; +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import { propertyConsistentNameAndType } from '../functions/index.js'; -module.exports = { - description: - 'Schema properties that have the same name should also have the same types.', - message: '{{error}}', - formats: [oas3], - given: schemas, - severity: 'off', - resolved: true, - then: { - function: propertyConsistentNameAndType, - functionOptions: { - excludedProperties: ['code', 'default', 'type', 'value'], - }, +export const description = + 'Schema properties that have the same name should also have the same types.'; +export const message = '{{error}}'; +export const formats = [oas3]; +export const given = schemas; +export const severity = 'off'; +export const resolved = true; +export const then = { + function: propertyConsistentNameAndType, + functionOptions: { + excludedProperties: ['code', 'default', 'type', 'value'], }, }; diff --git a/packages/ruleset/src/rules/property-description-exists.js b/packages/ruleset/src/rules/property-description-exists.js index 5245ac5ce..561fb4f1b 100644 --- a/packages/ruleset/src/rules/property-description-exists.js +++ b/packages/ruleset/src/rules/property-description-exists.js @@ -3,20 +3,18 @@ * SPDX-License-Identifier: Apache2.0 */ -const { - schemas, -} = require('@ibm-cloud/openapi-ruleset-utilities/src/collections'); -const { oas3 } = require('@stoplight/spectral-formats'); -const { propertyDescriptionExists } = require('../functions'); +import { schemas } from '@ibm-cloud/openapi-ruleset-utilities/src/collections'; +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import { propertyDescriptionExists } from '../functions/index.js'; -module.exports = { - description: 'Schema properties should have a non-empty description', - message: '{{error}}', - given: schemas, - severity: 'warn', - formats: [oas3], - resolved: true, - then: { - function: propertyDescriptionExists, - }, +export const description = + 'Schema properties should have a non-empty description'; +export const message = '{{error}}'; +export const given = schemas; +export const severity = 'warn'; +export const formats = [oas3]; +export const resolved = true; +export const then = { + function: propertyDescriptionExists, }; diff --git a/packages/ruleset/src/rules/property-name-collision.js b/packages/ruleset/src/rules/property-name-collision.js index b62488073..959fda0f8 100644 --- a/packages/ruleset/src/rules/property-name-collision.js +++ b/packages/ruleset/src/rules/property-name-collision.js @@ -3,21 +3,18 @@ * SPDX-License-Identifier: Apache2.0 */ -const { - schemas, -} = require('@ibm-cloud/openapi-ruleset-utilities/src/collections'); -const { oas3 } = require('@stoplight/spectral-formats'); -const { propertyNameCollision } = require('../functions'); +import { schemas } from '@ibm-cloud/openapi-ruleset-utilities/src/collections'; +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import { propertyNameCollision } from '../functions/index.js'; -module.exports = { - description: - 'Avoid duplicate property names within a schema, even if they differ by case convention', - message: '{{error}}', - formats: [oas3], - given: schemas, - severity: 'error', - resolved: true, - then: { - function: propertyNameCollision, - }, +export const description = + 'Avoid duplicate property names within a schema, even if they differ by case convention'; +export const message = '{{error}}'; +export const formats = [oas3]; +export const given = schemas; +export const severity = 'error'; +export const resolved = true; +export const then = { + function: propertyNameCollision, }; diff --git a/packages/ruleset/src/rules/redirect-response-body.js b/packages/ruleset/src/rules/redirect-response-body.js index bd14d8b15..7eaf5470a 100644 --- a/packages/ruleset/src/rules/redirect-response-body.js +++ b/packages/ruleset/src/rules/redirect-response-body.js @@ -3,21 +3,18 @@ * SPDX-License-Identifier: Apache2.0 */ -const { - operations, -} = require('@ibm-cloud/openapi-ruleset-utilities/src/collections'); -const { oas3 } = require('@stoplight/spectral-formats'); -const { redirectResponseBody } = require('../functions'); +import { operations } from '@ibm-cloud/openapi-ruleset-utilities/src/collections'; +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import { redirectResponseBody } from '../functions/index.js'; -module.exports = { - description: - 'Performs multiple checks on the response body based on status codes', - message: '{{error}}', - formats: [oas3], - given: operations, - severity: 'error', - resolved: true, - then: { - function: redirectResponseBody, - }, +export const description = + 'Performs multiple checks on the response body based on status codes'; +export const message = '{{error}}'; +export const formats = [oas3]; +export const given = operations; +export const severity = 'error'; +export const resolved = true; +export const then = { + function: redirectResponseBody, }; diff --git a/packages/ruleset/src/rules/ref-pattern.js b/packages/ruleset/src/rules/ref-pattern.js index e6e0704f1..8778205f8 100644 --- a/packages/ruleset/src/rules/ref-pattern.js +++ b/packages/ruleset/src/rules/ref-pattern.js @@ -3,17 +3,16 @@ * SPDX-License-Identifier: Apache2.0 */ -const { oas3 } = require('@stoplight/spectral-formats'); -const { refPattern } = require('../functions'); +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import { refPattern } from '../functions/index.js'; -module.exports = { - description: '$refs must follow the correct pattern.', - message: '{{error}}', - given: '$..$ref', - severity: 'warn', - formats: [oas3], - resolved: false, - then: { - function: refPattern, - }, +export const description = '$refs must follow the correct pattern.'; +export const message = '{{error}}'; +export const given = '$..$ref'; +export const severity = 'warn'; +export const formats = [oas3]; +export const resolved = false; +export const then = { + function: refPattern, }; diff --git a/packages/ruleset/src/rules/ref-sibling-duplicate-description.js b/packages/ruleset/src/rules/ref-sibling-duplicate-description.js index adb01e385..ea39d8f2f 100644 --- a/packages/ruleset/src/rules/ref-sibling-duplicate-description.js +++ b/packages/ruleset/src/rules/ref-sibling-duplicate-description.js @@ -3,21 +3,18 @@ * SPDX-License-Identifier: Apache2.0 */ -const { - schemas, -} = require('@ibm-cloud/openapi-ruleset-utilities/src/collections'); -const { oas3 } = require('@stoplight/spectral-formats'); -const { refSiblingDuplicateDescription } = require('../functions'); +import { schemas } from '@ibm-cloud/openapi-ruleset-utilities/src/collections'; +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import { refSiblingDuplicateDescription } from '../functions/index.js'; -module.exports = { - description: - 'Schemas and schema properties should avoid duplicate descriptions within allOf $ref siblings', - message: '{{error}}', - given: schemas, - severity: 'warn', - formats: [oas3], - resolved: true, - then: { - function: refSiblingDuplicateDescription, - }, +export const description = + 'Schemas and schema properties should avoid duplicate descriptions within allOf $ref siblings'; +export const message = '{{error}}'; +export const given = schemas; +export const severity = 'warn'; +export const formats = [oas3]; +export const resolved = true; +export const then = { + function: refSiblingDuplicateDescription, }; diff --git a/packages/ruleset/src/rules/request-and-response-content.js b/packages/ruleset/src/rules/request-and-response-content.js index d82c848b5..334b35e45 100644 --- a/packages/ruleset/src/rules/request-and-response-content.js +++ b/packages/ruleset/src/rules/request-and-response-content.js @@ -3,20 +3,17 @@ * SPDX-License-Identifier: Apache2.0 */ -const { - operations, -} = require('@ibm-cloud/openapi-ruleset-utilities/src/collections'); -const { oas3 } = require('@stoplight/spectral-formats'); -const { requestAndResponseContent } = require('../functions'); +import { operations } from '@ibm-cloud/openapi-ruleset-utilities/src/collections'; +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import { requestAndResponseContent } from '../functions/index.js'; -module.exports = { - description: - 'Request bodies and non-204 responses should define a content object', - given: operations, - severity: 'warn', - formats: [oas3], - resolved: true, - then: { - function: requestAndResponseContent, - }, +export const description = + 'Request bodies and non-204 responses should define a content object'; +export const given = operations; +export const severity = 'warn'; +export const formats = [oas3]; +export const resolved = true; +export const then = { + function: requestAndResponseContent, }; diff --git a/packages/ruleset/src/rules/requestbody-is-object.js b/packages/ruleset/src/rules/requestbody-is-object.js index a7e537192..b3296560b 100644 --- a/packages/ruleset/src/rules/requestbody-is-object.js +++ b/packages/ruleset/src/rules/requestbody-is-object.js @@ -3,18 +3,16 @@ * SPDX-License-Identifier: Apache2.0 */ -const { enumeration } = require('@stoplight/spectral-functions'); +import { enumeration } from '@stoplight/spectral-functions'; -module.exports = { - description: 'All request bodies MUST be structured as an object', - given: - '$.paths[*][*].requestBody.content[?(@property ~= "^application\\\\/json(;.*)*$")].schema', - severity: 'error', - then: { - field: 'type', - function: enumeration, - functionOptions: { - values: ['object'], - }, +export const description = 'All request bodies MUST be structured as an object'; +export const given = + '$.paths[*][*].requestBody.content[?(@property ~= "^application\\\\/json(;.*)*$")].schema'; +export const severity = 'error'; +export const then = { + field: 'type', + function: enumeration, + functionOptions: { + values: ['object'], }, }; diff --git a/packages/ruleset/src/rules/requestbody-name.js b/packages/ruleset/src/rules/requestbody-name.js index 2f204f56f..2c11ce5a5 100644 --- a/packages/ruleset/src/rules/requestbody-name.js +++ b/packages/ruleset/src/rules/requestbody-name.js @@ -3,21 +3,18 @@ * SPDX-License-Identifier: Apache2.0 */ -const { - operations, -} = require('@ibm-cloud/openapi-ruleset-utilities/src/collections'); -const { oas3 } = require('@stoplight/spectral-formats'); -const { requestBodyName } = require('../functions'); +import { operations } from '@ibm-cloud/openapi-ruleset-utilities/src/collections'; +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import { requestBodyName } from '../functions/index.js'; -module.exports = { - description: - 'Verifies that operations have the x-codegen-request-body-name extension set when needed', - message: '{{error}}', - given: operations, - severity: 'off', - formats: [oas3], - resolved: true, - then: { - function: requestBodyName, - }, +export const description = + 'Verifies that operations have the x-codegen-request-body-name extension set when needed'; +export const message = '{{error}}'; +export const given = operations; +export const severity = 'off'; +export const formats = [oas3]; +export const resolved = true; +export const then = { + function: requestBodyName, }; diff --git a/packages/ruleset/src/rules/required-array-properties-in-response.js b/packages/ruleset/src/rules/required-array-properties-in-response.js index 1d79e8d35..225aa9d34 100644 --- a/packages/ruleset/src/rules/required-array-properties-in-response.js +++ b/packages/ruleset/src/rules/required-array-properties-in-response.js @@ -3,19 +3,16 @@ * SPDX-License-Identifier: Apache2.0 */ -const { - responseSchemas, -} = require('@ibm-cloud/openapi-ruleset-utilities/src/collections'); +import { responseSchemas } from '@ibm-cloud/openapi-ruleset-utilities/src/collections'; -const { requiredArrayPropertiesInResponse } = require('../functions'); +import { requiredArrayPropertiesInResponse } from '../functions/index.js'; -module.exports = { - description: 'Array properties defined in a response should be required.', - message: '{{error}}', - given: responseSchemas, - severity: 'error', - resolved: true, - then: { - function: requiredArrayPropertiesInResponse, - }, +export const description = + 'Array properties defined in a response should be required.'; +export const message = '{{error}}'; +export const given = responseSchemas; +export const severity = 'error'; +export const resolved = true; +export const then = { + function: requiredArrayPropertiesInResponse, }; diff --git a/packages/ruleset/src/rules/required-enum-properties-in-response.js b/packages/ruleset/src/rules/required-enum-properties-in-response.js index c7ef5c44e..38e38c220 100644 --- a/packages/ruleset/src/rules/required-enum-properties-in-response.js +++ b/packages/ruleset/src/rules/required-enum-properties-in-response.js @@ -3,19 +3,16 @@ * SPDX-License-Identifier: Apache2.0 */ -const { - responseSchemas, -} = require('@ibm-cloud/openapi-ruleset-utilities/src/collections'); +import { responseSchemas } from '@ibm-cloud/openapi-ruleset-utilities/src/collections'; -const { requiredEnumPropertiesInResponse } = require('../functions'); +import { requiredEnumPropertiesInResponse } from '../functions/index.js'; -module.exports = { - description: 'Enumeration properties defined in a response must be required.', - message: '{{error}}', - given: responseSchemas, - severity: 'error', - resolved: true, - then: { - function: requiredEnumPropertiesInResponse, - }, +export const description = + 'Enumeration properties defined in a response must be required.'; +export const message = '{{error}}'; +export const given = responseSchemas; +export const severity = 'error'; +export const resolved = true; +export const then = { + function: requiredEnumPropertiesInResponse, }; diff --git a/packages/ruleset/src/rules/required-property-missing.js b/packages/ruleset/src/rules/required-property-missing.js index f7f9483be..e7208a7e4 100644 --- a/packages/ruleset/src/rules/required-property-missing.js +++ b/packages/ruleset/src/rules/required-property-missing.js @@ -3,19 +3,16 @@ * SPDX-License-Identifier: Apache2.0 */ -const { - schemas, -} = require('@ibm-cloud/openapi-ruleset-utilities/src/collections'); -const { oas3 } = require('@stoplight/spectral-formats'); -const { requiredProperty } = require('../functions'); +import { schemas } from '@ibm-cloud/openapi-ruleset-utilities/src/collections'; +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import { requiredProperty } from '../functions/index.js'; -module.exports = { - description: 'A required property is not in the schema', - message: '{{error}}', - formats: [oas3], - given: schemas, - severity: 'error', - then: { - function: requiredProperty, - }, +export const description = 'A required property is not in the schema'; +export const message = '{{error}}'; +export const formats = [oas3]; +export const given = schemas; +export const severity = 'error'; +export const then = { + function: requiredProperty, }; diff --git a/packages/ruleset/src/rules/resource-response-consistency.js b/packages/ruleset/src/rules/resource-response-consistency.js index b2485c087..ea146b1da 100644 --- a/packages/ruleset/src/rules/resource-response-consistency.js +++ b/packages/ruleset/src/rules/resource-response-consistency.js @@ -3,18 +3,17 @@ * SPDX-License-Identifier: Apache2.0 */ -const { oas3 } = require('@stoplight/spectral-formats'); -const { resourceResponseConsistency } = require('../functions'); +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import { resourceResponseConsistency } from '../functions/index.js'; -module.exports = { - description: - 'Operations that create or update a resource should return the same schema as the "GET" request for the resource.', - message: '{{error}}', - formats: [oas3], - given: [`$.paths[*][put,post,patch]`], - severity: 'warn', - resolved: true, - then: { - function: resourceResponseConsistency, - }, +export const description = + 'Operations that create or update a resource should return the same schema as the "GET" request for the resource.'; +export const message = '{{error}}'; +export const formats = [oas3]; +export const given = [`$.paths[*][put,post,patch]`]; +export const severity = 'warn'; +export const resolved = true; +export const then = { + function: resourceResponseConsistency, }; diff --git a/packages/ruleset/src/rules/response-example-exists.js b/packages/ruleset/src/rules/response-example-exists.js index d4c5e8b73..226e0f7ce 100644 --- a/packages/ruleset/src/rules/response-example-exists.js +++ b/packages/ruleset/src/rules/response-example-exists.js @@ -3,16 +3,14 @@ * SPDX-License-Identifier: Apache2.0 */ -const { responseExampleExists } = require('../functions'); +import { responseExampleExists } from '../functions/index.js'; -module.exports = { - description: 'Each response should include an example', - message: '{{error}}', - given: - '$.paths[*][*].responses[?(@property >= 200 && @property < 300)].content.application/json', - severity: 'warn', - resolved: true, - then: { - function: responseExampleExists, - }, +export const description = 'Each response should include an example'; +export const message = '{{error}}'; +export const given = + '$.paths[*][*].responses[?(@property >= 200 && @property < 300)].content.application/json'; +export const severity = 'warn'; +export const resolved = true; +export const then = { + function: responseExampleExists, }; diff --git a/packages/ruleset/src/rules/response-status-codes.js b/packages/ruleset/src/rules/response-status-codes.js index fc73d50d6..abd945c87 100644 --- a/packages/ruleset/src/rules/response-status-codes.js +++ b/packages/ruleset/src/rules/response-status-codes.js @@ -3,21 +3,18 @@ * SPDX-License-Identifier: Apache2.0 */ -const { - operations, -} = require('@ibm-cloud/openapi-ruleset-utilities/src/collections'); -const { oas3 } = require('@stoplight/spectral-formats'); -const { responseStatusCodes } = require('../functions'); +import { operations } from '@ibm-cloud/openapi-ruleset-utilities/src/collections'; +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import { responseStatusCodes } from '../functions/index.js'; -module.exports = { - description: - 'Performs multiple checks on the status codes used in operation responses', - message: '{{error}}', - formats: [oas3], - given: operations, - severity: 'warn', - resolved: true, - then: { - function: responseStatusCodes, - }, +export const description = + 'Performs multiple checks on the status codes used in operation responses'; +export const message = '{{error}}'; +export const formats = [oas3]; +export const given = operations; +export const severity = 'warn'; +export const resolved = true; +export const then = { + function: responseStatusCodes, }; diff --git a/packages/ruleset/src/rules/schema-casing-convention.js b/packages/ruleset/src/rules/schema-casing-convention.js index 76579a13a..e87c35369 100644 --- a/packages/ruleset/src/rules/schema-casing-convention.js +++ b/packages/ruleset/src/rules/schema-casing-convention.js @@ -3,19 +3,19 @@ * SPDX-License-Identifier: Apache2.0 */ -const { oas3 } = require('@stoplight/spectral-formats'); -const { schemaCasingConvention } = require('../functions'); +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import { schemaCasingConvention } from '../functions/index.js'; -module.exports = { - description: 'Schema names must follow a specified case convention', - message: '{{error}}', - formats: [oas3], - given: ['$.components'], - severity: 'warn', - then: { - function: schemaCasingConvention, - functionOptions: { - match: '/^[A-Z]+[a-z0-9]+([A-Z]+[a-z0-9]*)*$/', - }, +export const description = + 'Schema names must follow a specified case convention'; +export const message = '{{error}}'; +export const formats = [oas3]; +export const given = ['$.components']; +export const severity = 'warn'; +export const then = { + function: schemaCasingConvention, + functionOptions: { + match: '/^[A-Z]+[a-z0-9]+([A-Z]+[a-z0-9]*)*$/', }, }; diff --git a/packages/ruleset/src/rules/schema-description-exists.js b/packages/ruleset/src/rules/schema-description-exists.js index 18014a573..af849d824 100644 --- a/packages/ruleset/src/rules/schema-description-exists.js +++ b/packages/ruleset/src/rules/schema-description-exists.js @@ -3,20 +3,17 @@ * SPDX-License-Identifier: Apache2.0 */ -const { - schemas, -} = require('@ibm-cloud/openapi-ruleset-utilities/src/collections'); -const { oas3 } = require('@stoplight/spectral-formats'); -const { schemaDescriptionExists } = require('../functions'); +import { schemas } from '@ibm-cloud/openapi-ruleset-utilities/src/collections'; +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import { schemaDescriptionExists } from '../functions/index.js'; -module.exports = { - description: 'Schemas should have a non-empty description', - message: '{{error}}', - given: schemas, - severity: 'warn', - formats: [oas3], - resolved: true, - then: { - function: schemaDescriptionExists, - }, +export const description = 'Schemas should have a non-empty description'; +export const message = '{{error}}'; +export const given = schemas; +export const severity = 'warn'; +export const formats = [oas3]; +export const resolved = true; +export const then = { + function: schemaDescriptionExists, }; diff --git a/packages/ruleset/src/rules/schema-keywords.js b/packages/ruleset/src/rules/schema-keywords.js index a49ea3791..b2e86978a 100644 --- a/packages/ruleset/src/rules/schema-keywords.js +++ b/packages/ruleset/src/rules/schema-keywords.js @@ -3,60 +3,57 @@ * SPDX-License-Identifier: Apache2.0 */ -const { - schemas, -} = require('@ibm-cloud/openapi-ruleset-utilities/src/collections'); -const { oas3_1 } = require('@stoplight/spectral-formats'); -const { allowedKeywords } = require('../functions'); +import { schemas } from '@ibm-cloud/openapi-ruleset-utilities/src/collections'; +import { allowedKeywords } from '../functions/index.js'; +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3_1 } = spectralFormats; -module.exports = { - description: - 'Verifies that schema objects include only allowed-listed keywords', - message: '{{error}}', - severity: 'error', - formats: [oas3_1], - resolved: true, - given: schemas, - then: { - function: allowedKeywords, - functionOptions: { - keywordAllowList: [ - '$ref', - 'additionalProperties', - 'allOf', - 'anyOf', - 'default', - 'description', - 'discriminator', - 'enum', - 'example', - 'examples', - 'exclusiveMaximum', - 'exclusiveMinimum', - 'format', - 'items', - 'maximum', - 'maxItems', - 'maxLength', - 'maxProperties', - 'minimum', - 'minItems', - 'minLength', - 'minProperties', - 'multipleOf', - 'not', - 'oneOf', - 'pattern', - 'patternProperties', - 'properties', - 'readOnly', - 'required', - 'title', - 'type', - 'uniqueItems', - 'unevaluatedProperties', - 'writeOnly', - ], - }, +export const description = + 'Verifies that schema objects include only allowed-listed keywords'; +export const message = '{{error}}'; +export const severity = 'error'; +export const formats = [oas3_1]; +export const resolved = true; +export const given = schemas; +export const then = { + function: allowedKeywords, + functionOptions: { + keywordAllowList: [ + '$ref', + 'additionalProperties', + 'allOf', + 'anyOf', + 'default', + 'description', + 'discriminator', + 'enum', + 'example', + 'examples', + 'exclusiveMaximum', + 'exclusiveMinimum', + 'format', + 'items', + 'maximum', + 'maxItems', + 'maxLength', + 'maxProperties', + 'minimum', + 'minItems', + 'minLength', + 'minProperties', + 'multipleOf', + 'not', + 'oneOf', + 'pattern', + 'patternProperties', + 'properties', + 'readOnly', + 'required', + 'title', + 'type', + 'uniqueItems', + 'unevaluatedProperties', + 'writeOnly', + ], }, }; diff --git a/packages/ruleset/src/rules/schema-naming-convention.js b/packages/ruleset/src/rules/schema-naming-convention.js index 42ced061b..539663e09 100644 --- a/packages/ruleset/src/rules/schema-naming-convention.js +++ b/packages/ruleset/src/rules/schema-naming-convention.js @@ -3,17 +3,17 @@ * SPDX-License-Identifier: Apache2.0 */ -const { oas3 } = require('@stoplight/spectral-formats'); -const { schemaNamingConvention } = require('../functions'); +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import { schemaNamingConvention } from '../functions/index.js'; -module.exports = { - description: 'Schemas should follow naming conventions in the API Handbook', - message: '{{error}}', - given: ['$'], - severity: 'warn', - formats: [oas3], - resolved: true, - then: { - function: schemaNamingConvention, - }, +export const description = + 'Schemas should follow naming conventions in the API Handbook'; +export const message = '{{error}}'; +export const given = ['$']; +export const severity = 'warn'; +export const formats = [oas3]; +export const resolved = true; +export const then = { + function: schemaNamingConvention, }; diff --git a/packages/ruleset/src/rules/schema-type-exists.js b/packages/ruleset/src/rules/schema-type-exists.js index e9beaaae3..356cf83df 100644 --- a/packages/ruleset/src/rules/schema-type-exists.js +++ b/packages/ruleset/src/rules/schema-type-exists.js @@ -3,21 +3,18 @@ * SPDX-License-Identifier: Apache2.0 */ -const { - schemas, -} = require('@ibm-cloud/openapi-ruleset-utilities/src/collections'); -const { oas3 } = require('@stoplight/spectral-formats'); -const { schemaTypeExists } = require('../functions'); +import { schemas } from '@ibm-cloud/openapi-ruleset-utilities/src/collections'; +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import { schemaTypeExists } from '../functions/index.js'; -module.exports = { - description: - 'Schemas and schema properties should have a non-empty `type` field. **This rule is disabled by default.**', - message: '{{error}}', - given: schemas, - severity: 'off', - formats: [oas3], - resolved: true, - then: { - function: schemaTypeExists, - }, +export const description = + 'Schemas and schema properties should have a non-empty `type` field. **This rule is disabled by default.**'; +export const message = '{{error}}'; +export const given = schemas; +export const severity = 'off'; +export const formats = [oas3]; +export const resolved = true; +export const then = { + function: schemaTypeExists, }; diff --git a/packages/ruleset/src/rules/schema-type-format.js b/packages/ruleset/src/rules/schema-type-format.js index ef7522c65..d27df080d 100644 --- a/packages/ruleset/src/rules/schema-type-format.js +++ b/packages/ruleset/src/rules/schema-type-format.js @@ -3,21 +3,18 @@ * SPDX-License-Identifier: Apache2.0 */ -const { - schemas, -} = require('@ibm-cloud/openapi-ruleset-utilities/src/collections'); -const { oas3 } = require('@stoplight/spectral-formats'); -const { schemaTypeFormat } = require('../functions'); +import { schemas } from '@ibm-cloud/openapi-ruleset-utilities/src/collections'; +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import { schemaTypeFormat } from '../functions/index.js'; -module.exports = { - description: - 'Schemas and schema properties must use a valid combination of type and format', - message: '{{error}}', - given: schemas, - severity: 'error', - formats: [oas3], - resolved: true, - then: { - function: schemaTypeFormat, - }, +export const description = + 'Schemas and schema properties must use a valid combination of type and format'; +export const message = '{{error}}'; +export const given = schemas; +export const severity = 'error'; +export const formats = [oas3]; +export const resolved = true; +export const then = { + function: schemaTypeFormat, }; diff --git a/packages/ruleset/src/rules/securityscheme-attributes.js b/packages/ruleset/src/rules/securityscheme-attributes.js index ed504ba23..c5344d12d 100644 --- a/packages/ruleset/src/rules/securityscheme-attributes.js +++ b/packages/ruleset/src/rules/securityscheme-attributes.js @@ -3,21 +3,18 @@ * SPDX-License-Identifier: Apache2.0 */ -const { - securitySchemes, -} = require('@ibm-cloud/openapi-ruleset-utilities/src/collections'); -const { oas3 } = require('@stoplight/spectral-formats'); -const { securitySchemeAttributes } = require('../functions'); +import { securitySchemes } from '@ibm-cloud/openapi-ruleset-utilities/src/collections'; +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import { securitySchemeAttributes } from '../functions/index.js'; -module.exports = { - description: - 'Validates the attributes of security schemes within an OpenAPI 3 document', - message: '{{error}}', - given: securitySchemes, - severity: 'error', - formats: [oas3], - resolved: true, - then: { - function: securitySchemeAttributes, - }, +export const description = + 'Validates the attributes of security schemes within an OpenAPI 3 document'; +export const message = '{{error}}'; +export const given = securitySchemes; +export const severity = 'error'; +export const formats = [oas3]; +export const resolved = true; +export const then = { + function: securitySchemeAttributes, }; diff --git a/packages/ruleset/src/rules/securityschemes.js b/packages/ruleset/src/rules/securityschemes.js index 7bedf430f..c50b57987 100644 --- a/packages/ruleset/src/rules/securityschemes.js +++ b/packages/ruleset/src/rules/securityschemes.js @@ -3,17 +3,17 @@ * SPDX-License-Identifier: Apache2.0 */ -const { oas3 } = require('@stoplight/spectral-formats'); -const { securitySchemes } = require('../functions'); +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import { securitySchemes } from '../functions/index.js'; -module.exports = { - description: 'Validates the security schemes within an OpenAPI 3 document', - message: '{{error}}', - given: ['$'], - severity: 'warn', - formats: [oas3], - resolved: true, - then: { - function: securitySchemes, - }, +export const description = + 'Validates the security schemes within an OpenAPI 3 document'; +export const message = '{{error}}'; +export const given = ['$']; +export const severity = 'warn'; +export const formats = [oas3]; +export const resolved = true; +export const then = { + function: securitySchemes, }; diff --git a/packages/ruleset/src/rules/server-variable-default-value.js b/packages/ruleset/src/rules/server-variable-default-value.js index 203e9e3b3..94de7feed 100644 --- a/packages/ruleset/src/rules/server-variable-default-value.js +++ b/packages/ruleset/src/rules/server-variable-default-value.js @@ -3,16 +3,15 @@ * SPDX-License-Identifier: Apache2.0 */ -const { oas3 } = require('@stoplight/spectral-formats'); -const { truthy } = require('@stoplight/spectral-functions'); +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import { truthy } from '@stoplight/spectral-functions'; -module.exports = { - description: 'Server variable should have default value', - severity: 'warn', - resolved: false, - formats: [oas3], - given: '$.servers[*][variables][*][default]', - then: { - function: truthy, - }, +export const description = 'Server variable should have default value'; +export const severity = 'warn'; +export const resolved = false; +export const formats = [oas3]; +export const given = '$.servers[*][variables][*][default]'; +export const then = { + function: truthy, }; diff --git a/packages/ruleset/src/rules/string-attributes.js b/packages/ruleset/src/rules/string-attributes.js index be19067ec..29a669d95 100644 --- a/packages/ruleset/src/rules/string-attributes.js +++ b/packages/ruleset/src/rules/string-attributes.js @@ -3,20 +3,18 @@ * SPDX-License-Identifier: Apache2.0 */ -const { - schemas, -} = require('@ibm-cloud/openapi-ruleset-utilities/src/collections'); -const { oas3 } = require('@stoplight/spectral-formats'); -const { stringAttributes } = require('../functions'); +import { schemas } from '@ibm-cloud/openapi-ruleset-utilities/src/collections'; +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import { stringAttributes } from '../functions/index.js'; -module.exports = { - description: 'String schemas should have certain attributes defined', - message: '{{error}}', - severity: 'warn', - formats: [oas3], - resolved: true, - given: schemas, - then: { - function: stringAttributes, - }, +export const description = + 'String schemas should have certain attributes defined'; +export const message = '{{error}}'; +export const severity = 'warn'; +export const formats = [oas3]; +export const resolved = true; +export const given = schemas; +export const then = { + function: stringAttributes, }; diff --git a/packages/ruleset/src/rules/summary-sentence-style.js b/packages/ruleset/src/rules/summary-sentence-style.js index 29feb4ffb..7d746d1dc 100644 --- a/packages/ruleset/src/rules/summary-sentence-style.js +++ b/packages/ruleset/src/rules/summary-sentence-style.js @@ -3,19 +3,19 @@ * SPDX-License-Identifier: Apache2.0 */ -const { oas3 } = require('@stoplight/spectral-formats'); -const { pattern } = require('@stoplight/spectral-functions'); +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import { pattern } from '@stoplight/spectral-functions'; -module.exports = { - description: 'Operation summaries should not have a trailing period', - severity: 'warn', - formats: [oas3], - resolved: false, - given: '$.paths[*][*].summary', - then: { - function: pattern, - functionOptions: { - notMatch: '\\.$', - }, +export const description = + 'Operation summaries should not have a trailing period'; +export const severity = 'warn'; +export const formats = [oas3]; +export const resolved = false; +export const given = '$.paths[*][*].summary'; +export const then = { + function: pattern, + functionOptions: { + notMatch: '\\.$', }, }; diff --git a/packages/ruleset/src/rules/typed-enum.js b/packages/ruleset/src/rules/typed-enum.js index f66616f86..f684e9549 100644 --- a/packages/ruleset/src/rules/typed-enum.js +++ b/packages/ruleset/src/rules/typed-enum.js @@ -3,10 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { - schemas, -} = require('@ibm-cloud/openapi-ruleset-utilities/src/collections'); -const { oas } = require('@stoplight/spectral-rulesets'); +import { schemas } from '@ibm-cloud/openapi-ruleset-utilities/src/collections'; +import { oas } from '@stoplight/spectral-rulesets'; // Spectral's "typed-enum" rule matches any object that happens to have a // "type" and "enum" field on it. This results in false positives when @@ -23,4 +21,4 @@ typedEnum.given = schemas.map(s => ) ); -module.exports = typedEnum; +export default typedEnum; diff --git a/packages/ruleset/src/rules/unevaluated-properties.js b/packages/ruleset/src/rules/unevaluated-properties.js index c100ac0d6..0566fb5f6 100644 --- a/packages/ruleset/src/rules/unevaluated-properties.js +++ b/packages/ruleset/src/rules/unevaluated-properties.js @@ -3,21 +3,18 @@ * SPDX-License-Identifier: Apache2.0 */ -const { oas3_1 } = require('@stoplight/spectral-formats'); -const { unevaluatedProperties } = require('../functions'); -const { - schemas, -} = require('@ibm-cloud/openapi-ruleset-utilities/src/collections'); +import { unevaluatedProperties } from '../functions/index.js'; +import { schemas } from '@ibm-cloud/openapi-ruleset-utilities/src/collections'; +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3_1 } = spectralFormats; -module.exports = { - description: - 'Enforces certain restrictions on the use of "unevaluatedProperties" within a schema.', - message: '{{error}}', - given: schemas, - severity: 'error', - formats: [oas3_1], - resolved: true, - then: { - function: unevaluatedProperties, - }, +export const description = + 'Enforces certain restrictions on the use of "unevaluatedProperties" within a schema.'; +export const message = '{{error}}'; +export const given = schemas; +export const severity = 'error'; +export const formats = [oas3_1]; +export const resolved = true; +export const then = { + function: unevaluatedProperties, }; diff --git a/packages/ruleset/src/rules/unique-parameter-request-property-names.js b/packages/ruleset/src/rules/unique-parameter-request-property-names.js index 8d5c911a7..16ccf2bf4 100644 --- a/packages/ruleset/src/rules/unique-parameter-request-property-names.js +++ b/packages/ruleset/src/rules/unique-parameter-request-property-names.js @@ -3,21 +3,18 @@ * SPDX-License-Identifier: Apache2.0 */ -const { - paths, -} = require('@ibm-cloud/openapi-ruleset-utilities/src/collections'); -const { oas3 } = require('@stoplight/spectral-formats'); -const { uniqueParameterRequestPropertyNames } = require('../functions'); +import { paths } from '@ibm-cloud/openapi-ruleset-utilities/src/collections'; +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import { uniqueParameterRequestPropertyNames } from '../functions/index.js'; -module.exports = { - description: - 'Names of requestBody properties should not be the same as operation parameter names', - message: '{{error}}', - given: paths, - severity: 'error', - formats: [oas3], - resolved: true, - then: { - function: uniqueParameterRequestPropertyNames, - }, +export const description = + 'Names of requestBody properties should not be the same as operation parameter names'; +export const message = '{{error}}'; +export const given = paths; +export const severity = 'error'; +export const formats = [oas3]; +export const resolved = true; +export const then = { + function: uniqueParameterRequestPropertyNames, }; diff --git a/packages/ruleset/src/rules/unused-tags.js b/packages/ruleset/src/rules/unused-tags.js index f0a77ba95..e339d8748 100644 --- a/packages/ruleset/src/rules/unused-tags.js +++ b/packages/ruleset/src/rules/unused-tags.js @@ -3,17 +3,16 @@ * SPDX-License-Identifier: Apache2.0 */ -const { oas3 } = require('@stoplight/spectral-formats'); -const { unusedTags } = require('../functions'); +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import { unusedTags } from '../functions/index.js'; -module.exports = { - description: 'Checks that each defined tag is actually used', - message: '{{error}}', - given: ['$'], - severity: 'warn', - formats: [oas3], - resolved: true, - then: { - function: unusedTags, - }, +export const description = 'Checks that each defined tag is actually used'; +export const message = '{{error}}'; +export const given = ['$']; +export const severity = 'warn'; +export const formats = [oas3]; +export const resolved = true; +export const then = { + function: unusedTags, }; diff --git a/packages/ruleset/src/rules/use-date-based-format.js b/packages/ruleset/src/rules/use-date-based-format.js index cf4276e27..7655700da 100644 --- a/packages/ruleset/src/rules/use-date-based-format.js +++ b/packages/ruleset/src/rules/use-date-based-format.js @@ -3,21 +3,18 @@ * SPDX-License-Identifier: Apache2.0 */ -const { - schemas, -} = require('@ibm-cloud/openapi-ruleset-utilities/src/collections'); -const { oas3 } = require('@stoplight/spectral-formats'); -const { useDateBasedFormat } = require('../functions'); +import { schemas } from '@ibm-cloud/openapi-ruleset-utilities/src/collections'; +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import { useDateBasedFormat } from '../functions/index.js'; -module.exports = { - description: - 'Heuristically determine when a schema should have a format of "date" or "date-time"', - message: '{{error}}', - severity: 'warn', - formats: [oas3], - resolved: true, - given: schemas, - then: { - function: useDateBasedFormat, - }, +export const description = + 'Heuristically determine when a schema should have a format of "date" or "date-time"'; +export const message = '{{error}}'; +export const severity = 'warn'; +export const formats = [oas3]; +export const resolved = true; +export const given = schemas; +export const then = { + function: useDateBasedFormat, }; diff --git a/packages/ruleset/src/rules/valid-path-segments.js b/packages/ruleset/src/rules/valid-path-segments.js index 0e0914638..b1e2f3d07 100644 --- a/packages/ruleset/src/rules/valid-path-segments.js +++ b/packages/ruleset/src/rules/valid-path-segments.js @@ -3,20 +3,18 @@ * SPDX-License-Identifier: Apache2.0 */ -const { - paths, -} = require('@ibm-cloud/openapi-ruleset-utilities/src/collections'); -const { oas3 } = require('@stoplight/spectral-formats'); -const { validatePathSegments } = require('../functions'); +import { paths } from '@ibm-cloud/openapi-ruleset-utilities/src/collections'; +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import { validatePathSegments } from '../functions/index.js'; -module.exports = { - description: 'Validates individual path segments within a path string', - message: '{{error}}', - formats: [oas3], - given: paths, - severity: 'error', - resolved: true, - then: { - function: validatePathSegments, - }, +export const description = + 'Validates individual path segments within a path string'; +export const message = '{{error}}'; +export const formats = [oas3]; +export const given = paths; +export const severity = 'error'; +export const resolved = true; +export const then = { + function: validatePathSegments, }; diff --git a/packages/ruleset/src/rules/valid-schema-example.js b/packages/ruleset/src/rules/valid-schema-example.js index 12c5fde21..d90b915b3 100644 --- a/packages/ruleset/src/rules/valid-schema-example.js +++ b/packages/ruleset/src/rules/valid-schema-example.js @@ -3,21 +3,18 @@ * SPDX-License-Identifier: Apache2.0 */ -const { - schemas, -} = require('@ibm-cloud/openapi-ruleset-utilities/src/collections'); -const { oas3 } = require('@stoplight/spectral-formats'); -const { validSchemaExample } = require('../functions'); +import { schemas } from '@ibm-cloud/openapi-ruleset-utilities/src/collections'; +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import { validSchemaExample } from '../functions/index.js'; -module.exports = { - description: - 'Schema examples should validate against the schema they are defined for', - message: '{{error}}', - given: schemas, - severity: 'warn', - formats: [oas3], - resolved: true, - then: { - function: validSchemaExample, - }, +export const description = + 'Schema examples should validate against the schema they are defined for'; +export const message = '{{error}}'; +export const given = schemas; +export const severity = 'warn'; +export const formats = [oas3]; +export const resolved = true; +export const then = { + function: validSchemaExample, }; diff --git a/packages/ruleset/src/rules/well-defined-dictionaries.js b/packages/ruleset/src/rules/well-defined-dictionaries.js index 48d773bad..e7943e711 100644 --- a/packages/ruleset/src/rules/well-defined-dictionaries.js +++ b/packages/ruleset/src/rules/well-defined-dictionaries.js @@ -3,21 +3,18 @@ * SPDX-License-Identifier: Apache2.0 */ -const { - schemas, -} = require('@ibm-cloud/openapi-ruleset-utilities/src/collections'); -const { oas3 } = require('@stoplight/spectral-formats'); -const { wellDefinedDictionaries } = require('../functions'); +import { schemas } from '@ibm-cloud/openapi-ruleset-utilities/src/collections'; +import spectralFormats from '@stoplight/spectral-formats'; +const { oas3 } = spectralFormats; +import { wellDefinedDictionaries } from '../functions/index.js'; -module.exports = { - description: - 'Dictionaries must be well defined and all values must share a single type.', - message: '{{error}}', - given: schemas, - severity: 'warn', - formats: [oas3], - resolved: true, - then: { - function: wellDefinedDictionaries, - }, +export const description = + 'Dictionaries must be well defined and all values must share a single type.'; +export const message = '{{error}}'; +export const given = schemas; +export const severity = 'warn'; +export const formats = [oas3]; +export const resolved = true; +export const then = { + function: wellDefinedDictionaries, }; diff --git a/packages/ruleset/src/utils/compute-refs-at-paths.js b/packages/ruleset/src/utils/compute-refs-at-paths.js index 21ec7f086..4ed529565 100644 --- a/packages/ruleset/src/utils/compute-refs-at-paths.js +++ b/packages/ruleset/src/utils/compute-refs-at-paths.js @@ -45,4 +45,4 @@ function computeRefsAtPaths(nodes) { return resultMap; } -module.exports = computeRefsAtPaths; +export default computeRefsAtPaths; diff --git a/packages/ruleset/src/utils/constants.js b/packages/ruleset/src/utils/constants.js index 992f92b2e..463dd8dd1 100644 --- a/packages/ruleset/src/utils/constants.js +++ b/packages/ruleset/src/utils/constants.js @@ -15,4 +15,4 @@ const operationMethods = [ 'trace', ]; -module.exports = operationMethods; +export default operationMethods; diff --git a/packages/ruleset/src/utils/date-based-utils.js b/packages/ruleset/src/utils/date-based-utils.js index 2d891bbb7..345f03e03 100644 --- a/packages/ruleset/src/utils/date-based-utils.js +++ b/packages/ruleset/src/utils/date-based-utils.js @@ -135,7 +135,7 @@ function isDateBasedValue(value) { return regularExpressions.some(r => r.test(value)); } -module.exports = { +export default { isDateBasedName, isDateBasedValue, }; diff --git a/packages/ruleset/src/utils/get-composite-schema-attribute.js b/packages/ruleset/src/utils/get-composite-schema-attribute.js index 38ecfdd24..6bf1c95b4 100644 --- a/packages/ruleset/src/utils/get-composite-schema-attribute.js +++ b/packages/ruleset/src/utils/get-composite-schema-attribute.js @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache2.0 */ -const { schemaHasConstraint } = require('@ibm-cloud/openapi-ruleset-utilities'); +import { schemaHasConstraint } from '@ibm-cloud/openapi-ruleset-utilities'; /** * Retrieves the value of "schema"'s attribute named "attrName" either directly from "schema" @@ -27,4 +27,4 @@ function getCompositeSchemaAttribute(schema, attrName) { return foundConstraint ? value : undefined; } -module.exports = getCompositeSchemaAttribute; +export default getCompositeSchemaAttribute; diff --git a/packages/ruleset/src/utils/get-resource-oriented-paths.js b/packages/ruleset/src/utils/get-resource-oriented-paths.js index 3b06fa67e..3ed1a17c7 100644 --- a/packages/ruleset/src/utils/get-resource-oriented-paths.js +++ b/packages/ruleset/src/utils/get-resource-oriented-paths.js @@ -3,8 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { isObject } = require('@ibm-cloud/openapi-ruleset-utilities'); -const getResourceSpecificSiblingPath = require('./get-resource-specific-sibling-path'); +import { isObject } from '@ibm-cloud/openapi-ruleset-utilities'; +import getResourceSpecificSiblingPath from './get-resource-specific-sibling-path.js'; /** * Cycles through the path strings within an API definition to collect the paths @@ -44,4 +44,4 @@ function getResourceOrientedPaths(apidef) { return pathStore; } -module.exports = getResourceOrientedPaths; +export default getResourceOrientedPaths; diff --git a/packages/ruleset/src/utils/get-resource-specific-sibling-path.js b/packages/ruleset/src/utils/get-resource-specific-sibling-path.js index 388d3e978..e8483e216 100644 --- a/packages/ruleset/src/utils/get-resource-specific-sibling-path.js +++ b/packages/ruleset/src/utils/get-resource-specific-sibling-path.js @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache2.0 */ -const { isObject } = require('@ibm-cloud/openapi-ruleset-utilities'); +import { isObject } from '@ibm-cloud/openapi-ruleset-utilities'; /** * Given a "generic" resource path string (e.g. '/foo'), look for a @@ -30,4 +30,4 @@ function getResourceSpecificSiblingPath(path, apidef) { return Object.keys(apidef.paths).find(p => siblingPathRE.test(p)); } -module.exports = getResourceSpecificSiblingPath; +export default getResourceSpecificSiblingPath; diff --git a/packages/ruleset/src/utils/get-response-codes.js b/packages/ruleset/src/utils/get-response-codes.js index 6ad101600..03a7788cb 100644 --- a/packages/ruleset/src/utils/get-response-codes.js +++ b/packages/ruleset/src/utils/get-response-codes.js @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache2.0 */ -const { isObject } = require('@ibm-cloud/openapi-ruleset-utilities'); +import { isObject } from '@ibm-cloud/openapi-ruleset-utilities'; /** * For an OpenAPI 'responses' object, gather all of the defined @@ -21,4 +21,4 @@ function getResponseCodes(responses) { return [statusCodes, successCodes]; } -module.exports = getResponseCodes; +export default getResponseCodes; diff --git a/packages/ruleset/src/utils/get-schema-name-at-path.js b/packages/ruleset/src/utils/get-schema-name-at-path.js index d793846fb..34ca465c2 100644 --- a/packages/ruleset/src/utils/get-schema-name-at-path.js +++ b/packages/ruleset/src/utils/get-schema-name-at-path.js @@ -82,4 +82,4 @@ function getSchemaNameFromReference(reference) { return reference.split('.').at(-1); } -module.exports = getSchemaNameAtPath; +export default getSchemaNameAtPath; diff --git a/packages/ruleset/src/utils/index.js b/packages/ruleset/src/utils/index.js index 5ea3ea175..88a2dd87e 100644 --- a/packages/ruleset/src/utils/index.js +++ b/packages/ruleset/src/utils/index.js @@ -3,27 +3,83 @@ * SPDX-License-Identifier: Apache2.0 */ -module.exports = { - computeRefsAtPaths: require('./compute-refs-at-paths'), - getCompositeSchemaAttribute: require('./get-composite-schema-attribute'), - getResourceSpecificSiblingPath: require('./get-resource-specific-sibling-path'), - getResourceOrientedPaths: require('./get-resource-oriented-paths'), - getResponseCodes: require('./get-response-codes'), - getSchemaNameAtPath: require('./get-schema-name-at-path'), - isCreateOperation: require('./is-create-operation'), - isDeprecated: require('./is-deprecated'), - isEmptyObjectSchema: require('./is-empty-object-schema'), - isOperationOfType: require('./is-operation-of-type'), - isRefSiblingSchema: require('./is-ref-sibling-schema'), - isRequestBodyExploded: require('./is-requestbody-exploded'), - LoggerFactory: require('./logger-factory'), - mergeAllOfSchemaProperties: require('./merge-allof-schema-properties'), - operationMethods: require('./constants'), - pathHasMinimallyRepresentedResource: require('./path-has-minimally-represented-resource'), - pathMatchesRegexp: require('./path-matches-regexp'), - ...require('./date-based-utils'), - ...require('./mimetype-utils'), - ...require('./pagination-utils'), - ...require('./path-location-utils'), - ...require('./schema-finding-utils'), +import computeRefsAtPaths from './compute-refs-at-paths.js'; +import getCompositeSchemaAttribute from './get-composite-schema-attribute.js'; +import getResourceSpecificSiblingPath from './get-resource-specific-sibling-path.js'; +import getResourceOrientedPaths from './get-resource-oriented-paths.js'; +import getResponseCodes from './get-response-codes.js'; +import getSchemaNameAtPath from './get-schema-name-at-path.js'; +import isCreateOperation from './is-create-operation.js'; +import isDeprecated from './is-deprecated.js'; +import isEmptyObjectSchema from './is-empty-object-schema.js'; +import isOperationOfType from './is-operation-of-type.js'; +import isRefSiblingSchema from './is-ref-sibling-schema.js'; +import isRequestBodyExploded from './is-requestbody-exploded.js'; +import LoggerFactory from './logger-factory.js'; +import mergeAllOfSchemaProperties from './merge-allof-schema-properties.js'; +import operationMethods from './constants.js'; +import pathHasMinimallyRepresentedResource from './path-has-minimally-represented-resource.js'; +import pathMatchesRegexp from './path-matches-regexp.js'; +import dateBasedUtils from './date-based-utils.js'; +import mimetypeUtils from './mimetype-utils.js'; +import paginationUtils from './pagination-utils.js'; +import pathLocationUtils from './path-location-utils.js'; +import * as schemaFindingUtils from './schema-finding-utils.js'; + +export { + computeRefsAtPaths, + getCompositeSchemaAttribute, + getResourceSpecificSiblingPath, + getResourceOrientedPaths, + getResponseCodes, + getSchemaNameAtPath, + isCreateOperation, + isDeprecated, + isEmptyObjectSchema, + isOperationOfType, + isRefSiblingSchema, + isRequestBodyExploded, + LoggerFactory, + mergeAllOfSchemaProperties, + operationMethods, + pathHasMinimallyRepresentedResource, + pathMatchesRegexp, }; + +// Re-export all named exports from utility modules +export const { isDateBasedName, isDateBasedValue } = dateBasedUtils; + +export const { + isFormMimeType, + isJsonMimeType, + isJsonPatchMimeType, + isMergePatchMimeType, + supportsJsonContent, +} = mimetypeUtils; + +export const { + getOffsetParamIndex, + getLimitParamIndex, + getPageTokenParamIndex, + getSuccessCode, + getResponseSchema, + getPaginatedOperationFromPath, +} = paginationUtils; + +export const { + isParamContentSchema, + isParamSchema, + isPrimarySchema, + isRequestBodySchema, + isResponseSchema, + isSchemaProperty, + isPathParam, + pathHasTemplates, + pathMatchesTemplate, +} = pathLocationUtils; + +export const { + getSuccessResponseSchemaForOperation, + getRequestBodySchemaForOperation, + getCanonicalSchemaForPath, +} = schemaFindingUtils; diff --git a/packages/ruleset/src/utils/is-create-operation.js b/packages/ruleset/src/utils/is-create-operation.js index 84134d770..63023aa3a 100644 --- a/packages/ruleset/src/utils/is-create-operation.js +++ b/packages/ruleset/src/utils/is-create-operation.js @@ -3,9 +3,9 @@ * SPDX-License-Identifier: Apache2.0 */ -const { isObject } = require('@ibm-cloud/openapi-ruleset-utilities'); -const isOperationOfType = require('./is-operation-of-type'); -const getResourceSpecificSiblingPath = require('./get-resource-specific-sibling-path'); +import { isObject } from '@ibm-cloud/openapi-ruleset-utilities'; +import isOperationOfType from './is-operation-of-type.js'; +import getResourceSpecificSiblingPath from './get-resource-specific-sibling-path.js'; /** * Returns `true` if the operation represents a "create" operation. @@ -39,4 +39,4 @@ function isCreateOperation(operation, path, apidef) { return !!siblingPath; } -module.exports = isCreateOperation; +export default isCreateOperation; diff --git a/packages/ruleset/src/utils/is-deprecated.js b/packages/ruleset/src/utils/is-deprecated.js index 33feb8b52..9a0c761f8 100644 --- a/packages/ruleset/src/utils/is-deprecated.js +++ b/packages/ruleset/src/utils/is-deprecated.js @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache2.0 */ -const { isObject } = require('@ibm-cloud/openapi-ruleset-utilities'); +import { isObject } from '@ibm-cloud/openapi-ruleset-utilities'; /** * Returns `true` if the input is an object with deprecated=true. @@ -12,4 +12,4 @@ const isDeprecated = obj => { return isObject(obj) && obj.deprecated === true; }; -module.exports = isDeprecated; +export default isDeprecated; diff --git a/packages/ruleset/src/utils/is-empty-object-schema.js b/packages/ruleset/src/utils/is-empty-object-schema.js index ddc2ebea9..ffaadccc5 100644 --- a/packages/ruleset/src/utils/is-empty-object-schema.js +++ b/packages/ruleset/src/utils/is-empty-object-schema.js @@ -47,4 +47,4 @@ function isEmptyObjectSchema(schema) { return true; } -module.exports = isEmptyObjectSchema; +export default isEmptyObjectSchema; diff --git a/packages/ruleset/src/utils/is-operation-of-type.js b/packages/ruleset/src/utils/is-operation-of-type.js index 9d3419f2b..5b819f656 100644 --- a/packages/ruleset/src/utils/is-operation-of-type.js +++ b/packages/ruleset/src/utils/is-operation-of-type.js @@ -21,4 +21,4 @@ function isOperationOfType(type, path) { return type === path[path.length - 1].toString().trim().toLowerCase(); } -module.exports = isOperationOfType; +export default isOperationOfType; diff --git a/packages/ruleset/src/utils/is-ref-sibling-schema.js b/packages/ruleset/src/utils/is-ref-sibling-schema.js index ecf3aae76..41271542c 100644 --- a/packages/ruleset/src/utils/is-ref-sibling-schema.js +++ b/packages/ruleset/src/utils/is-ref-sibling-schema.js @@ -98,4 +98,4 @@ function containsOnlySupportedAttributes(schema) { return true; } -module.exports = isRefSiblingSchema; +export default isRefSiblingSchema; diff --git a/packages/ruleset/src/utils/is-requestbody-exploded.js b/packages/ruleset/src/utils/is-requestbody-exploded.js index 8378a6f85..8c3d8dd13 100644 --- a/packages/ruleset/src/utils/is-requestbody-exploded.js +++ b/packages/ruleset/src/utils/is-requestbody-exploded.js @@ -1,5 +1,9 @@ -const { isArraySchema } = require('@ibm-cloud/openapi-ruleset-utilities'); -const { supportsJsonContent } = require('./mimetype-utils'); +import utils from '@ibm-cloud/openapi-ruleset-utilities'; +import mimetypeUtils from './mimetype-utils.js'; + +const { isArraySchema } = utils; + +const { supportsJsonContent } = mimetypeUtils; /** * Returns true iff the specified requestBody defines JSON content that will be exploded by @@ -89,4 +93,4 @@ function isSchemaAbstract(schema) { return false; } -module.exports = isRequestBodyExploded; +export default isRequestBodyExploded; diff --git a/packages/ruleset/src/utils/logger-factory.js b/packages/ruleset/src/utils/logger-factory.js index 0ea4c35d3..ae9d2ad8f 100644 --- a/packages/ruleset/src/utils/logger-factory.js +++ b/packages/ruleset/src/utils/logger-factory.js @@ -3,17 +3,19 @@ * SPDX-License-Identifier: Apache2.0 */ -const log = require('loglevel'); -const minimatch = require('minimatch'); -const prefix = require('loglevel-plugin-prefix'); -const chalk = require('chalk'); +import log from 'loglevel'; +import { minimatch as _minimatch } from 'minimatch'; +import prefix from 'loglevel-plugin-prefix'; +const { reg, apply } = prefix; +import chalk from 'chalk'; +const { magenta, cyan, green, yellow, red } = chalk; const colors = { - TRACE: chalk.magenta, - DEBUG: chalk.cyan, - INFO: chalk.green, - WARN: chalk.yellow, - ERROR: chalk.red, + TRACE: magenta, + DEBUG: cyan, + INFO: green, + WARN: yellow, + ERROR: red, }; /** @@ -21,15 +23,15 @@ const colors = { * The primary benefit provided by this factory class is the ability to honor logging-level-related * command-line options for loggers that haven't yet been created. */ -module.exports = class LoggerFactory { +export default class LoggerFactory { constructor() { this.rootLogger = log; this.loggerSettings = []; // Register the prefix handler with the loglevel. // This will control the [] message prefixes. - prefix.reg(log); - prefix.apply(log, { + reg(log); + apply(log, { levelFormatter(level) { return level.toUpperCase(); }, @@ -110,7 +112,7 @@ module.exports = class LoggerFactory { // If the name of the logger matches the (potential) glob-pattern // previously-specified via the command-line, then apply the // specified log level to that logger. - if (minimatch.minimatch(name, setting.loggerName)) { + if (_minimatch(name, setting.loggerName)) { logger.setLevel(setting.logLevel); } } @@ -127,7 +129,7 @@ module.exports = class LoggerFactory { this.applyLoggerSettings(key, this.rootLogger.getLogger(key)); } } -}; +} const validLevels = ['error', 'warn', 'info', 'debug', 'trace']; function checkLevel(logLevel) { diff --git a/packages/ruleset/src/utils/merge-allof-schema-properties.js b/packages/ruleset/src/utils/merge-allof-schema-properties.js index dd18b7b12..b9e529e96 100644 --- a/packages/ruleset/src/utils/merge-allof-schema-properties.js +++ b/packages/ruleset/src/utils/merge-allof-schema-properties.js @@ -3,7 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { isObject, mergeWith } = require('lodash'); +import isObject from 'lodash/isObject.js'; +import mergeWith from 'lodash/mergeWith.js'; // Takes a schema, and if an allOf field is provided, // merges all allOf schema properties to create one schema @@ -75,4 +76,4 @@ function customizer(targetValue, sourceValue) { : undefined; } -module.exports = mergeAllOfSchemaProperties; +export default mergeAllOfSchemaProperties; diff --git a/packages/ruleset/src/utils/mimetype-utils.js b/packages/ruleset/src/utils/mimetype-utils.js index c98acf726..ccd707f8b 100644 --- a/packages/ruleset/src/utils/mimetype-utils.js +++ b/packages/ruleset/src/utils/mimetype-utils.js @@ -82,7 +82,7 @@ function supportsJsonContent(m) { return isJsonMimeType(m) || isJsonPatchMimeType(m) || isMergePatchMimeType(m); } -module.exports = { +export default { isFormMimeType, isJsonMimeType, isJsonPatchMimeType, diff --git a/packages/ruleset/src/utils/pagination-utils.js b/packages/ruleset/src/utils/pagination-utils.js index b6f747fc2..0b21a388e 100644 --- a/packages/ruleset/src/utils/pagination-utils.js +++ b/packages/ruleset/src/utils/pagination-utils.js @@ -2,9 +2,11 @@ * Copyright 2023 - 2024 IBM Corporation. * SPDX-License-Identifier: Apache2.0 */ -const { isArraySchema } = require('@ibm-cloud/openapi-ruleset-utilities'); -const mergeAllOfSchemaProperties = require('./merge-allof-schema-properties'); -const { isJsonMimeType } = require('./mimetype-utils'); +import utils from '@ibm-cloud/openapi-ruleset-utilities'; +import mergeAllOfSchemaProperties from './merge-allof-schema-properties.js'; +import mimetypeUtils from './mimetype-utils.js'; +const { isJsonMimeType } = mimetypeUtils; +const { isArraySchema } = utils; /** * Looks for a query parameter called "offset" and returns the @@ -192,7 +194,7 @@ function getPaginatedOperationFromPath(pathItem, path, logInfo) { return operation; } -module.exports = { +export default { getOffsetParamIndex, getPageTokenParamIndex, getSuccessCode, diff --git a/packages/ruleset/src/utils/path-has-minimally-represented-resource.js b/packages/ruleset/src/utils/path-has-minimally-represented-resource.js index 909d0077e..f7905799f 100644 --- a/packages/ruleset/src/utils/path-has-minimally-represented-resource.js +++ b/packages/ruleset/src/utils/path-has-minimally-represented-resource.js @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache2.0 */ -const { isObject } = require('@ibm-cloud/openapi-ruleset-utilities'); +import { isObject } from '@ibm-cloud/openapi-ruleset-utilities'; /** * This function checks for a "minimally represented resource" (i.e. a resource @@ -38,4 +38,4 @@ function pathHasMinimallyRepresentedResource(path, apidef) { return false; } -module.exports = pathHasMinimallyRepresentedResource; +export default pathHasMinimallyRepresentedResource; diff --git a/packages/ruleset/src/utils/path-location-utils.js b/packages/ruleset/src/utils/path-location-utils.js index 95f5c9307..a63eb6f31 100644 --- a/packages/ruleset/src/utils/path-location-utils.js +++ b/packages/ruleset/src/utils/path-location-utils.js @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache2.0 */ -const pathMatchesRegexp = require('./path-matches-regexp'); +import pathMatchesRegexp from './path-matches-regexp.js'; /** * Returns true if the path points to a schema object within @@ -109,7 +109,7 @@ function isSchemaProperty(path) { return matches; } -module.exports = { +export default { isParamContentSchema, isParamSchema, isPrimarySchema, diff --git a/packages/ruleset/src/utils/path-matches-regexp.js b/packages/ruleset/src/utils/path-matches-regexp.js index 2185e0774..75a966e3f 100644 --- a/packages/ruleset/src/utils/path-matches-regexp.js +++ b/packages/ruleset/src/utils/path-matches-regexp.js @@ -28,4 +28,4 @@ const pathMatchesRegexp = (path, regexp) => { return pathString.match(regexp) ? true : false; }; -module.exports = pathMatchesRegexp; +export default pathMatchesRegexp; diff --git a/packages/ruleset/src/utils/schema-finding-utils.js b/packages/ruleset/src/utils/schema-finding-utils.js index 5d4e99124..d2bdc969f 100644 --- a/packages/ruleset/src/utils/schema-finding-utils.js +++ b/packages/ruleset/src/utils/schema-finding-utils.js @@ -3,16 +3,13 @@ * SPDX-License-Identifier: Apache2.0 */ -const { isObject } = require('@ibm-cloud/openapi-ruleset-utilities'); -const getResponseCodes = require('./get-response-codes'); +import { isObject } from '@ibm-cloud/openapi-ruleset-utilities'; +import getResponseCodes from './get-response-codes.js'; +import mimetypeUtils from './mimetype-utils.js'; +import getSchemaNameAtPath from './get-schema-name-at-path.js'; -const { - isJsonMimeType, - isJsonPatchMimeType, - isMergePatchMimeType, -} = require('./mimetype-utils'); - -const getSchemaNameAtPath = require('./get-schema-name-at-path'); +const { isJsonMimeType, isJsonPatchMimeType, isMergePatchMimeType } = + mimetypeUtils; /** * Takes an operation object/path combo and finds the JSON success @@ -213,7 +210,7 @@ function getCanonicalSchemaForPath( }; } -module.exports = { +export { getSuccessResponseSchemaForOperation, getRequestBodySchemaForOperation, getCanonicalSchemaForPath, diff --git a/packages/ruleset/test/meta/rule-style.test.js b/packages/ruleset/test/meta/rule-style.test.js index 535fabf17..fe192b9c4 100644 --- a/packages/ruleset/test/meta/rule-style.test.js +++ b/packages/ruleset/test/meta/rule-style.test.js @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache2.0 */ -const rules = require('../../src/rules'); +import rules from '../../src/rules'; // Test cases to enforce rule style describe.each(Object.entries(rules))( diff --git a/packages/ruleset/test/meta/spectral-depedencies.test.js b/packages/ruleset/test/meta/spectral-depedencies.test.js index 624ee18b3..09cd178b5 100644 --- a/packages/ruleset/test/meta/spectral-depedencies.test.js +++ b/packages/ruleset/test/meta/spectral-depedencies.test.js @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache2.0 */ -const { testRule } = require('../test-utils'); +import { testRule } from '../test-utils'; // Test cases for dependencies on subtle and possibly fragile Spectral behavior describe('Spectral behavior dependencies', () => { diff --git a/packages/ruleset/test/rules/accept-and-return-models.test.js b/packages/ruleset/test/rules/accept-and-return-models.test.js index ada383235..a9299395e 100644 --- a/packages/ruleset/test/rules/accept-and-return-models.test.js +++ b/packages/ruleset/test/rules/accept-and-return-models.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { acceptAndReturnModels } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { acceptAndReturnModels } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const rule = acceptAndReturnModels; const ruleId = 'ibm-accept-and-return-models'; diff --git a/packages/ruleset/test/rules/accept-header.test.js b/packages/ruleset/test/rules/accept-header.test.js index 6d1c63d7e..e553f8f2d 100644 --- a/packages/ruleset/test/rules/accept-header.test.js +++ b/packages/ruleset/test/rules/accept-header.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { acceptHeader } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { acceptHeader } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const rule = acceptHeader; const ruleId = 'ibm-no-accept-header'; diff --git a/packages/ruleset/test/rules/anchored-patterns.test.js b/packages/ruleset/test/rules/anchored-patterns.test.js index 4dfaa3e62..a95009140 100644 --- a/packages/ruleset/test/rules/anchored-patterns.test.js +++ b/packages/ruleset/test/rules/anchored-patterns.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { anchoredPatterns } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { anchoredPatterns } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const rule = anchoredPatterns; const ruleId = 'ibm-anchored-patterns'; diff --git a/packages/ruleset/test/rules/api-symmetry.test.js b/packages/ruleset/test/rules/api-symmetry.test.js index bb4d8a24f..7de4e0a76 100644 --- a/packages/ruleset/test/rules/api-symmetry.test.js +++ b/packages/ruleset/test/rules/api-symmetry.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { apiSymmetry } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { apiSymmetry } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const rule = apiSymmetry; const ruleId = 'ibm-api-symmetry'; diff --git a/packages/ruleset/test/rules/array-attributes.test.js b/packages/ruleset/test/rules/array-attributes.test.js index 37cf1cd77..2a2e36b79 100644 --- a/packages/ruleset/test/rules/array-attributes.test.js +++ b/packages/ruleset/test/rules/array-attributes.test.js @@ -3,8 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { arrayAttributes } = require('../../src/rules'); -const { unitTestRule, severityCodes } = require('../test-utils'); +import { arrayAttributes } from '../../src/rules'; +import { unitTestRule, severityCodes } from '../test-utils'; const rule = arrayAttributes; const ruleId = 'ibm-array-attributes'; diff --git a/packages/ruleset/test/rules/array-of-arrays.test.js b/packages/ruleset/test/rules/array-of-arrays.test.js index b6d28c2f3..bf3d8a6bc 100644 --- a/packages/ruleset/test/rules/array-of-arrays.test.js +++ b/packages/ruleset/test/rules/array-of-arrays.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { arrayOfArrays } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { arrayOfArrays } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const rule = arrayOfArrays; const ruleId = 'ibm-no-array-of-arrays'; diff --git a/packages/ruleset/test/rules/array-responses.test.js b/packages/ruleset/test/rules/array-responses.test.js index 2a837e699..9daddb101 100644 --- a/packages/ruleset/test/rules/array-responses.test.js +++ b/packages/ruleset/test/rules/array-responses.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { arrayResponses } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { arrayResponses } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const rule = arrayResponses; const ruleId = 'ibm-no-array-responses'; diff --git a/packages/ruleset/test/rules/authorization-header.test.js b/packages/ruleset/test/rules/authorization-header.test.js index ccd88b851..78b4de70b 100644 --- a/packages/ruleset/test/rules/authorization-header.test.js +++ b/packages/ruleset/test/rules/authorization-header.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { authorizationHeader } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { authorizationHeader } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const rule = authorizationHeader; const ruleId = 'ibm-no-authorization-header'; diff --git a/packages/ruleset/test/rules/avoid-multiple-types.test.js b/packages/ruleset/test/rules/avoid-multiple-types.test.js index 2c0ba529e..6233e2974 100644 --- a/packages/ruleset/test/rules/avoid-multiple-types.test.js +++ b/packages/ruleset/test/rules/avoid-multiple-types.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { avoidMultipleTypes } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { avoidMultipleTypes } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const rule = avoidMultipleTypes; const ruleId = 'ibm-avoid-multiple-types'; diff --git a/packages/ruleset/test/rules/binary-schemas.test.js b/packages/ruleset/test/rules/binary-schemas.test.js index dc6345794..a7857080e 100644 --- a/packages/ruleset/test/rules/binary-schemas.test.js +++ b/packages/ruleset/test/rules/binary-schemas.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { binarySchemas } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { binarySchemas } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const rule = binarySchemas; const ruleId = 'ibm-binary-schemas'; diff --git a/packages/ruleset/test/rules/circular-refs.test.js b/packages/ruleset/test/rules/circular-refs.test.js index 1c595ce15..4e330579f 100644 --- a/packages/ruleset/test/rules/circular-refs.test.js +++ b/packages/ruleset/test/rules/circular-refs.test.js @@ -3,12 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { vi, beforeEach } from 'vitest'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; let rule; const ruleId = 'ibm-no-circular-refs'; @@ -20,9 +16,10 @@ describe(`Spectral rule: ${ruleId}`, () => { // to store the set of unique flagged $ref values. // Because the global variable's value is retained across testcases, we need to reset // everything before each testcase. - beforeEach(() => { - jest.resetModules(); - rule = require('../../src/rules').circularRefs; + beforeEach(async () => { + vi.resetModules(); + const rulesModule = await import('../../src/rules/index.js'); + rule = rulesModule.circularRefs; }); describe('Should not yield errors', () => { diff --git a/packages/ruleset/test/rules/collection-array-property.test.js b/packages/ruleset/test/rules/collection-array-property.test.js index aff906a6d..b0e3c1bee 100644 --- a/packages/ruleset/test/rules/collection-array-property.test.js +++ b/packages/ruleset/test/rules/collection-array-property.test.js @@ -3,14 +3,9 @@ * SPDX-License-Identifier: Apache2.0 */ -const { collectionArrayProperty } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); -const { LoggerFactory } = require('../../src/utils'); +import { collectionArrayProperty } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; +import { LoggerFactory } from '../../src/utils'; const rule = collectionArrayProperty; const ruleId = 'ibm-collection-array-property'; @@ -37,7 +32,7 @@ describe(`Spectral rule: ${ruleId}`, () => { }; const logger = LoggerFactory.getInstance().getLogger(ruleId); - const debugSpy = jest.spyOn(logger, 'error').mockImplementation(() => {}); + const debugSpy = vi.spyOn(logger, 'error').mockImplementation(() => {}); const results = await testRule(ruleId, rule, testDocument); diff --git a/packages/ruleset/test/rules/consecutive-path-segments.test.js b/packages/ruleset/test/rules/consecutive-path-segments.test.js index b05db1560..c0e46544e 100644 --- a/packages/ruleset/test/rules/consecutive-path-segments.test.js +++ b/packages/ruleset/test/rules/consecutive-path-segments.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { consecutivePathSegments } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { consecutivePathSegments } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const rule = consecutivePathSegments; const ruleId = 'ibm-no-consecutive-path-parameter-segments'; diff --git a/packages/ruleset/test/rules/content-contains-schema.test.js b/packages/ruleset/test/rules/content-contains-schema.test.js index 5c1a386a1..bfe239b1d 100644 --- a/packages/ruleset/test/rules/content-contains-schema.test.js +++ b/packages/ruleset/test/rules/content-contains-schema.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { contentContainsSchema } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { contentContainsSchema } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const ruleId = 'ibm-content-contains-schema'; const rule = contentContainsSchema; diff --git a/packages/ruleset/test/rules/content-type-header.test.js b/packages/ruleset/test/rules/content-type-header.test.js index 82970e5d0..10554611d 100644 --- a/packages/ruleset/test/rules/content-type-header.test.js +++ b/packages/ruleset/test/rules/content-type-header.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { contentTypeHeader } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { contentTypeHeader } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const rule = contentTypeHeader; const ruleId = 'ibm-no-content-type-header'; diff --git a/packages/ruleset/test/rules/content-type-is-specific.test.js b/packages/ruleset/test/rules/content-type-is-specific.test.js index c99a6035c..ee3d39d8b 100644 --- a/packages/ruleset/test/rules/content-type-is-specific.test.js +++ b/packages/ruleset/test/rules/content-type-is-specific.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { contentTypeIsSpecific } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { contentTypeIsSpecific } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const ruleId = 'ibm-content-type-is-specific'; const rule = contentTypeIsSpecific; diff --git a/packages/ruleset/test/rules/delete-body.test.js b/packages/ruleset/test/rules/delete-body.test.js index b5db85d10..e967852b8 100644 --- a/packages/ruleset/test/rules/delete-body.test.js +++ b/packages/ruleset/test/rules/delete-body.test.js @@ -3,22 +3,15 @@ * SPDX-License-Identifier: Apache2.0 */ -const { deleteBody } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { deleteBody } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; -const rule = deleteBody; +// Create a mutable copy of the rule since the imported module is read-only +const rule = { ...deleteBody, severity: 'warn' }; const ruleId = 'ibm-no-body-for-delete'; const expectedSeverity = severityCodes.warning; const expectedMsg = 'DELETE operations should not contain a requestBody'; -// We need to set this because the rule is now deprecated and disabled. -rule.severity = 'warn'; - describe(`Spectral rule: ${ruleId}`, () => { describe('Should not yield errors', () => { it('Clean spec', async () => { diff --git a/packages/ruleset/test/rules/discriminator-property.test.js b/packages/ruleset/test/rules/discriminator-property.test.js index 71534078c..8715177c8 100644 --- a/packages/ruleset/test/rules/discriminator-property.test.js +++ b/packages/ruleset/test/rules/discriminator-property.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { discriminatorPropertyExists } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { discriminatorPropertyExists } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const ruleId = 'ibm-discriminator-property'; const rule = discriminatorPropertyExists; diff --git a/packages/ruleset/test/rules/duplicate-path-parameter.test.js b/packages/ruleset/test/rules/duplicate-path-parameter.test.js index f34e80b6c..ee63ddf5a 100644 --- a/packages/ruleset/test/rules/duplicate-path-parameter.test.js +++ b/packages/ruleset/test/rules/duplicate-path-parameter.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { duplicatePathParameter } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { duplicatePathParameter } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const rule = duplicatePathParameter; const ruleId = 'ibm-avoid-repeating-path-parameters'; diff --git a/packages/ruleset/test/rules/enum-casing-convention.test.js b/packages/ruleset/test/rules/enum-casing-convention.test.js index 9a4876b9c..1ba99ef8e 100644 --- a/packages/ruleset/test/rules/enum-casing-convention.test.js +++ b/packages/ruleset/test/rules/enum-casing-convention.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { enumCasingConvention } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { enumCasingConvention } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const rule = enumCasingConvention; const ruleId = 'ibm-enum-casing-convention'; diff --git a/packages/ruleset/test/rules/error-content-type-is-json.test.js b/packages/ruleset/test/rules/error-content-type-is-json.test.js index 3fde544c9..5093f85e3 100644 --- a/packages/ruleset/test/rules/error-content-type-is-json.test.js +++ b/packages/ruleset/test/rules/error-content-type-is-json.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { errorContentTypeIsJson } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { errorContentTypeIsJson } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const ruleId = 'ibm-error-content-type-is-json'; const rule = errorContentTypeIsJson; diff --git a/packages/ruleset/test/rules/error-response-schemas.test.js b/packages/ruleset/test/rules/error-response-schemas.test.js index 0bb187012..3b49bbc68 100644 --- a/packages/ruleset/test/rules/error-response-schemas.test.js +++ b/packages/ruleset/test/rules/error-response-schemas.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { errorResponseSchemas } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { errorResponseSchemas } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const rule = errorResponseSchemas; const ruleId = 'ibm-error-response-schemas'; diff --git a/packages/ruleset/test/rules/etag-header-exists.test.js b/packages/ruleset/test/rules/etag-header-exists.test.js index 2b707caca..5340529aa 100644 --- a/packages/ruleset/test/rules/etag-header-exists.test.js +++ b/packages/ruleset/test/rules/etag-header-exists.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { etagHeaderExists } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { etagHeaderExists } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const rule = etagHeaderExists; const ruleId = 'ibm-etag-header'; diff --git a/packages/ruleset/test/rules/examples-name-contains-space.test.js b/packages/ruleset/test/rules/examples-name-contains-space.test.js index bfc953a0b..c753c3a64 100644 --- a/packages/ruleset/test/rules/examples-name-contains-space.test.js +++ b/packages/ruleset/test/rules/examples-name-contains-space.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { examplesNameContainsSpace } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { examplesNameContainsSpace } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const ruleId = 'ibm-no-space-in-example-name'; const rule = examplesNameContainsSpace; diff --git a/packages/ruleset/test/rules/if-modified-since-header.test.js b/packages/ruleset/test/rules/if-modified-since-header.test.js index c1ddbea9e..ae94be1fe 100644 --- a/packages/ruleset/test/rules/if-modified-since-header.test.js +++ b/packages/ruleset/test/rules/if-modified-since-header.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { ifModifiedSinceHeader } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { ifModifiedSinceHeader } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const rule = ifModifiedSinceHeader; const ruleId = 'ibm-no-if-modified-since-header'; diff --git a/packages/ruleset/test/rules/if-unmodified-since-header.test.js b/packages/ruleset/test/rules/if-unmodified-since-header.test.js index 33ca2b5d1..f14e51f55 100644 --- a/packages/ruleset/test/rules/if-unmodified-since-header.test.js +++ b/packages/ruleset/test/rules/if-unmodified-since-header.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { ifUnmodifiedSinceHeader } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { ifUnmodifiedSinceHeader } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const rule = ifUnmodifiedSinceHeader; const ruleId = 'ibm-no-if-unmodified-since-header'; diff --git a/packages/ruleset/test/rules/inline-schemas.test.js b/packages/ruleset/test/rules/inline-schemas.test.js index da8ea7777..be8ab9741 100644 --- a/packages/ruleset/test/rules/inline-schemas.test.js +++ b/packages/ruleset/test/rules/inline-schemas.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { inlineSchemas } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { inlineSchemas } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const rule = inlineSchemas; const ruleId = 'ibm-avoid-inline-schemas'; diff --git a/packages/ruleset/test/rules/integer-attributes.test.js b/packages/ruleset/test/rules/integer-attributes.test.js index 5687de888..44c0e1326 100644 --- a/packages/ruleset/test/rules/integer-attributes.test.js +++ b/packages/ruleset/test/rules/integer-attributes.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { integerAttributes } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { integerAttributes } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const rule = integerAttributes; const ruleId = 'ibm-integer-attributes'; diff --git a/packages/ruleset/test/rules/major-version-in-path.test.js b/packages/ruleset/test/rules/major-version-in-path.test.js index 89deeab38..b09962096 100644 --- a/packages/ruleset/test/rules/major-version-in-path.test.js +++ b/packages/ruleset/test/rules/major-version-in-path.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { majorVersionInPath } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { majorVersionInPath } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const ruleId = 'ibm-major-version-in-path'; const rule = majorVersionInPath; diff --git a/packages/ruleset/test/rules/merge-patch-properties.test.js b/packages/ruleset/test/rules/merge-patch-properties.test.js index a061d324e..d80a80008 100644 --- a/packages/ruleset/test/rules/merge-patch-properties.test.js +++ b/packages/ruleset/test/rules/merge-patch-properties.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { mergePatchProperties } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { mergePatchProperties } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const rule = mergePatchProperties; const ruleId = 'ibm-dont-require-merge-patch-properties'; diff --git a/packages/ruleset/test/rules/no-ambiguous-paths.test.js b/packages/ruleset/test/rules/no-ambiguous-paths.test.js index dffb321ac..74f6cea78 100644 --- a/packages/ruleset/test/rules/no-ambiguous-paths.test.js +++ b/packages/ruleset/test/rules/no-ambiguous-paths.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); -const { noAmbiguousPaths } = require('../../src/rules'); +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; +import { noAmbiguousPaths } from '../../src/rules'; const rule = noAmbiguousPaths; const ruleId = 'ibm-no-ambiguous-paths'; diff --git a/packages/ruleset/test/rules/no-nullable-properties.test.js b/packages/ruleset/test/rules/no-nullable-properties.test.js index 210da346e..04bff1636 100644 --- a/packages/ruleset/test/rules/no-nullable-properties.test.js +++ b/packages/ruleset/test/rules/no-nullable-properties.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); -const { noNullableProperties } = require('../../src/rules'); +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; +import { noNullableProperties } from '../../src/rules'; const rule = noNullableProperties; const ruleId = 'ibm-no-nullable-properties'; diff --git a/packages/ruleset/test/rules/no-operation-requestbody.test.js b/packages/ruleset/test/rules/no-operation-requestbody.test.js index bc8901cce..1b64d5901 100644 --- a/packages/ruleset/test/rules/no-operation-requestbody.test.js +++ b/packages/ruleset/test/rules/no-operation-requestbody.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); -let rule = require('../../src/rules').noOperationRequestBody; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; +import { noOperationRequestBody } from '../../src/rules'; const ruleId = 'ibm-no-operation-requestbody'; const expectedSeverity = severityCodes.warning; @@ -17,12 +12,12 @@ const expectedMsg = 'operations should not define a requestBody'; describe(`Spectral rule: ${ruleId}`, () => { describe('Should not yield errors', () => { - afterEach(() => { - jest.resetModules(); - rule = require('../../src/rules').noOperationRequestBody; - }); it('Clean spec', async () => { - const results = await testRule(ruleId, rule, rootDocument); + const results = await testRule( + ruleId, + noOperationRequestBody, + rootDocument + ); expect(results).toHaveLength(0); }); @@ -30,7 +25,15 @@ describe(`Spectral rule: ${ruleId}`, () => { const testDocument = makeCopy(rootDocument); // omit 'delete' from the list of methods. - rule.then.functionOptions.httpMethods = ['get', 'head', 'options']; + const rule = { + ...noOperationRequestBody, + then: { + ...noOperationRequestBody.then, + functionOptions: { + httpMethods: ['get', 'head', 'options'], + }, + }, + }; testDocument.paths['/v1/drinks/{drink_id}'].delete = { operationId: 'delete_drink', @@ -87,7 +90,11 @@ describe(`Spectral rule: ${ruleId}`, () => { }, }, }; - const results = await testRule(ruleId, rule, testDocument); + const results = await testRule( + ruleId, + noOperationRequestBody, + testDocument + ); expect(results).toHaveLength(1); expect(results[0].code).toBe(ruleId); expect(results[0].message).toBe(`DELETE ${expectedMsg}`); @@ -122,7 +129,11 @@ describe(`Spectral rule: ${ruleId}`, () => { }, }, }; - const results = await testRule(ruleId, rule, testDocument); + const results = await testRule( + ruleId, + noOperationRequestBody, + testDocument + ); expect(results).toHaveLength(1); expect(results[0].code).toBe(ruleId); expect(results[0].message).toBe(`GET ${expectedMsg}`); @@ -157,7 +168,11 @@ describe(`Spectral rule: ${ruleId}`, () => { }, }, }; - const results = await testRule(ruleId, rule, testDocument); + const results = await testRule( + ruleId, + noOperationRequestBody, + testDocument + ); expect(results).toHaveLength(1); expect(results[0].code).toBe(ruleId); expect(results[0].message).toBe(`HEAD ${expectedMsg}`); @@ -192,7 +207,11 @@ describe(`Spectral rule: ${ruleId}`, () => { }, }, }; - const results = await testRule(ruleId, rule, testDocument); + const results = await testRule( + ruleId, + noOperationRequestBody, + testDocument + ); expect(results).toHaveLength(1); expect(results[0].code).toBe(ruleId); expect(results[0].message).toBe(`OPTIONS ${expectedMsg}`); @@ -204,13 +223,15 @@ describe(`Spectral rule: ${ruleId}`, () => { it('POST operation w/requestBody - post in config', async () => { const testDocument = makeCopy(rootDocument); - rule.then.functionOptions.httpMethods = [ - 'delete', - 'get', - 'head', - 'options', - 'POST', - ]; + const rule = { + ...noOperationRequestBody, + then: { + ...noOperationRequestBody.then, + functionOptions: { + httpMethods: ['delete', 'get', 'head', 'options', 'POST'], + }, + }, + }; // No need to change testDocument because there are plenty of post // operations with a requestBody :) diff --git a/packages/ruleset/test/rules/no-ref-in-example.test.js b/packages/ruleset/test/rules/no-ref-in-example.test.js index 256eff4c6..d8e70db86 100644 --- a/packages/ruleset/test/rules/no-ref-in-example.test.js +++ b/packages/ruleset/test/rules/no-ref-in-example.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { noRefInExample } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { noRefInExample } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const rule = noRefInExample; const ruleId = 'ibm-no-ref-in-example'; diff --git a/packages/ruleset/test/rules/no-superfluous-allof.test.js b/packages/ruleset/test/rules/no-superfluous-allof.test.js index 1e282575f..1fd8c5594 100644 --- a/packages/ruleset/test/rules/no-superfluous-allof.test.js +++ b/packages/ruleset/test/rules/no-superfluous-allof.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { noSuperfluousAllOf } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { noSuperfluousAllOf } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const rule = noSuperfluousAllOf; const ruleId = 'ibm-no-superfluous-allof'; diff --git a/packages/ruleset/test/rules/no-unsupported-keywords.test.js b/packages/ruleset/test/rules/no-unsupported-keywords.test.js index 786b04fc5..7b31e4ccc 100644 --- a/packages/ruleset/test/rules/no-unsupported-keywords.test.js +++ b/packages/ruleset/test/rules/no-unsupported-keywords.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { noUnsupportedKeywords } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { noUnsupportedKeywords } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const rule = noUnsupportedKeywords; const ruleId = 'ibm-no-unsupported-keywords'; diff --git a/packages/ruleset/test/rules/operation-responses.test.js b/packages/ruleset/test/rules/operation-responses.test.js index 940929974..4caf519db 100644 --- a/packages/ruleset/test/rules/operation-responses.test.js +++ b/packages/ruleset/test/rules/operation-responses.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { operationResponses } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { operationResponses } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const rule = operationResponses; const ruleId = 'ibm-operation-responses'; diff --git a/packages/ruleset/test/rules/operation-summary-exists.test.js b/packages/ruleset/test/rules/operation-summary-exists.test.js index bfd47d0df..74ff3bff0 100644 --- a/packages/ruleset/test/rules/operation-summary-exists.test.js +++ b/packages/ruleset/test/rules/operation-summary-exists.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { operationSummaryExists } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { operationSummaryExists } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const rule = operationSummaryExists; const ruleId = 'ibm-operation-summary'; diff --git a/packages/ruleset/test/rules/operation-summary-length.test.js b/packages/ruleset/test/rules/operation-summary-length.test.js index a7fb73cc2..6d7221126 100644 --- a/packages/ruleset/test/rules/operation-summary-length.test.js +++ b/packages/ruleset/test/rules/operation-summary-length.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { operationSummaryLength } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { operationSummaryLength } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const rule = operationSummaryLength; const ruleId = 'ibm-operation-summary'; diff --git a/packages/ruleset/test/rules/operationid-casing-convention.test.js b/packages/ruleset/test/rules/operationid-casing-convention.test.js index ab27fa76f..4268541c5 100644 --- a/packages/ruleset/test/rules/operationid-casing-convention.test.js +++ b/packages/ruleset/test/rules/operationid-casing-convention.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { operationIdCasingConvention } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { operationIdCasingConvention } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const rule = operationIdCasingConvention; const ruleId = 'ibm-operationid-casing-convention'; diff --git a/packages/ruleset/test/rules/operationid-naming-convention.test.js b/packages/ruleset/test/rules/operationid-naming-convention.test.js index e7808680b..130430fb1 100644 --- a/packages/ruleset/test/rules/operationid-naming-convention.test.js +++ b/packages/ruleset/test/rules/operationid-naming-convention.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { operationIdNamingConvention } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { operationIdNamingConvention } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const rule = operationIdNamingConvention; const ruleId = 'ibm-operation-id-naming-convention'; diff --git a/packages/ruleset/test/rules/optional-request-body.test.js b/packages/ruleset/test/rules/optional-request-body.test.js index 6aacbcb1f..fa1785f98 100644 --- a/packages/ruleset/test/rules/optional-request-body.test.js +++ b/packages/ruleset/test/rules/optional-request-body.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { optionalRequestBody } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { optionalRequestBody } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const rule = optionalRequestBody; const ruleId = 'ibm-optional-requestbody'; diff --git a/packages/ruleset/test/rules/pagination-style.test.js b/packages/ruleset/test/rules/pagination-style.test.js index bd28873dc..312a9151e 100644 --- a/packages/ruleset/test/rules/pagination-style.test.js +++ b/packages/ruleset/test/rules/pagination-style.test.js @@ -3,14 +3,14 @@ * SPDX-License-Identifier: Apache2.0 */ -const { paginationStyle } = require('../../src/rules'); -const { +import { paginationStyle } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes, helperArtifacts, -} = require('../test-utils'); +} from '../test-utils'; // These are pre-defined objects with correct style for offset/limit pagination // to use as a baseline. They aren't used in the root document because overall, diff --git a/packages/ruleset/test/rules/parameter-casing-convention.test.js b/packages/ruleset/test/rules/parameter-casing-convention.test.js index b6f828b57..ff12357a3 100644 --- a/packages/ruleset/test/rules/parameter-casing-convention.test.js +++ b/packages/ruleset/test/rules/parameter-casing-convention.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { parameterCasingConvention } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { parameterCasingConvention } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const rule = parameterCasingConvention; const ruleId = 'ibm-parameter-casing-convention'; diff --git a/packages/ruleset/test/rules/parameter-default.test.js b/packages/ruleset/test/rules/parameter-default.test.js index 0386023f2..cca868160 100644 --- a/packages/ruleset/test/rules/parameter-default.test.js +++ b/packages/ruleset/test/rules/parameter-default.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { parameterDefault } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { parameterDefault } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const rule = parameterDefault; const ruleId = 'ibm-no-default-for-required-parameter'; diff --git a/packages/ruleset/test/rules/parameter-description.test.js b/packages/ruleset/test/rules/parameter-description.test.js index fe354c57e..28cbf6121 100644 --- a/packages/ruleset/test/rules/parameter-description.test.js +++ b/packages/ruleset/test/rules/parameter-description.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { parameterDescriptionExists } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { parameterDescriptionExists } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const rule = parameterDescriptionExists; const ruleId = 'ibm-parameter-description'; diff --git a/packages/ruleset/test/rules/parameter-order.test.js b/packages/ruleset/test/rules/parameter-order.test.js index 93fa4e158..ac5d19073 100644 --- a/packages/ruleset/test/rules/parameter-order.test.js +++ b/packages/ruleset/test/rules/parameter-order.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { parameterOrder } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { parameterOrder } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const rule = parameterOrder; const ruleId = 'ibm-parameter-order'; diff --git a/packages/ruleset/test/rules/parameter-schema-or-content.test.js b/packages/ruleset/test/rules/parameter-schema-or-content.test.js index c4142784b..79e1ddfa8 100644 --- a/packages/ruleset/test/rules/parameter-schema-or-content.test.js +++ b/packages/ruleset/test/rules/parameter-schema-or-content.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { parameterSchemaOrContentExists } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { parameterSchemaOrContentExists } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const ruleId = 'ibm-parameter-schema-or-content'; const rule = parameterSchemaOrContentExists; diff --git a/packages/ruleset/test/rules/patch-request-content-type.test.js b/packages/ruleset/test/rules/patch-request-content-type.test.js index dd36db241..548a597e4 100644 --- a/packages/ruleset/test/rules/patch-request-content-type.test.js +++ b/packages/ruleset/test/rules/patch-request-content-type.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { patchRequestContentType } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { patchRequestContentType } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const rule = patchRequestContentType; const ruleId = 'ibm-patch-request-content-type'; diff --git a/packages/ruleset/test/rules/path-parameter-not-crn.test.js b/packages/ruleset/test/rules/path-parameter-not-crn.test.js index ca12e4920..bc381fa02 100644 --- a/packages/ruleset/test/rules/path-parameter-not-crn.test.js +++ b/packages/ruleset/test/rules/path-parameter-not-crn.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { pathParameterNotCRN } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { pathParameterNotCRN } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const rule = pathParameterNotCRN; const ruleId = 'ibm-no-crn-path-parameters'; diff --git a/packages/ruleset/test/rules/path-segment-casing-convention.test.js b/packages/ruleset/test/rules/path-segment-casing-convention.test.js index e1ba416dd..a90aa211d 100644 --- a/packages/ruleset/test/rules/path-segment-casing-convention.test.js +++ b/packages/ruleset/test/rules/path-segment-casing-convention.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { pathSegmentCasingConvention } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { pathSegmentCasingConvention } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const rule = pathSegmentCasingConvention; const ruleId = 'ibm-path-segment-casing-convention'; diff --git a/packages/ruleset/test/rules/pattern-properties.test.js b/packages/ruleset/test/rules/pattern-properties.test.js index 68cbd0f88..6e450c3e8 100644 --- a/packages/ruleset/test/rules/pattern-properties.test.js +++ b/packages/ruleset/test/rules/pattern-properties.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { patternProperties } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { patternProperties } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const rule = patternProperties; const ruleId = 'ibm-pattern-properties'; diff --git a/packages/ruleset/test/rules/precondition-headers.test.js b/packages/ruleset/test/rules/precondition-headers.test.js index 097ab4f98..f179551e0 100644 --- a/packages/ruleset/test/rules/precondition-headers.test.js +++ b/packages/ruleset/test/rules/precondition-headers.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { preconditionHeader } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { preconditionHeader } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const rule = preconditionHeader; const ruleId = 'ibm-precondition-headers'; diff --git a/packages/ruleset/test/rules/prefer-token-pagination.test.js b/packages/ruleset/test/rules/prefer-token-pagination.test.js index 784e6d7fc..e59d28b3b 100644 --- a/packages/ruleset/test/rules/prefer-token-pagination.test.js +++ b/packages/ruleset/test/rules/prefer-token-pagination.test.js @@ -3,14 +3,14 @@ * SPDX-License-Identifier: Apache2.0 */ -const { preferTokenPagination } = require('../../src/rules'); -const { +import { preferTokenPagination } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes, helperArtifacts, -} = require('../test-utils'); +} from '../test-utils'; const { offsetPaginationBase, offsetParameter } = helperArtifacts; const rule = preferTokenPagination; diff --git a/packages/ruleset/test/rules/property-attributes.test.js b/packages/ruleset/test/rules/property-attributes.test.js index 50f8d293e..a06229d40 100644 --- a/packages/ruleset/test/rules/property-attributes.test.js +++ b/packages/ruleset/test/rules/property-attributes.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { propertyAttributes } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { propertyAttributes } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const rule = propertyAttributes; const ruleId = 'ibm-property-attributes'; diff --git a/packages/ruleset/test/rules/property-casing-convention.test.js b/packages/ruleset/test/rules/property-casing-convention.test.js index e2e09fda5..874aaef71 100644 --- a/packages/ruleset/test/rules/property-casing-convention.test.js +++ b/packages/ruleset/test/rules/property-casing-convention.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { propertyCasingConvention } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { propertyCasingConvention } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const ruleId = 'ibm-property-casing-convention'; const rule = propertyCasingConvention; diff --git a/packages/ruleset/test/rules/property-consistent-name-and-type.test.js b/packages/ruleset/test/rules/property-consistent-name-and-type.test.js index 2db5047d7..d5f61ca6d 100644 --- a/packages/ruleset/test/rules/property-consistent-name-and-type.test.js +++ b/packages/ruleset/test/rules/property-consistent-name-and-type.test.js @@ -3,41 +3,41 @@ * SPDX-License-Identifier: Apache2.0 */ -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); -let rule = require('../../src/rules').propertyConsistentNameAndType; +import { vi, beforeEach } from 'vitest'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; +let propertyConsistentNameAndType; const ruleId = 'ibm-property-consistent-name-and-type'; -// this rule is turned off by default - enable it to run tests -// but still verify it is defined in the rule as "off" -const originalSeverity = makeCopy(rule.severity); -rule.severity = 'warn'; +function getRule() { + const rule = { + ...propertyConsistentNameAndType, + severity: 'warn', + }; + return rule; +} const expectedSeverity = severityCodes.warning; describe(`Spectral rule: ${ruleId}`, () => { - // this is required because of the "global" variable we are using in the file - // that holds the implementation for this rule. By default, it will maintain - // its list of "visited properties" between tests, which prevents proper - // isolation between the tests. this will reset that variable after each test - afterEach(() => { - jest.resetModules(); - rule = require('../../src/rules').propertyConsistentNameAndType; - rule.severity = 'warn'; + // The implementation of the property-consistent-name-and-type rule uses a global variable + // to store visited properties across the entire API definition. + // Because the global variable's value is retained across testcases, we need to reset + // everything before each testcase. + beforeEach(async () => { + vi.resetModules(); + const rulesModule = await import('../../src/rules/index.js'); + propertyConsistentNameAndType = rulesModule.propertyConsistentNameAndType; }); it('Should originally be set to severity: "off"', () => { + const originalSeverity = makeCopy(propertyConsistentNameAndType.severity); expect(originalSeverity).toBe('off'); }); describe('Should not yield errors', () => { it('should not error with clean spec', async () => { - const results = await testRule(ruleId, rule, rootDocument); + const results = await testRule(ruleId, getRule(), rootDocument); expect(results).toHaveLength(0); }); @@ -57,7 +57,7 @@ describe(`Spectral rule: ${ruleId}`, () => { }, }; - const results = await testRule(ruleId, rule, testDocument); + const results = await testRule(ruleId, getRule(), testDocument); expect(results).toHaveLength(0); }); @@ -105,7 +105,7 @@ describe(`Spectral rule: ${ruleId}`, () => { }, }; - const results = await testRule(ruleId, rule, testDocument); + const results = await testRule(ruleId, getRule(), testDocument); expect(results).toHaveLength(0); }); @@ -154,7 +154,7 @@ describe(`Spectral rule: ${ruleId}`, () => { }, }; - const results = await testRule(ruleId, rule, testDocument); + const results = await testRule(ruleId, getRule(), testDocument); expect(results).toHaveLength(0); }); @@ -203,7 +203,7 @@ describe(`Spectral rule: ${ruleId}`, () => { }, }; - const results = await testRule(ruleId, rule, testDocument); + const results = await testRule(ruleId, getRule(), testDocument); expect(results).toHaveLength(0); }); @@ -252,7 +252,7 @@ describe(`Spectral rule: ${ruleId}`, () => { }, }; - const results = await testRule(ruleId, rule, testDocument); + const results = await testRule(ruleId, getRule(), testDocument); expect(results).toHaveLength(0); }); @@ -282,7 +282,7 @@ describe(`Spectral rule: ${ruleId}`, () => { }, }; - const results = await testRule(ruleId, rule, testDocument); + const results = await testRule(ruleId, getRule(), testDocument); expect(results).toHaveLength(2); @@ -351,7 +351,7 @@ describe(`Spectral rule: ${ruleId}`, () => { }, }; - const results = await testRule(ruleId, rule, testDocument); + const results = await testRule(ruleId, getRule(), testDocument); expect(results).toHaveLength(3); diff --git a/packages/ruleset/test/rules/property-description.test.js b/packages/ruleset/test/rules/property-description.test.js index 4370469b4..3e70ef60d 100644 --- a/packages/ruleset/test/rules/property-description.test.js +++ b/packages/ruleset/test/rules/property-description.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { propertyDescriptionExists } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { propertyDescriptionExists } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const rule = propertyDescriptionExists; const ruleId = 'ibm-property-description'; diff --git a/packages/ruleset/test/rules/property-name-collision.test.js b/packages/ruleset/test/rules/property-name-collision.test.js index bd2435afc..e2c16ad10 100644 --- a/packages/ruleset/test/rules/property-name-collision.test.js +++ b/packages/ruleset/test/rules/property-name-collision.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { propertyNameCollision } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { propertyNameCollision } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const ruleId = 'ibm-avoid-property-name-collision'; const rule = propertyNameCollision; diff --git a/packages/ruleset/test/rules/redirect-response-body.test.js b/packages/ruleset/test/rules/redirect-response-body.test.js index 1e38058ae..0438e324d 100644 --- a/packages/ruleset/test/rules/redirect-response-body.test.js +++ b/packages/ruleset/test/rules/redirect-response-body.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { redirectResponseBody } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { redirectResponseBody } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const rule = redirectResponseBody; const ruleId = 'ibm-redirect-response-body'; diff --git a/packages/ruleset/test/rules/ref-pattern.test.js b/packages/ruleset/test/rules/ref-pattern.test.js index f58f300ff..58655c28b 100644 --- a/packages/ruleset/test/rules/ref-pattern.test.js +++ b/packages/ruleset/test/rules/ref-pattern.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { refPattern } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { refPattern } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const rule = refPattern; const ruleId = 'ibm-ref-pattern'; diff --git a/packages/ruleset/test/rules/ref-sibling-duplicate-description.test.js b/packages/ruleset/test/rules/ref-sibling-duplicate-description.test.js index 814935335..7b938f792 100644 --- a/packages/ruleset/test/rules/ref-sibling-duplicate-description.test.js +++ b/packages/ruleset/test/rules/ref-sibling-duplicate-description.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { refSiblingDuplicateDescription } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { refSiblingDuplicateDescription } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const rule = refSiblingDuplicateDescription; const ruleId = 'ibm-no-duplication-description-with-ref-sibling'; diff --git a/packages/ruleset/test/rules/request-and-response-content.test.js b/packages/ruleset/test/rules/request-and-response-content.test.js index 199a8475a..d4115de9c 100644 --- a/packages/ruleset/test/rules/request-and-response-content.test.js +++ b/packages/ruleset/test/rules/request-and-response-content.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { requestAndResponseContent } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { requestAndResponseContent } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const ruleId = 'ibm-request-and-response-content'; const rule = requestAndResponseContent; diff --git a/packages/ruleset/test/rules/requestbody-is-object.test.js b/packages/ruleset/test/rules/requestbody-is-object.test.js index 73a0a646e..f5eb935f0 100644 --- a/packages/ruleset/test/rules/requestbody-is-object.test.js +++ b/packages/ruleset/test/rules/requestbody-is-object.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { requestBodyIsObject } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { requestBodyIsObject } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const ruleId = 'ibm-requestbody-is-object'; const rule = requestBodyIsObject; diff --git a/packages/ruleset/test/rules/requestbody-name.test.js b/packages/ruleset/test/rules/requestbody-name.test.js index b5d24e3ee..71e533e06 100644 --- a/packages/ruleset/test/rules/requestbody-name.test.js +++ b/packages/ruleset/test/rules/requestbody-name.test.js @@ -3,23 +3,18 @@ * SPDX-License-Identifier: Apache2.0 */ -const { requestBodyName } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { requestBodyName } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const ruleId = 'ibm-requestbody-name'; -const rule = requestBodyName; const expectedSeverity = severityCodes.warning; const expectedMsg = `Operations with non-form request bodies should set a name with the 'x-codegen-request-body-name' extension`; // This rule is turned off by default - enable it to run tests // but still verify it is defined in the rule as "off". -const originalSeverity = makeCopy(rule.severity); -rule.severity = 'warn'; +const originalSeverity = makeCopy(requestBodyName.severity); +// Create a mutable copy of the rule with severity set to 'warn' +const rule = { ...requestBodyName, severity: 'warn' }; // `Operation with non-form requestBody should set a name with the ${EXTENSION_NAME} extension.` describe(`Spectral rule: ${ruleId}`, () => { diff --git a/packages/ruleset/test/rules/required-array-properties-in-response.test.js b/packages/ruleset/test/rules/required-array-properties-in-response.test.js index c80273e75..179a8948e 100644 --- a/packages/ruleset/test/rules/required-array-properties-in-response.test.js +++ b/packages/ruleset/test/rules/required-array-properties-in-response.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { requiredArrayPropertiesInResponse } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { requiredArrayPropertiesInResponse } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const rule = requiredArrayPropertiesInResponse; const ruleId = 'ibm-required-array-properties-in-response'; diff --git a/packages/ruleset/test/rules/required-enum-properties-in-response.test.js b/packages/ruleset/test/rules/required-enum-properties-in-response.test.js index 034d092d9..e86133335 100644 --- a/packages/ruleset/test/rules/required-enum-properties-in-response.test.js +++ b/packages/ruleset/test/rules/required-enum-properties-in-response.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { requiredEnumPropertiesInResponse } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { requiredEnumPropertiesInResponse } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const rule = requiredEnumPropertiesInResponse; const ruleId = 'ibm-required-enum-properties-in-response'; diff --git a/packages/ruleset/test/rules/required-property-missing.test.js b/packages/ruleset/test/rules/required-property-missing.test.js index eaeb57600..3024785c2 100644 --- a/packages/ruleset/test/rules/required-property-missing.test.js +++ b/packages/ruleset/test/rules/required-property-missing.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { requiredPropertyMissing } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { requiredPropertyMissing } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const ruleId = 'ibm-define-required-properties'; const rule = requiredPropertyMissing; diff --git a/packages/ruleset/test/rules/resource-response-consistency.test.js b/packages/ruleset/test/rules/resource-response-consistency.test.js index f54dc6573..fb129b0f1 100644 --- a/packages/ruleset/test/rules/resource-response-consistency.test.js +++ b/packages/ruleset/test/rules/resource-response-consistency.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { resourceResponseConsistency } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { resourceResponseConsistency } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const rule = resourceResponseConsistency; const ruleId = 'ibm-resource-response-consistency'; diff --git a/packages/ruleset/test/rules/response-example.test.js b/packages/ruleset/test/rules/response-example.test.js index 3060f21e5..7fb6ae81f 100644 --- a/packages/ruleset/test/rules/response-example.test.js +++ b/packages/ruleset/test/rules/response-example.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { responseExampleExists } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { responseExampleExists } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const ruleId = 'ibm-success-response-example'; const rule = responseExampleExists; diff --git a/packages/ruleset/test/rules/response-status-codes.test.js b/packages/ruleset/test/rules/response-status-codes.test.js index 7cdeb2b51..195eb2384 100644 --- a/packages/ruleset/test/rules/response-status-codes.test.js +++ b/packages/ruleset/test/rules/response-status-codes.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { responseStatusCodes } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { responseStatusCodes } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const rule = responseStatusCodes; const ruleId = 'ibm-response-status-codes'; diff --git a/packages/ruleset/test/rules/schema-casing-convention.test.js b/packages/ruleset/test/rules/schema-casing-convention.test.js index 67a890878..deda3cb85 100644 --- a/packages/ruleset/test/rules/schema-casing-convention.test.js +++ b/packages/ruleset/test/rules/schema-casing-convention.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { schemaCasingConvention } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { schemaCasingConvention } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const rule = schemaCasingConvention; const ruleId = 'ibm-schema-casing-convention'; diff --git a/packages/ruleset/test/rules/schema-description.test.js b/packages/ruleset/test/rules/schema-description.test.js index c0d8dad96..45b0785dd 100644 --- a/packages/ruleset/test/rules/schema-description.test.js +++ b/packages/ruleset/test/rules/schema-description.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { schemaDescriptionExists } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { schemaDescriptionExists } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const rule = schemaDescriptionExists; const ruleId = 'ibm-schema-description'; diff --git a/packages/ruleset/test/rules/schema-keywords.test.js b/packages/ruleset/test/rules/schema-keywords.test.js index adc070e06..086821486 100644 --- a/packages/ruleset/test/rules/schema-keywords.test.js +++ b/packages/ruleset/test/rules/schema-keywords.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { schemaKeywords } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { schemaKeywords } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const rule = schemaKeywords; const ruleId = 'ibm-schema-keywords'; diff --git a/packages/ruleset/test/rules/schema-naming-convention.test.js b/packages/ruleset/test/rules/schema-naming-convention.test.js index 3d2c4b198..e3326791e 100644 --- a/packages/ruleset/test/rules/schema-naming-convention.test.js +++ b/packages/ruleset/test/rules/schema-naming-convention.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { schemaNamingConvention } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { schemaNamingConvention } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const rule = schemaNamingConvention; const ruleId = 'ibm-schema-naming-convention'; diff --git a/packages/ruleset/test/rules/schema-type-format.test.js b/packages/ruleset/test/rules/schema-type-format.test.js index 1e3bf4635..0a1fc0a08 100644 --- a/packages/ruleset/test/rules/schema-type-format.test.js +++ b/packages/ruleset/test/rules/schema-type-format.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { schemaTypeFormat } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { schemaTypeFormat } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const rule = schemaTypeFormat; const ruleId = 'ibm-schema-type-format'; diff --git a/packages/ruleset/test/rules/schema-type.test.js b/packages/ruleset/test/rules/schema-type.test.js index 8e3b146f5..c6ab1cd06 100644 --- a/packages/ruleset/test/rules/schema-type.test.js +++ b/packages/ruleset/test/rules/schema-type.test.js @@ -3,19 +3,14 @@ * SPDX-License-Identifier: Apache2.0 */ -const { schemaTypeExists } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); - -const rule = schemaTypeExists; +import { schemaTypeExists } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; + // this rule is turned off by default - enable it to run tests // but still verify it is defined in the rule as "off" -const originalSeverity = makeCopy(rule.severity); -rule.severity = 'warn'; +const originalSeverity = makeCopy(schemaTypeExists.severity); +// Create a mutable copy of the rule with severity set to 'warn' +const rule = { ...schemaTypeExists, severity: 'warn' }; const ruleId = 'ibm-schema-type'; const expectedSeverity = severityCodes.warning; diff --git a/packages/ruleset/test/rules/securityscheme-attributes.test.js b/packages/ruleset/test/rules/securityscheme-attributes.test.js index 29b0d8ccc..e42c8d6e8 100644 --- a/packages/ruleset/test/rules/securityscheme-attributes.test.js +++ b/packages/ruleset/test/rules/securityscheme-attributes.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { securitySchemeAttributes } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { securitySchemeAttributes } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const rule = securitySchemeAttributes; const ruleId = 'ibm-security-scheme-attributes'; diff --git a/packages/ruleset/test/rules/securityschemes.test.js b/packages/ruleset/test/rules/securityschemes.test.js index b6b49d15e..288a11d68 100644 --- a/packages/ruleset/test/rules/securityschemes.test.js +++ b/packages/ruleset/test/rules/securityschemes.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { securitySchemes } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { securitySchemes } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const rule = securitySchemes; const ruleId = 'ibm-securityschemes'; diff --git a/packages/ruleset/test/rules/server-variable-default-value.test.js b/packages/ruleset/test/rules/server-variable-default-value.test.js index 6de469850..9b421c2e8 100644 --- a/packages/ruleset/test/rules/server-variable-default-value.test.js +++ b/packages/ruleset/test/rules/server-variable-default-value.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { serverVariableDefaultValue } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { serverVariableDefaultValue } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const ruleId = 'ibm-server-variable-default-value'; const rule = serverVariableDefaultValue; diff --git a/packages/ruleset/test/rules/string-attributes.test.js b/packages/ruleset/test/rules/string-attributes.test.js index 8baca3bab..24b3f9d38 100644 --- a/packages/ruleset/test/rules/string-attributes.test.js +++ b/packages/ruleset/test/rules/string-attributes.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { stringAttributes } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { stringAttributes } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const rule = stringAttributes; const ruleId = 'ibm-string-attributes'; diff --git a/packages/ruleset/test/rules/summary-sentence-style.test.js b/packages/ruleset/test/rules/summary-sentence-style.test.js index fbb7ec527..73df91280 100644 --- a/packages/ruleset/test/rules/summary-sentence-style.test.js +++ b/packages/ruleset/test/rules/summary-sentence-style.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { summarySentenceStyle } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { summarySentenceStyle } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const ruleId = 'ibm-summary-sentence-style'; const rule = summarySentenceStyle; diff --git a/packages/ruleset/test/rules/typed-enum.test.js b/packages/ruleset/test/rules/typed-enum.test.js index 509f444bf..a1c7edfc2 100644 --- a/packages/ruleset/test/rules/typed-enum.test.js +++ b/packages/ruleset/test/rules/typed-enum.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { typedEnum } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { typedEnum } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const rule = typedEnum; const ruleId = 'typed-enum'; diff --git a/packages/ruleset/test/rules/unevaluated-properties.test.js b/packages/ruleset/test/rules/unevaluated-properties.test.js index e6889fdec..d3eb3ffaa 100644 --- a/packages/ruleset/test/rules/unevaluated-properties.test.js +++ b/packages/ruleset/test/rules/unevaluated-properties.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { unevaluatedProperties } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { unevaluatedProperties } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const rule = unevaluatedProperties; const ruleId = 'ibm-unevaluated-properties'; diff --git a/packages/ruleset/test/rules/unique-parameter-request-property-names.test.js b/packages/ruleset/test/rules/unique-parameter-request-property-names.test.js index bde9fc1c1..013ebe728 100644 --- a/packages/ruleset/test/rules/unique-parameter-request-property-names.test.js +++ b/packages/ruleset/test/rules/unique-parameter-request-property-names.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { uniqueParameterRequestPropertyNames } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { uniqueParameterRequestPropertyNames } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const rule = uniqueParameterRequestPropertyNames; const ruleId = 'ibm-unique-parameter-request-property-names'; diff --git a/packages/ruleset/test/rules/unused-tags.test.js b/packages/ruleset/test/rules/unused-tags.test.js index 4423cdb31..3102d2b86 100644 --- a/packages/ruleset/test/rules/unused-tags.test.js +++ b/packages/ruleset/test/rules/unused-tags.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { unusedTags } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { unusedTags } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const rule = unusedTags; const ruleId = 'ibm-openapi-tags-used'; diff --git a/packages/ruleset/test/rules/use-date-based-format.test.js b/packages/ruleset/test/rules/use-date-based-format.test.js index 86d9dda5e..3a32673df 100644 --- a/packages/ruleset/test/rules/use-date-based-format.test.js +++ b/packages/ruleset/test/rules/use-date-based-format.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { useDateBasedFormat } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { useDateBasedFormat } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const rule = useDateBasedFormat; const ruleId = 'ibm-use-date-based-format'; diff --git a/packages/ruleset/test/rules/valid-path-segments.test.js b/packages/ruleset/test/rules/valid-path-segments.test.js index 0cf2cf59a..7197959ee 100644 --- a/packages/ruleset/test/rules/valid-path-segments.test.js +++ b/packages/ruleset/test/rules/valid-path-segments.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { validPathSegments } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { validPathSegments } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const rule = validPathSegments; const ruleId = 'ibm-valid-path-segments'; diff --git a/packages/ruleset/test/rules/valid-schema-example.test.js b/packages/ruleset/test/rules/valid-schema-example.test.js index 4c1ca4ff7..39cc7cc8a 100644 --- a/packages/ruleset/test/rules/valid-schema-example.test.js +++ b/packages/ruleset/test/rules/valid-schema-example.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { validSchemaExample } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { validSchemaExample } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const rule = validSchemaExample; const ruleId = 'ibm-valid-schema-example'; diff --git a/packages/ruleset/test/rules/well-defined-dictionaries.test.js b/packages/ruleset/test/rules/well-defined-dictionaries.test.js index 9da5c17d4..b2d28eb09 100644 --- a/packages/ruleset/test/rules/well-defined-dictionaries.test.js +++ b/packages/ruleset/test/rules/well-defined-dictionaries.test.js @@ -3,13 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { wellDefinedDictionaries } = require('../../src/rules'); -const { - makeCopy, - rootDocument, - testRule, - severityCodes, -} = require('../test-utils'); +import { wellDefinedDictionaries } from '../../src/rules'; +import { makeCopy, rootDocument, testRule, severityCodes } from '../test-utils'; const rule = wellDefinedDictionaries; const ruleId = 'ibm-well-defined-dictionaries'; diff --git a/packages/ruleset/test/test-utils/all-schemas-document.js b/packages/ruleset/test/test-utils/all-schemas-document.js index 882aa1c04..a8a11669d 100644 --- a/packages/ruleset/test/test-utils/all-schemas-document.js +++ b/packages/ruleset/test/test-utils/all-schemas-document.js @@ -3,62 +3,60 @@ * SPDX-License-Identifier: Apache2.0 */ -module.exports = { - openapi: '3.0.2', - info: { - title: 'Subschema examples', - description: - 'A collection of schemas with various kinds of subschemas for testing.', - version: '0.0.1', - contact: { - email: 'example@example.com', - }, +export const openapi = '3.0.2'; +export const info = { + title: 'Subschema examples', + description: + 'A collection of schemas with various kinds of subschemas for testing.', + version: '0.0.1', + contact: { + email: 'example@example.com', + }, +}; +export const tags = [ + { + name: 'Index', + }, +]; +export const servers = [ + { + url: '/api/v3', }, - tags: [ - { - name: 'Index', - }, - ], - servers: [ - { - url: '/api/v3', - }, - ], - paths: { - '/schema': { - get: { - tags: ['Index'], - summary: 'Get the index', - description: 'Get the index.', - operationId: 'get_index', - responses: { - 200: { - description: "Here's the index.", - content: { - 'application/json': { - schema: { - $ref: '#/components/schemas/Index', - }, +]; +export const paths = { + '/schema': { + get: { + tags: ['Index'], + summary: 'Get the index', + description: 'Get the index.', + operationId: 'get_index', + responses: { + 200: { + description: "Here's the index.", + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/Index', }, }, }, }, }, }, - '/every_flavor': { - get: { - tags: ['Index'], - summary: 'Get every flavor', - description: 'Get every flavor.', - operationId: 'get_every_flavor', - responses: { - 200: { - description: "Here's every flavor.", - content: { - 'application/json': { - schema: { - $ref: '#/components/schemas/EveryFlavor', - }, + }, + '/every_flavor': { + get: { + tags: ['Index'], + summary: 'Get every flavor', + description: 'Get every flavor.', + operationId: 'get_every_flavor', + responses: { + 200: { + description: "Here's every flavor.", + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/EveryFlavor', }, }, }, @@ -66,150 +64,150 @@ module.exports = { }, }, }, - components: { - schemas: { - Index: { - type: 'object', - properties: { - schema_with_property_schema: { - $ref: '#/components/schemas/SchemaWithPropertySchema', - }, - schema_with_additional_properties_schema: { - $ref: '#/components/schemas/SchemaWithAdditionalPropertiesSchema', - }, - schema_with_items_schema: { - $ref: '#/components/schemas/SchemaWithItemsSchema', - }, - schema_with_all_of_schema: { - $ref: '#/components/schemas/SchemaWithAllOfSchema', - }, - schema_with_one_of_schema: { - $ref: '#/components/schemas/SchemaWithOneOfSchema', - }, - schema_with_any_of_schema: { - $ref: '#/components/schemas/SchemaWithAnyOfSchema', - }, - schema_with_not_schema: { - $ref: '#/components/schemas/SchemaWithNotSchema', - }, +}; +export const components = { + schemas: { + Index: { + type: 'object', + properties: { + schema_with_property_schema: { + $ref: '#/components/schemas/SchemaWithPropertySchema', }, - }, - EveryFlavor: { - properties: { - property_schema: { - $ref: '#/components/schemas/SchemaWithPropertySchema', - }, + schema_with_additional_properties_schema: { + $ref: '#/components/schemas/SchemaWithAdditionalPropertiesSchema', }, - additionalProperties: { - $ref: '#/components/schemas/AdditionalPropertiesSchema', + schema_with_items_schema: { + $ref: '#/components/schemas/SchemaWithItemsSchema', }, - items: { - $ref: '#/components/schemas/ItemsSchema', + schema_with_all_of_schema: { + $ref: '#/components/schemas/SchemaWithAllOfSchema', }, - allOf: [ - { - $ref: '#/components/schemas/AllOfSchema', - }, - ], - oneOf: [ - { - $ref: '#/components/schemas/OneOfSchema', - }, - ], - anyOf: [ - { - $ref: '#/components/schemas/AnyOfSchema', - }, - ], - not: { - $ref: '#/components/schemas/NotSchema', + schema_with_one_of_schema: { + $ref: '#/components/schemas/SchemaWithOneOfSchema', }, - }, - SchemaWithPropertySchema: { - type: 'object', - properties: { - property_schema: { - $ref: '#/components/schemas/PropertySchema', - }, + schema_with_any_of_schema: { + $ref: '#/components/schemas/SchemaWithAnyOfSchema', }, - }, - PropertySchema: { - type: 'string', - description: - 'This schema is reachable from `EveryFlavor` and `SchemaWithPropertySchema`.', - }, - SchemaWithAdditionalPropertiesSchema: { - type: 'object', - additionalProperties: { - $ref: '#/components/schemas/AdditionalPropertiesSchema', + schema_with_not_schema: { + $ref: '#/components/schemas/SchemaWithNotSchema', }, }, - AdditionalPropertiesSchema: { - type: 'string', - description: - 'This schema is reachable from `EveryFlavor` and `SchemaWithAdditionalPropertiesSchema`.', - }, - SchemaWithItemsSchema: { - type: 'array', - items: { - $ref: '#/components/schemas/ItemsSchema', + }, + EveryFlavor: { + properties: { + property_schema: { + $ref: '#/components/schemas/SchemaWithPropertySchema', }, }, - ItemsSchema: { - type: 'string', - description: - 'This schema is reachable from `EveryFlavor` and `SchemaWithItemsSchema`.', + additionalProperties: { + $ref: '#/components/schemas/AdditionalPropertiesSchema', }, - SchemaWithAllOfSchema: { - type: 'string', - allOf: [ - { - $ref: '#/components/schemas/AllOfSchema', - }, - ], + items: { + $ref: '#/components/schemas/ItemsSchema', }, - AllOfSchema: { - type: 'string', - description: - 'This schema is reachable from `EveryFlavor` and `SchemaWithAllOfSchema`.', - }, - SchemaWithOneOfSchema: { - type: 'string', - oneOf: [ - { - $ref: '#/components/schemas/OneOfSchema', - }, - ], + allOf: [ + { + $ref: '#/components/schemas/AllOfSchema', + }, + ], + oneOf: [ + { + $ref: '#/components/schemas/OneOfSchema', + }, + ], + anyOf: [ + { + $ref: '#/components/schemas/AnyOfSchema', + }, + ], + not: { + $ref: '#/components/schemas/NotSchema', }, - OneOfSchema: { - type: 'string', - description: - 'This schema is reachable from `EveryFlavor` and `SchemaWithOneOfSchema`.', + }, + SchemaWithPropertySchema: { + type: 'object', + properties: { + property_schema: { + $ref: '#/components/schemas/PropertySchema', + }, }, - SchemaWithAnyOfSchema: { - type: 'string', - anyOf: [ - { - $ref: '#/components/schemas/AnyOfSchema', - }, - ], + }, + PropertySchema: { + type: 'string', + description: + 'This schema is reachable from `EveryFlavor` and `SchemaWithPropertySchema`.', + }, + SchemaWithAdditionalPropertiesSchema: { + type: 'object', + additionalProperties: { + $ref: '#/components/schemas/AdditionalPropertiesSchema', }, - AnyOfSchema: { - type: 'string', - description: - 'This schema is reachable from `EveryFlavor` and `SchemaWithAnyOfSchema`.', + }, + AdditionalPropertiesSchema: { + type: 'string', + description: + 'This schema is reachable from `EveryFlavor` and `SchemaWithAdditionalPropertiesSchema`.', + }, + SchemaWithItemsSchema: { + type: 'array', + items: { + $ref: '#/components/schemas/ItemsSchema', }, - SchemaWithNotSchema: { - type: 'string', - not: { - $ref: '#/components/schemas/NotSchema', + }, + ItemsSchema: { + type: 'string', + description: + 'This schema is reachable from `EveryFlavor` and `SchemaWithItemsSchema`.', + }, + SchemaWithAllOfSchema: { + type: 'string', + allOf: [ + { + $ref: '#/components/schemas/AllOfSchema', }, + ], + }, + AllOfSchema: { + type: 'string', + description: + 'This schema is reachable from `EveryFlavor` and `SchemaWithAllOfSchema`.', + }, + SchemaWithOneOfSchema: { + type: 'string', + oneOf: [ + { + $ref: '#/components/schemas/OneOfSchema', + }, + ], + }, + OneOfSchema: { + type: 'string', + description: + 'This schema is reachable from `EveryFlavor` and `SchemaWithOneOfSchema`.', + }, + SchemaWithAnyOfSchema: { + type: 'string', + anyOf: [ + { + $ref: '#/components/schemas/AnyOfSchema', + }, + ], + }, + AnyOfSchema: { + type: 'string', + description: + 'This schema is reachable from `EveryFlavor` and `SchemaWithAnyOfSchema`.', + }, + SchemaWithNotSchema: { + type: 'string', + not: { + $ref: '#/components/schemas/NotSchema', }, - NotSchema: { - type: 'string', - description: - 'This schema is reachable from `EveryFlavor` and `SchemaWithNotSchema`.', - }, + }, + NotSchema: { + type: 'string', + description: + 'This schema is reachable from `EveryFlavor` and `SchemaWithNotSchema`.', }, }, }; diff --git a/packages/ruleset/test/test-utils/helper-artifacts.js b/packages/ruleset/test/test-utils/helper-artifacts.js index fff4597ff..075027d66 100644 --- a/packages/ruleset/test/test-utils/helper-artifacts.js +++ b/packages/ruleset/test/test-utils/helper-artifacts.js @@ -18,10 +18,7 @@ const pageLink = { }, }; -// These "Offset*" objects exist to provide artifacts that act as a correct -// baseline for offset/limit style pagination. They are not in the root -// document because we encourage the use of token-based pagination. -module.exports.offsetParameter = { +export const offsetParameter = { name: 'offset', in: 'query', description: 'The offset (origin 0) of the first item to return.', @@ -33,7 +30,7 @@ module.exports.offsetParameter = { }, }; -module.exports.offsetPaginationBase = { +export const offsetPaginationBase = { description: 'A base schema containing properties that support offset-limit pagination.', type: 'object', @@ -61,3 +58,8 @@ module.exports.offsetPaginationBase = { last: pageLink, }, }; + +export default { + offsetParameter, + offsetPaginationBase, +}; diff --git a/packages/ruleset/test/test-utils/index.js b/packages/ruleset/test/test-utils/index.js index b80ce86ff..2cff5db64 100644 --- a/packages/ruleset/test/test-utils/index.js +++ b/packages/ruleset/test/test-utils/index.js @@ -3,15 +3,15 @@ * SPDX-License-Identifier: Apache2.0 */ -const allSchemasDocument = require('./all-schemas-document'); -const makeCopy = require('./make-copy'); -const testRule = require('./test-rule'); -const unitTestRule = require('./unit-test-rule'); -const rootDocument = require('./root-document'); -const severityCodes = require('./severity-codes'); -const helperArtifacts = require('./helper-artifacts'); +import allSchemasDocument from './all-schemas-document.js'; +import makeCopy from './make-copy.js'; +import testRule from './test-rule.js'; +import unitTestRule from './unit-test-rule.js'; +import rootDocument from './root-document.js'; +import * as severityCodes from './severity-codes.js'; +import helperArtifacts from './helper-artifacts.js'; -module.exports = { +export { allSchemasDocument, makeCopy, rootDocument, diff --git a/packages/ruleset/test/test-utils/make-copy.js b/packages/ruleset/test/test-utils/make-copy.js index 4dabf3519..79e2a5c24 100644 --- a/packages/ruleset/test/test-utils/make-copy.js +++ b/packages/ruleset/test/test-utils/make-copy.js @@ -3,6 +3,6 @@ * SPDX-License-Identifier: Apache2.0 */ -module.exports = obj => { +export default obj => { return JSON.parse(JSON.stringify(obj)); }; diff --git a/packages/ruleset/test/test-utils/root-document.js b/packages/ruleset/test/test-utils/root-document.js index 08fb08408..c83594bf3 100644 --- a/packages/ruleset/test/test-utils/root-document.js +++ b/packages/ruleset/test/test-utils/root-document.js @@ -3,233 +3,182 @@ * SPDX-License-Identifier: Apache2.0 */ -module.exports = { - openapi: '3.0.0', - info: { - title: 'Root Test Definition', - description: 'API definition for testing custom Spectral rules.', - version: '1.0.0', +export const openapi = '3.0.0'; +export const info = { + title: 'Root Test Definition', + description: 'API definition for testing custom Spectral rules.', + version: '1.0.0', +}; +export const servers = [ + { + url: 'https://some-madeup-url.com/api', }, - servers: [ - { - url: 'https://some-madeup-url.com/api', - }, - ], - security: [ - { - IAM: [], - }, - { - OpenIdScheme: ['openid:admin'], - }, - ], - tags: [ - { - name: 'TestTag', - description: 'A tag used for testing.', - }, - ], - paths: { - '/v1/drinks': { - post: { - operationId: 'create_drink', - summary: 'Create a drink', - description: 'Create a new Drink instance.', - tags: ['TestTag'], - security: [ - { - DrinkScheme: ['mixologist'], +]; +export const security = [ + { + IAM: [], + }, + { + OpenIdScheme: ['openid:admin'], + }, +]; +export const tags = [ + { + name: 'TestTag', + description: 'A tag used for testing.', + }, +]; +export const paths = { + '/v1/drinks': { + post: { + operationId: 'create_drink', + summary: 'Create a drink', + description: 'Create a new Drink instance.', + tags: ['TestTag'], + security: [ + { + DrinkScheme: ['mixologist'], + }, + ], + 'x-codegen-request-body-name': 'drink', + requestBody: { + required: true, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/DrinkPrototype', + }, }, - ], - 'x-codegen-request-body-name': 'drink', - requestBody: { - required: true, + }, + }, + responses: { + 201: { + description: 'Success!', content: { 'application/json': { schema: { - $ref: '#/components/schemas/DrinkPrototype', + $ref: '#/components/schemas/Drink', }, }, }, }, - responses: { - 201: { - description: 'Success!', - content: { - 'application/json': { - schema: { - $ref: '#/components/schemas/Drink', - }, - }, - }, - }, - 400: { - description: 'Error!', - content: { - 'application/json': { - schema: { - $ref: '#/components/schemas/ErrorContainer', - }, + 400: { + description: 'Error!', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ErrorContainer', }, }, }, }, }, - get: { - operationId: 'list_drinks', - summary: 'List drinks', - description: 'Retrieve all the drinks.', - tags: ['TestTag'], - security: [ - { - Basic: [], - DrinkScheme: ['drinker'], - }, - ], - parameters: [ - { - name: 'start', - in: 'query', - description: 'A token which indicates the first item to return.', - required: false, - schema: { - type: 'string', - pattern: '^[a-zA-Z0-9 ]+$', - minLength: 1, - maxLength: 128, - }, + }, + get: { + operationId: 'list_drinks', + summary: 'List drinks', + description: 'Retrieve all the drinks.', + tags: ['TestTag'], + security: [ + { + Basic: [], + DrinkScheme: ['drinker'], + }, + ], + parameters: [ + { + name: 'start', + in: 'query', + description: 'A token which indicates the first item to return.', + required: false, + schema: { + type: 'string', + pattern: '^[a-zA-Z0-9 ]+$', + minLength: 1, + maxLength: 128, }, - { - name: 'limit', - in: 'query', - description: 'The number of items to return per page.', - required: false, - schema: { - type: 'integer', - format: 'int32', - minimum: 1, - maximum: 100, - default: 10, - }, + }, + { + name: 'limit', + in: 'query', + description: 'The number of items to return per page.', + required: false, + schema: { + type: 'integer', + format: 'int32', + minimum: 1, + maximum: 100, + default: 10, }, - ], - responses: { - 200: { - description: 'Success!', - content: { - 'application/json': { - schema: { - $ref: '#/components/schemas/DrinkCollection', - }, + }, + ], + responses: { + 200: { + description: 'Success!', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/DrinkCollection', }, }, }, - 400: { - description: 'Error!', - content: { - 'application/json': { - schema: { - $ref: '#/components/schemas/ErrorContainer', - }, + }, + 400: { + description: 'Error!', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ErrorContainer', }, }, }, }, }, }, - '/v1/drinks/{drink_id}': { + }, + '/v1/drinks/{drink_id}': { + parameters: [ + { + $ref: '#/components/parameters/DrinkIdParam', + }, + ], + get: { + operationId: 'get_drink', + summary: 'Have a drink', + description: 'Retrieve and consume a refreshing beverage.', + tags: ['TestTag'], + security: [ + { + DrinkScheme: [], + }, + ], parameters: [ { - $ref: '#/components/parameters/DrinkIdParam', + $ref: '#/components/parameters/VerboseParam', }, ], - get: { - operationId: 'get_drink', - summary: 'Have a drink', - description: 'Retrieve and consume a refreshing beverage.', - tags: ['TestTag'], - security: [ - { - DrinkScheme: [], - }, - ], - parameters: [ - { - $ref: '#/components/parameters/VerboseParam', - }, - ], - responses: { - 200: { - $ref: '#/components/responses/ConsumedDrink', - }, - 400: { - $ref: '#/components/responses/BarIsClosed', - }, + responses: { + 200: { + $ref: '#/components/responses/ConsumedDrink', }, - }, - }, - '/v1/drink_menu': { - get: { - operationId: 'download_drink_menu', - summary: 'Download Drinks Menu', - description: 'Retrieve a document containing the drinks menu.', - tags: ['TestTag'], - responses: { - 200: { - content: { - 'application/octet-stream': { - schema: { - description: 'Document file contents', - type: 'string', - format: 'binary', - minLength: 0, - maxLength: 1024000, - }, - }, - }, - }, + 400: { + $ref: '#/components/responses/BarIsClosed', }, }, - put: { - operationId: 'replace_drink_menu', - summary: 'Upload Drinks Menu', - description: 'Publish a new Drinks Menu for public viewing.', - tags: ['TestTag'], - 'x-codegen-request-body-name': 'document', - parameters: [ - { - in: 'query', - name: 'document_name', - description: 'The document name as a string.', - schema: { - description: 'Name of the file as a string', - type: 'string', - pattern: '^[a-z0-9]*.pdf$', - minLength: 0, - maxLength: 1024000, - }, - }, - { - in: 'query', - name: 'document_type', - description: 'The document type as a string.', - content: { - 'application/json': { - schema: { - description: 'valid document types', - type: 'string', - enum: ['pdf', 'odt', 'doc'], - }, - }, - }, - }, - ], - requestBody: { - required: true, + }, + }, + '/v1/drink_menu': { + get: { + operationId: 'download_drink_menu', + summary: 'Download Drinks Menu', + description: 'Retrieve a document containing the drinks menu.', + tags: ['TestTag'], + responses: { + 200: { content: { 'application/octet-stream': { schema: { - description: 'The document contents.', + description: 'Document file contents', type: 'string', format: 'binary', minLength: 0, @@ -238,1068 +187,1125 @@ module.exports = { }, }, }, - responses: { - 200: { - description: 'Upload confirmed!', - content: { - 'text/plain': { - schema: { - description: 'String response for upload request.', - type: 'string', - minLength: 0, - maxLength: 512, - pattern: '^[a-zA-Z0-9 ]+$', - }, - }, - }, - }, - }, }, }, - '/v1/movies': { - post: { - operationId: 'create_movie', - summary: 'Create a movie', - description: 'Create a new Movie instance.', - tags: ['TestTag'], - security: [ - { - MovieScheme: ['director'], + put: { + operationId: 'replace_drink_menu', + summary: 'Upload Drinks Menu', + description: 'Publish a new Drinks Menu for public viewing.', + tags: ['TestTag'], + 'x-codegen-request-body-name': 'document', + parameters: [ + { + in: 'query', + name: 'document_name', + description: 'The document name as a string.', + schema: { + description: 'Name of the file as a string', + type: 'string', + pattern: '^[a-z0-9]*.pdf$', + minLength: 0, + maxLength: 1024000, }, - ], - requestBody: { - required: true, + }, + { + in: 'query', + name: 'document_type', + description: 'The document type as a string.', content: { 'application/json': { schema: { - $ref: '#/components/schemas/MoviePrototype', + description: 'valid document types', + type: 'string', + enum: ['pdf', 'odt', 'doc'], }, }, }, }, - responses: { - 201: { - description: 'Success!', - content: { - 'application/json': { - schema: { - $ref: '#/components/schemas/Movie', - }, - }, + ], + requestBody: { + required: true, + content: { + 'application/octet-stream': { + schema: { + description: 'The document contents.', + type: 'string', + format: 'binary', + minLength: 0, + maxLength: 1024000, }, }, - 400: { - description: 'Error!', - content: { - 'application/json': { - schema: { - $ref: '#/components/schemas/ErrorContainer', - }, + }, + }, + responses: { + 200: { + description: 'Upload confirmed!', + content: { + 'text/plain': { + schema: { + description: 'String response for upload request.', + type: 'string', + minLength: 0, + maxLength: 512, + pattern: '^[a-zA-Z0-9 ]+$', }, }, }, }, }, - get: { - operationId: 'list_movies', - summary: 'List movies', - description: - 'Retrieve a list of movies using an optional genre qualifier.', - tags: ['TestTag'], - security: [ - { - MovieScheme: ['moviegoer'], - }, - ], - parameters: [ - { - description: 'An optional genre to filter on.', - name: 'genre', - required: false, - in: 'query', - schema: { - type: 'string', - enum: ['comedy', 'drama', 'action', 'musical', 'documentary'], - }, - }, - { - name: 'start', - in: 'query', - description: 'A token which indicates the first item to return.', - required: false, + }, + }, + '/v1/movies': { + post: { + operationId: 'create_movie', + summary: 'Create a movie', + description: 'Create a new Movie instance.', + tags: ['TestTag'], + security: [ + { + MovieScheme: ['director'], + }, + ], + requestBody: { + required: true, + content: { + 'application/json': { schema: { - type: 'string', - pattern: '^[a-zA-Z0-9 ]+$', - minLength: 1, - maxLength: 128, + $ref: '#/components/schemas/MoviePrototype', }, }, - { - name: 'limit', - in: 'query', - description: 'The number of items to return per page.', - required: false, - schema: { - type: 'integer', - format: 'int32', - minimum: 1, - maximum: 100, - default: 10, + }, + }, + responses: { + 201: { + description: 'Success!', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/Movie', + }, }, }, - ], - responses: { - 200: { - description: 'Success!', - content: { - 'application/json': { - schema: { - $ref: '#/components/schemas/MovieCollection', - }, - example: { - limit: 2, - total_count: 2, - first: { - href: 'first page', - }, - last: { - href: 'last page', - }, - movies: [ - { id: '1234', name: 'The Fellowship of the Ring' }, - { id: '5678', name: 'The Two Towers' }, - ], - }, + }, + 400: { + description: 'Error!', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ErrorContainer', }, }, }, }, }, }, - '/v1/movies/{movie_id}': { - parameters: [ + get: { + operationId: 'list_movies', + summary: 'List movies', + description: + 'Retrieve a list of movies using an optional genre qualifier.', + tags: ['TestTag'], + security: [ { - $ref: '#/components/parameters/MovieIdParam', + MovieScheme: ['moviegoer'], }, ], - get: { - operationId: 'get_movie', - summary: 'Get a movie', - description: 'Retrieve the movie and return it in the response.', - tags: ['TestTag'], - security: [ - { - MovieScheme: ['moviegoer'], - }, - ], - responses: { - 200: { - $ref: '#/components/responses/MovieWithETag', - }, - 400: { - description: 'Didnt work!', - content: { - 'application/json': { - schema: { - $ref: '#/components/schemas/ErrorContainer', - }, - }, - }, + parameters: [ + { + description: 'An optional genre to filter on.', + name: 'genre', + required: false, + in: 'query', + schema: { + type: 'string', + enum: ['comedy', 'drama', 'action', 'musical', 'documentary'], }, }, - }, - put: { - operationId: 'replace_movie', - summary: 'Replace movie', - description: 'Replace a movie with updated state information.', - tags: ['TestTag'], - parameters: [ - { - $ref: '#/components/parameters/IfMatchParam', + { + name: 'start', + in: 'query', + description: 'A token which indicates the first item to return.', + required: false, + schema: { + type: 'string', + pattern: '^[a-zA-Z0-9 ]+$', + minLength: 1, + maxLength: 128, }, - ], - security: [ - { - MovieScheme: ['director'], + }, + { + name: 'limit', + in: 'query', + description: 'The number of items to return per page.', + required: false, + schema: { + type: 'integer', + format: 'int32', + minimum: 1, + maximum: 100, + default: 10, }, - ], - 'x-codegen-request-body-name': 'movie', - requestBody: { - required: true, + }, + ], + responses: { + 200: { + description: 'Success!', content: { 'application/json': { schema: { - $ref: '#/components/schemas/MoviePrototype', + $ref: '#/components/schemas/MovieCollection', }, - }, - }, - }, - responses: { - 200: { - $ref: '#/components/responses/MovieWithETag', - }, - 400: { - description: 'Didnt work!', - content: { - 'application/json': { - schema: { - $ref: '#/components/schemas/ErrorContainer', + example: { + limit: 2, + total_count: 2, + first: { + href: 'first page', }, - }, - }, - }, - 409: { - description: 'Resource conflict!', - content: { - 'application/json': { - schema: { - $ref: '#/components/schemas/ErrorContainer', + last: { + href: 'last page', }, + movies: [ + { id: '1234', name: 'The Fellowship of the Ring' }, + { id: '5678', name: 'The Two Towers' }, + ], }, }, }, }, }, }, - '/v1/cars': { - post: { - operationId: 'create_car', - summary: 'Create a car', - description: 'Create a new Car instance.', - tags: ['TestTag'], - parameters: [ - { - $ref: '#/components/parameters/ExpediteParam', - }, - ], - security: [ - { - IAM: [], - }, - ], - 'x-codegen-request-body-name': 'car', - requestBody: { - $ref: '#/components/requestBodies/CarRequest', - }, - responses: { - 201: { - description: 'The car instance was returned in the response.', - content: { - 'application/json': { - schema: { - $ref: '#/components/schemas/Car', - }, - examples: { - ResponseExample: { - $ref: '#/components/examples/CarExample', - }, - }, - }, - }, - links: { - CarId: { - $ref: '#/components/links/CarIdLink', + }, + '/v1/movies/{movie_id}': { + parameters: [ + { + $ref: '#/components/parameters/MovieIdParam', + }, + ], + get: { + operationId: 'get_movie', + summary: 'Get a movie', + description: 'Retrieve the movie and return it in the response.', + tags: ['TestTag'], + security: [ + { + MovieScheme: ['moviegoer'], + }, + ], + responses: { + 200: { + $ref: '#/components/responses/MovieWithETag', + }, + 400: { + description: 'Didnt work!', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ErrorContainer', }, }, }, - 400: { - $ref: '#/components/responses/ErrorResponse', - }, }, }, }, - '/v1/cars/{car_id}': { + put: { + operationId: 'replace_movie', + summary: 'Replace movie', + description: 'Replace a movie with updated state information.', + tags: ['TestTag'], parameters: [ { - $ref: '#/components/parameters/CarIdParam', + $ref: '#/components/parameters/IfMatchParam', }, ], - get: { - operationId: 'get_car', - summary: 'Get Car', - description: 'Retrieve a Car instance by its id.', - tags: ['TestTag'], - security: [ - { - IAM: [], - }, - ], - responses: { - 200: { - $ref: '#/components/responses/CarResponse', - }, - 400: { - $ref: '#/components/responses/ErrorResponse', + security: [ + { + MovieScheme: ['director'], + }, + ], + 'x-codegen-request-body-name': 'movie', + requestBody: { + required: true, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/MoviePrototype', + }, }, }, }, - patch: { - operationId: 'update_car', - summary: 'Update a car', - description: 'Update a new Car instance with new state information.', - tags: ['TestTag'], - security: [ - { - IAM: [], - }, - ], - requestBody: { - $ref: '#/components/requestBodies/UpdateCarRequest', - }, - responses: { - 200: { - description: 'The car instance was updated successfully.', - content: { - 'application/json': { - schema: { - $ref: '#/components/schemas/Car', - }, - examples: { - ResponseExample: { - $ref: '#/components/examples/CarExample', - }, - }, + responses: { + 200: { + $ref: '#/components/responses/MovieWithETag', + }, + 400: { + description: 'Didnt work!', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ErrorContainer', }, }, }, - 400: { - $ref: '#/components/responses/ErrorResponse', + }, + 409: { + description: 'Resource conflict!', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ErrorContainer', + }, + }, }, }, }, }, }, - components: { - parameters: { - DrinkIdParam: { - name: 'drink_id', - description: 'The id of the drink resource.', - in: 'path', - required: true, - schema: { - type: 'string', - pattern: '^[a-zA-Z0-9 ]+$', - minLength: 1, - maxLength: 30, + '/v1/cars': { + post: { + operationId: 'create_car', + summary: 'Create a car', + description: 'Create a new Car instance.', + tags: ['TestTag'], + parameters: [ + { + $ref: '#/components/parameters/ExpediteParam', }, - }, - MovieIdParam: { - name: 'movie_id', - description: 'The id of the movie resource.', - in: 'path', - required: true, - schema: { - type: 'string', - pattern: '^[a-zA-Z0-9 ]+$', - minLength: 1, - maxLength: 30, + ], + security: [ + { + IAM: [], }, + ], + 'x-codegen-request-body-name': 'car', + requestBody: { + $ref: '#/components/requestBodies/CarRequest', }, - VerboseParam: { - description: 'An optional verbose parameter.', - name: 'verbose', - required: false, - in: 'query', - schema: { - type: 'boolean', + responses: { + 201: { + description: 'The car instance was returned in the response.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/Car', + }, + examples: { + ResponseExample: { + $ref: '#/components/examples/CarExample', + }, + }, + }, + }, + links: { + CarId: { + $ref: '#/components/links/CarIdLink', + }, + }, }, - }, - ExpediteParam: { - description: - 'An optional parameter to speed up the car manufacturing process.', - name: 'hurry_up', - required: false, - in: 'query', - schema: { - type: 'boolean', + 400: { + $ref: '#/components/responses/ErrorResponse', }, }, - CarIdParam: { - description: 'A car id.', - name: 'car_id', - required: true, - in: 'path', - schema: { - type: 'string', - pattern: '^[a-zA-Z0-9 ]+$', - minLength: 1, - maxLength: 30, - }, + }, + }, + '/v1/cars/{car_id}': { + parameters: [ + { + $ref: '#/components/parameters/CarIdParam', }, - IfMatchParam: { - description: 'The If-Match header param.', - name: 'If-Match', - required: true, - in: 'header', - schema: { - type: 'string', - pattern: '^[a-zA-Z0-9 ]+$', - minLength: 1, - maxLength: 64, + ], + get: { + operationId: 'get_car', + summary: 'Get Car', + description: 'Retrieve a Car instance by its id.', + tags: ['TestTag'], + security: [ + { + IAM: [], + }, + ], + responses: { + 200: { + $ref: '#/components/responses/CarResponse', + }, + 400: { + $ref: '#/components/responses/ErrorResponse', }, }, }, - schemas: { - Movie: { - description: 'This is the Movie schema.', - type: 'object', - required: ['id', 'name'], - properties: { - id: { - $ref: '#/components/schemas/IdString', - }, - name: { - $ref: '#/components/schemas/NormalString', - }, - director: { - $ref: '#/components/schemas/NormalString', - }, - running_time: { - type: 'integer', - format: 'int32', - minimum: 0, - maximum: 360, - description: 'The length of the movie, in minutes.', - }, - imdb_url: { - $ref: '#/components/schemas/UrlString', - }, - trailer: { - type: 'string', - format: 'byte', - description: 'A short trailer for the movie.', - minLength: 0, - maxLength: 1024, - }, - }, - example: { - id: 'acb123', - name: 'The Two Towers', - director: 'Peter Jackson', - running_time: 179, + patch: { + operationId: 'update_car', + summary: 'Update a car', + description: 'Update a new Car instance with new state information.', + tags: ['TestTag'], + security: [ + { + IAM: [], }, + ], + requestBody: { + $ref: '#/components/requestBodies/UpdateCarRequest', }, - MoviePrototype: { - description: 'This is the Movie creation schema.', - type: 'object', - required: ['name'], - properties: { - name: { - $ref: '#/components/schemas/NormalString', - }, - director: { - $ref: '#/components/schemas/NormalString', - }, - running_time: { - type: 'integer', - format: 'int32', - minimum: 0, - maximum: 360, - description: 'The length of the movie, in minutes.', - }, - imdb_url: { - $ref: '#/components/schemas/UrlString', - }, - trailer: { - type: 'string', - format: 'byte', - description: 'A short trailer for the movie.', - minLength: 0, - maxLength: 1024, + responses: { + 200: { + description: 'The car instance was updated successfully.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/Car', + }, + examples: { + ResponseExample: { + $ref: '#/components/examples/CarExample', + }, + }, + }, }, }, - example: { - name: 'The Two Towers', - director: 'Peter Jackson', - running_time: 179, + 400: { + $ref: '#/components/responses/ErrorResponse', }, }, - Drink: { - type: 'object', - description: - 'A Drink can be either a Juice or Soda instance. Sorry, no Beer or Whisky allowed.', - properties: { - id: { - $ref: '#/components/schemas/IdString', - }, + }, + }, +}; +export const components = { + parameters: { + DrinkIdParam: { + name: 'drink_id', + description: 'The id of the drink resource.', + in: 'path', + required: true, + schema: { + type: 'string', + pattern: '^[a-zA-Z0-9 ]+$', + minLength: 1, + maxLength: 30, + }, + }, + MovieIdParam: { + name: 'movie_id', + description: 'The id of the movie resource.', + in: 'path', + required: true, + schema: { + type: 'string', + pattern: '^[a-zA-Z0-9 ]+$', + minLength: 1, + maxLength: 30, + }, + }, + VerboseParam: { + description: 'An optional verbose parameter.', + name: 'verbose', + required: false, + in: 'query', + schema: { + type: 'boolean', + }, + }, + ExpediteParam: { + description: + 'An optional parameter to speed up the car manufacturing process.', + name: 'hurry_up', + required: false, + in: 'query', + schema: { + type: 'boolean', + }, + }, + CarIdParam: { + description: 'A car id.', + name: 'car_id', + required: true, + in: 'path', + schema: { + type: 'string', + pattern: '^[a-zA-Z0-9 ]+$', + minLength: 1, + maxLength: 30, + }, + }, + IfMatchParam: { + description: 'The If-Match header param.', + name: 'If-Match', + required: true, + in: 'header', + schema: { + type: 'string', + pattern: '^[a-zA-Z0-9 ]+$', + minLength: 1, + maxLength: 64, + }, + }, + }, + schemas: { + Movie: { + description: 'This is the Movie schema.', + type: 'object', + required: ['id', 'name'], + properties: { + id: { + $ref: '#/components/schemas/IdString', }, - oneOf: [ - { - $ref: '#/components/schemas/Juice', - }, - { - $ref: '#/components/schemas/Soda', - }, - ], - discriminator: { - propertyName: 'type', + name: { + $ref: '#/components/schemas/NormalString', + }, + director: { + $ref: '#/components/schemas/NormalString', }, - example: { - id: 'acb123', - type: 'soda', - name: 'Root Beer', + running_time: { + type: 'integer', + format: 'int32', + minimum: 0, + maximum: 360, + description: 'The length of the movie, in minutes.', + }, + imdb_url: { + $ref: '#/components/schemas/UrlString', + }, + trailer: { + type: 'string', + format: 'byte', + description: 'A short trailer for the movie.', + minLength: 0, + maxLength: 1024, }, }, - DrinkPrototype: { - type: 'object', - description: - 'A Drink can be either a Juice or Soda instance. Sorry, no Beer or Whisky allowed.', - oneOf: [ - { - $ref: '#/components/schemas/Juice', - }, - { - $ref: '#/components/schemas/Soda', - }, - ], - discriminator: { - propertyName: 'type', + example: { + id: 'acb123', + name: 'The Two Towers', + director: 'Peter Jackson', + running_time: 179, + }, + }, + MoviePrototype: { + description: 'This is the Movie creation schema.', + type: 'object', + required: ['name'], + properties: { + name: { + $ref: '#/components/schemas/NormalString', + }, + director: { + $ref: '#/components/schemas/NormalString', + }, + running_time: { + type: 'integer', + format: 'int32', + minimum: 0, + maximum: 360, + description: 'The length of the movie, in minutes.', }, - example: { - type: 'soda', - name: 'Root Beer', + imdb_url: { + $ref: '#/components/schemas/UrlString', + }, + trailer: { + type: 'string', + format: 'byte', + description: 'A short trailer for the movie.', + minLength: 0, + maxLength: 1024, }, }, - Soda: { - description: 'Do you really not know what a Soda is?', - type: 'object', - required: ['type', 'name'], - properties: { - type: { - description: 'The drink type - should be "soda".', - type: 'string', - enum: ['soda'], - }, - name: { - $ref: '#/components/schemas/NormalString', - }, + example: { + name: 'The Two Towers', + director: 'Peter Jackson', + running_time: 179, + }, + }, + Drink: { + type: 'object', + description: + 'A Drink can be either a Juice or Soda instance. Sorry, no Beer or Whisky allowed.', + properties: { + id: { + $ref: '#/components/schemas/IdString', }, }, - Juice: { - description: 'Juice box!', - type: 'object', - required: ['type', 'fruit'], - properties: { - type: { - description: 'The drink type - should be "juice".', - type: 'string', - enum: ['juice'], - }, - fruit: { - $ref: '#/components/schemas/NormalString', - }, + oneOf: [ + { + $ref: '#/components/schemas/Juice', + }, + { + $ref: '#/components/schemas/Soda', }, + ], + discriminator: { + propertyName: 'type', }, - NormalString: { - description: 'This is a normal string.', - type: 'string', - pattern: '^[a-zA-Z0-9 ]+$', - minLength: 1, - maxLength: 30, + example: { + id: 'acb123', + type: 'soda', + name: 'Root Beer', }, - IdString: { - description: 'An identifier of some sort.', - type: 'string', - readOnly: true, - pattern: '^[a-zA-Z0-9]+$', - minLength: 1, - maxLength: 10, + }, + DrinkPrototype: { + type: 'object', + description: + 'A Drink can be either a Juice or Soda instance. Sorry, no Beer or Whisky allowed.', + oneOf: [ + { + $ref: '#/components/schemas/Juice', + }, + { + $ref: '#/components/schemas/Soda', + }, + ], + discriminator: { + propertyName: 'type', }, - UrlString: { - description: 'A URL of some sort.', - type: 'string', - format: 'url', - pattern: '^https://.*$', - maxLength: 1024, + example: { + type: 'soda', + name: 'Root Beer', }, - DrinkCollection: { - type: 'object', - description: 'A single page of results containing Drink instances.', - allOf: [ - { - $ref: '#/components/schemas/TokenPaginationBase', - }, - { - type: 'object', - required: ['drinks'], - properties: { - drinks: { - description: - 'The set of Drink instances in this page of results.', - type: 'array', - minItems: 0, - maxItems: 50, - items: { - $ref: '#/components/schemas/Drink', - }, + }, + Soda: { + description: 'Do you really not know what a Soda is?', + type: 'object', + required: ['type', 'name'], + properties: { + type: { + description: 'The drink type - should be "soda".', + type: 'string', + enum: ['soda'], + }, + name: { + $ref: '#/components/schemas/NormalString', + }, + }, + }, + Juice: { + description: 'Juice box!', + type: 'object', + required: ['type', 'fruit'], + properties: { + type: { + description: 'The drink type - should be "juice".', + type: 'string', + enum: ['juice'], + }, + fruit: { + $ref: '#/components/schemas/NormalString', + }, + }, + }, + NormalString: { + description: 'This is a normal string.', + type: 'string', + pattern: '^[a-zA-Z0-9 ]+$', + minLength: 1, + maxLength: 30, + }, + IdString: { + description: 'An identifier of some sort.', + type: 'string', + readOnly: true, + pattern: '^[a-zA-Z0-9]+$', + minLength: 1, + maxLength: 10, + }, + UrlString: { + description: 'A URL of some sort.', + type: 'string', + format: 'url', + pattern: '^https://.*$', + maxLength: 1024, + }, + DrinkCollection: { + type: 'object', + description: 'A single page of results containing Drink instances.', + allOf: [ + { + $ref: '#/components/schemas/TokenPaginationBase', + }, + { + type: 'object', + required: ['drinks'], + properties: { + drinks: { + description: + 'The set of Drink instances in this page of results.', + type: 'array', + minItems: 0, + maxItems: 50, + items: { + $ref: '#/components/schemas/Drink', }, }, }, - ], - example: { - limit: 1, - total_count: 1, - first: { - href: 'first page', - }, - next: { - href: 'next page', - }, - previous: { - href: 'previous page', - }, - last: { - href: 'last page', - }, - drinks: [ - { - type: 'soda', - name: 'Root Beer', - }, - ], }, - }, - MovieCollection: { - type: 'object', - description: 'A single page of results containing Movie instances.', - allOf: [ + ], + example: { + limit: 1, + total_count: 1, + first: { + href: 'first page', + }, + next: { + href: 'next page', + }, + previous: { + href: 'previous page', + }, + last: { + href: 'last page', + }, + drinks: [ { - $ref: '#/components/schemas/TokenPaginationBase', + type: 'soda', + name: 'Root Beer', }, - { - type: 'object', - required: ['movies'], - properties: { - movies: { - description: - 'The set of Movie instances in this page of results.', - type: 'array', - minItems: 0, - maxItems: 50, - items: { - $ref: '#/components/schemas/Movie', - }, + ], + }, + }, + MovieCollection: { + type: 'object', + description: 'A single page of results containing Movie instances.', + allOf: [ + { + $ref: '#/components/schemas/TokenPaginationBase', + }, + { + type: 'object', + required: ['movies'], + properties: { + movies: { + description: + 'The set of Movie instances in this page of results.', + type: 'array', + minItems: 0, + maxItems: 50, + items: { + $ref: '#/components/schemas/Movie', }, }, }, - ], - example: { - limit: 1, - total_count: 1, - first: { - href: 'first page', - }, - next: { - href: 'next page', - }, - previous: { - href: 'previous page', - }, - last: { - href: 'last page', - }, - movies: [ - { - id: 'acb123', - name: 'The Two Towers', - director: 'Peter Jackson', - running_time: 179, - }, - ], }, - }, - Car: { - description: 'Information about a car.', - type: 'object', - required: ['id', 'make', 'model'], - properties: { - id: { - description: 'The car id.', - type: 'string', - minLength: 1, - maxLength: 64, - pattern: '^[0-9]+$', - }, - make: { - description: 'The car make.', - type: 'string', - minLength: 1, - maxLength: 32, - pattern: '^.*$', - }, - model: { - $ref: '#/components/schemas/CarModelType', - }, + ], + example: { + limit: 1, + total_count: 1, + first: { + href: 'first page', }, - }, - CarPrototype: { - description: 'Information about a car.', - type: 'object', - required: ['make', 'model'], - properties: { - make: { - description: 'The car make.', - type: 'string', - minLength: 1, - maxLength: 32, - pattern: '^.*$', - }, - model: { - $ref: '#/components/schemas/CarModelType', - }, + next: { + href: 'next page', }, - }, - CarPatch: { - description: 'Information about a car.', - type: 'object', - properties: { - make: { - description: 'The car make.', - type: 'string', - minLength: 1, - maxLength: 32, - pattern: '^.*$', - }, - model: { - $ref: '#/components/schemas/CarModelType', - }, + previous: { + href: 'previous page', + }, + last: { + href: 'last page', }, + movies: [ + { + id: 'acb123', + name: 'The Two Towers', + director: 'Peter Jackson', + running_time: 179, + }, + ], }, - CarModelType: { - description: 'The car model.', - type: 'string', - minLength: 1, - maxLength: 32, - pattern: '^.*$', + }, + Car: { + description: 'Information about a car.', + type: 'object', + required: ['id', 'make', 'model'], + properties: { + id: { + description: 'The car id.', + type: 'string', + minLength: 1, + maxLength: 64, + pattern: '^[0-9]+$', + }, + make: { + description: 'The car make.', + type: 'string', + minLength: 1, + maxLength: 32, + pattern: '^.*$', + }, + model: { + $ref: '#/components/schemas/CarModelType', + }, }, - TokenPaginationBase: { - description: - 'A base schema containing properties that support token-based pagination.', - type: 'object', - required: ['limit', 'total_count'], - properties: { - limit: { - description: - 'The number of items returned in this page of results.', - type: 'integer', - format: 'int32', - minimum: 1, - maximum: 100, - }, - total_count: { - description: 'The total number of items across all result pages.', - type: 'integer', - format: 'int32', - minimum: 0, - maximum: 1024, - }, - first: { - $ref: '#/components/schemas/PageLink', - }, - next: { - $ref: '#/components/schemas/PageLink', - }, - previous: { - $ref: '#/components/schemas/PageLink', - }, - last: { - allOf: [ - { - $ref: '#/components/schemas/PageLink', - }, - { - description: 'Link to the last page of results.', - }, - ], - }, + }, + CarPrototype: { + description: 'Information about a car.', + type: 'object', + required: ['make', 'model'], + properties: { + make: { + description: 'The car make.', + type: 'string', + minLength: 1, + maxLength: 32, + pattern: '^.*$', + }, + model: { + $ref: '#/components/schemas/CarModelType', }, }, - PageLink: { - description: 'Contains a link to a page of paginated results', - type: 'object', - properties: { - href: { - description: 'The link value', - type: 'string', - pattern: '^[a-zA-Z0-9 ]+$', - minLength: 1, - maxLength: 30, - }, + }, + CarPatch: { + description: 'Information about a car.', + type: 'object', + properties: { + make: { + description: 'The car make.', + type: 'string', + minLength: 1, + maxLength: 32, + pattern: '^.*$', + }, + model: { + $ref: '#/components/schemas/CarModelType', }, }, - ErrorContainer: { - description: 'An error response for an operation.', - type: 'object', - required: ['errors'], - properties: { - errors: { - type: 'array', - minItems: 0, - maxItems: 100, - description: - 'The array of error entries associated with the error response', - items: { - $ref: '#/components/schemas/Error', + }, + CarModelType: { + description: 'The car model.', + type: 'string', + minLength: 1, + maxLength: 32, + pattern: '^.*$', + }, + TokenPaginationBase: { + description: + 'A base schema containing properties that support token-based pagination.', + type: 'object', + required: ['limit', 'total_count'], + properties: { + limit: { + description: 'The number of items returned in this page of results.', + type: 'integer', + format: 'int32', + minimum: 1, + maximum: 100, + }, + total_count: { + description: 'The total number of items across all result pages.', + type: 'integer', + format: 'int32', + minimum: 0, + maximum: 1024, + }, + first: { + $ref: '#/components/schemas/PageLink', + }, + next: { + $ref: '#/components/schemas/PageLink', + }, + previous: { + $ref: '#/components/schemas/PageLink', + }, + last: { + allOf: [ + { + $ref: '#/components/schemas/PageLink', }, - }, - status_code: { - type: 'integer', - format: 'int32', - minimum: 0, - maximum: 599, - description: 'The HTTP status code.', - }, - trace: { - description: 'The error trace information.', - type: 'string', - format: 'identifier', - pattern: '^[a-zA-Z0-9 ]+$', - maxLength: 30, - }, + { + description: 'Link to the last page of results.', + }, + ], }, }, - Error: { - description: 'An error response entry.', - type: 'object', - required: ['code'], - properties: { - code: { - description: 'The error code.', - type: 'string', - enum: ['bad_request', 'not_authorized', 'no_need_to_know'], - }, - message: { - description: 'The error message.', - type: 'string', - pattern: '^[a-zA-Z0-9 ]+$', - minLength: 1, - maxLength: 128, - }, - more_info: { - description: 'Additional info about the error.', - type: 'string', - pattern: '^[a-zA-Z0-9 ]+$', - minLength: 1, - maxLength: 128, - }, - target: { - $ref: '#/components/schemas/ErrorTarget', - }, + }, + PageLink: { + description: 'Contains a link to a page of paginated results', + type: 'object', + properties: { + href: { + description: 'The link value', + type: 'string', + pattern: '^[a-zA-Z0-9 ]+$', + minLength: 1, + maxLength: 30, }, }, - ErrorTarget: { - description: 'An error target (a field, header or query parameter).', - type: 'object', - required: ['type'], - properties: { - type: { - description: 'The error target type.', - type: 'string', - enum: ['field', 'header', 'parameter'], - }, - name: { - description: - 'The name of the field/header/query parameter associated with the error.', - type: 'string', - pattern: '^[a-zA-Z0-9 ]+$', - minLength: 1, - maxLength: 30, + }, + ErrorContainer: { + description: 'An error response for an operation.', + type: 'object', + required: ['errors'], + properties: { + errors: { + type: 'array', + minItems: 0, + maxItems: 100, + description: + 'The array of error entries associated with the error response', + items: { + $ref: '#/components/schemas/Error', }, }, + status_code: { + type: 'integer', + format: 'int32', + minimum: 0, + maximum: 599, + description: 'The HTTP status code.', + }, + trace: { + description: 'The error trace information.', + type: 'string', + format: 'identifier', + pattern: '^[a-zA-Z0-9 ]+$', + maxLength: 30, + }, }, }, - securitySchemes: { - IAM: { - type: 'apiKey', - description: - 'An IAM access token provided via the Authorization header', - in: 'header', - name: 'Authorization', + Error: { + description: 'An error response entry.', + type: 'object', + required: ['code'], + properties: { + code: { + description: 'The error code.', + type: 'string', + enum: ['bad_request', 'not_authorized', 'no_need_to_know'], + }, + message: { + description: 'The error message.', + type: 'string', + pattern: '^[a-zA-Z0-9 ]+$', + minLength: 1, + maxLength: 128, + }, + more_info: { + description: 'Additional info about the error.', + type: 'string', + pattern: '^[a-zA-Z0-9 ]+$', + minLength: 1, + maxLength: 128, + }, + target: { + $ref: '#/components/schemas/ErrorTarget', + }, }, - Basic: { - type: 'http', - description: 'A basic-auth type Authorization header', - scheme: 'Basic', - bearerFormat: 'bearer', + }, + ErrorTarget: { + description: 'An error target (a field, header or query parameter).', + type: 'object', + required: ['type'], + properties: { + type: { + description: 'The error target type.', + type: 'string', + enum: ['field', 'header', 'parameter'], + }, + name: { + description: + 'The name of the field/header/query parameter associated with the error.', + type: 'string', + pattern: '^[a-zA-Z0-9 ]+$', + minLength: 1, + maxLength: 30, + }, }, - DrinkScheme: { - type: 'oauth2', - description: 'An oauth2 authorizaton flow', - flows: { - implicit: { - authorizationUrl: 'https://myoauthserver.com/auth', - tokenUrl: 'https://myoauthserver.com/token', - scopes: { - mixologist: 'Can create Drinks', - drinker: 'Can consume beverages', - }, + }, + }, + securitySchemes: { + IAM: { + type: 'apiKey', + description: 'An IAM access token provided via the Authorization header', + in: 'header', + name: 'Authorization', + }, + Basic: { + type: 'http', + description: 'A basic-auth type Authorization header', + scheme: 'Basic', + bearerFormat: 'bearer', + }, + DrinkScheme: { + type: 'oauth2', + description: 'An oauth2 authorizaton flow', + flows: { + implicit: { + authorizationUrl: 'https://myoauthserver.com/auth', + tokenUrl: 'https://myoauthserver.com/token', + scopes: { + mixologist: 'Can create Drinks', + drinker: 'Can consume beverages', }, - authorizationCode: { - authorizationUrl: 'https://myoauthserver.com/auth', - tokenUrl: 'https://myoauthserver.com/token', - scopes: { - mixologist: 'Can create Drinks', - }, + }, + authorizationCode: { + authorizationUrl: 'https://myoauthserver.com/auth', + tokenUrl: 'https://myoauthserver.com/token', + scopes: { + mixologist: 'Can create Drinks', }, }, }, - MovieScheme: { - type: 'oauth2', - description: 'An oauth2 authorizaton flow', - flows: { - implicit: { - authorizationUrl: 'https://myoauthserver.com/auth', - tokenUrl: 'https://myoauthserver.com/token', - scopes: { - director: 'Can create Movies', - moviegoer: 'Can view Movies', - }, + }, + MovieScheme: { + type: 'oauth2', + description: 'An oauth2 authorizaton flow', + flows: { + implicit: { + authorizationUrl: 'https://myoauthserver.com/auth', + tokenUrl: 'https://myoauthserver.com/token', + scopes: { + director: 'Can create Movies', + moviegoer: 'Can view Movies', }, - authorizationCode: { - authorizationUrl: 'https://myoauthserver.com/auth', - tokenUrl: 'https://myoauthserver.com/token', - scopes: { - director: 'Can create Movies', - }, + }, + authorizationCode: { + authorizationUrl: 'https://myoauthserver.com/auth', + tokenUrl: 'https://myoauthserver.com/token', + scopes: { + director: 'Can create Movies', }, - clientCredentials: { - tokenUrl: 'https://myoauthserver.com/token', - scopes: { - moviegoer: 'Can view Movies', - }, + }, + clientCredentials: { + tokenUrl: 'https://myoauthserver.com/token', + scopes: { + moviegoer: 'Can view Movies', }, - password: { - tokenUrl: 'https://myoauthserver.com/token', - scopes: { - moviegoer: 'Can view Movies', - }, + }, + password: { + tokenUrl: 'https://myoauthserver.com/token', + scopes: { + moviegoer: 'Can view Movies', }, }, }, - OpenIdScheme: { - type: 'openIdConnect', - description: 'An openid-connect authorization scheme', - openIdConnectUrl: 'https://myopenidserver.com/auth', - }, }, - responses: { - ConsumedDrink: { - description: 'Success, we consumed a drink!', - content: { - 'application/json': { - schema: { - $ref: '#/components/schemas/Drink', - }, + OpenIdScheme: { + type: 'openIdConnect', + description: 'An openid-connect authorization scheme', + openIdConnectUrl: 'https://myopenidserver.com/auth', + }, + }, + responses: { + ConsumedDrink: { + description: 'Success, we consumed a drink!', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/Drink', }, }, }, - MovieWithETag: { - description: 'Success, we retrieved a movie!', - content: { - 'application/json': { - schema: { - $ref: '#/components/schemas/Movie', - }, + }, + MovieWithETag: { + description: 'Success, we retrieved a movie!', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/Movie', }, }, - headers: { - ETag: { - description: 'The unique version identifier of the movie.', - schema: { - $ref: '#/components/schemas/IdString', - }, + }, + headers: { + ETag: { + description: 'The unique version identifier of the movie.', + schema: { + $ref: '#/components/schemas/IdString', }, }, }, - BarIsClosed: { - description: 'Error, no drinks to be had!', - content: { - 'application/json': { - schema: { - $ref: '#/components/schemas/ErrorContainer', - }, + }, + BarIsClosed: { + description: 'Error, no drinks to be had!', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ErrorContainer', }, }, }, - CarResponse: { - description: 'The car instance was returned in the response.', - content: { - 'application/json': { - schema: { - $ref: '#/components/schemas/Car', - }, - examples: { - ResponseExample: { - $ref: '#/components/examples/CarExample', - }, + }, + CarResponse: { + description: 'The car instance was returned in the response.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/Car', + }, + examples: { + ResponseExample: { + $ref: '#/components/examples/CarExample', }, }, }, }, - ErrorResponse: { - description: 'An error occurred.', - content: { - 'application/json': { - schema: { - $ref: '#/components/schemas/ErrorContainer', - }, + }, + ErrorResponse: { + description: 'An error occurred.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ErrorContainer', }, }, }, }, - requestBodies: { - CarRequest: { - required: true, - content: { - 'application/json': { - schema: { - $ref: '#/components/schemas/CarPrototype', - }, - examples: { - RequestExample: { - $ref: '#/components/examples/CarExample', - }, + }, + requestBodies: { + CarRequest: { + required: true, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/CarPrototype', + }, + examples: { + RequestExample: { + $ref: '#/components/examples/CarExample', }, }, }, }, - UpdateCarRequest: { - required: true, - content: { - 'application/merge-patch+json; charset=utf-8': { - schema: { - $ref: '#/components/schemas/CarPatch', - }, - examples: { - RequestExample: { - $ref: '#/components/examples/CarExample', - }, + }, + UpdateCarRequest: { + required: true, + content: { + 'application/merge-patch+json; charset=utf-8': { + schema: { + $ref: '#/components/schemas/CarPatch', + }, + examples: { + RequestExample: { + $ref: '#/components/examples/CarExample', }, }, }, }, }, - examples: { - CarExample: { - description: 'An example of a Car instance.', - value: { - id: '1', - make: 'Ford', - model: 'F150 Lariat', - }, + }, + examples: { + CarExample: { + description: 'An example of a Car instance.', + value: { + id: '1', + make: 'Ford', + model: 'F150 Lariat', }, }, - links: { - CarIdLink: { - description: - 'Link the `create_car` response `id` property to the `get_car` path parameter named `car_id`.', - operationId: 'get_car', - parameters: { - car_id: '$response.body#/id', - }, + }, + links: { + CarIdLink: { + description: + 'Link the `create_car` response `id` property to the `get_car` path parameter named `car_id`.', + operationId: 'get_car', + parameters: { + car_id: '$response.body#/id', }, }, - callbacks: {}, - headers: {}, }, + callbacks: {}, + headers: {}, +}; + +export default { + openapi, + info, + servers, + security, + tags, + paths, + components, }; diff --git a/packages/ruleset/test/test-utils/severity-codes.js b/packages/ruleset/test/test-utils/severity-codes.js index fd6b7811a..e620fd762 100644 --- a/packages/ruleset/test/test-utils/severity-codes.js +++ b/packages/ruleset/test/test-utils/severity-codes.js @@ -3,9 +3,7 @@ * SPDX-License-Identifier: Apache2.0 */ -module.exports = { - error: 0, - warning: 1, - info: 2, - hint: 3, -}; +export const error = 0; +export const warning = 1; +export const info = 2; +export const hint = 3; diff --git a/packages/ruleset/test/test-utils/test-rule.js b/packages/ruleset/test/test-utils/test-rule.js index 2b95385ba..9f6e04658 100644 --- a/packages/ruleset/test/test-utils/test-rule.js +++ b/packages/ruleset/test/test-utils/test-rule.js @@ -3,7 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { Spectral } = require('@stoplight/spectral-core'); +import SpectralCore from '@stoplight/spectral-core'; +const { Spectral } = SpectralCore; /** * This is a test utility function that uses spectral to invoke the specified rule @@ -32,4 +33,4 @@ async function testRule(ruleName, rule, apidef, exceptionIsExpected = false) { } } -module.exports = testRule; +export default testRule; diff --git a/packages/ruleset/test/test-utils/unit-test-rule.js b/packages/ruleset/test/test-utils/unit-test-rule.js index b2d135ed8..152aee104 100644 --- a/packages/ruleset/test/test-utils/unit-test-rule.js +++ b/packages/ruleset/test/test-utils/unit-test-rule.js @@ -3,7 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { Spectral } = require('@stoplight/spectral-core'); +import SpectralCore from '@stoplight/spectral-core'; +const { Spectral } = SpectralCore; /** * This is a test utility function that uses spectral to invoke the specified rule @@ -44,4 +45,4 @@ async function unitTestRule( } } -module.exports = unitTestRule; +export default unitTestRule; diff --git a/packages/ruleset/test/utils/compute-refs-at-paths.test.js b/packages/ruleset/test/utils/compute-refs-at-paths.test.js index 9528d5996..901c355ae 100644 --- a/packages/ruleset/test/utils/compute-refs-at-paths.test.js +++ b/packages/ruleset/test/utils/compute-refs-at-paths.test.js @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache2.0 */ -const { computeRefsAtPaths } = require('../../src/utils'); +import { computeRefsAtPaths } from '../../src/utils'; describe('Utility function: computeRefsAtPaths()', () => { it('should return empty when there are no refs in the nodes', () => { diff --git a/packages/ruleset/test/utils/constants.test.js b/packages/ruleset/test/utils/constants.test.js index 11e6d3b59..cc99dcf9c 100644 --- a/packages/ruleset/test/utils/constants.test.js +++ b/packages/ruleset/test/utils/constants.test.js @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache2.0 */ -const { operationMethods } = require('../../src/utils'); +import { operationMethods } from '../../src/utils'; describe('Utility function: operationMethods()', () => { it('should include relevant operation method names', async () => { diff --git a/packages/ruleset/test/utils/date-based-utils.test.js b/packages/ruleset/test/utils/date-based-utils.test.js index c648019ab..97cc6ec01 100644 --- a/packages/ruleset/test/utils/date-based-utils.test.js +++ b/packages/ruleset/test/utils/date-based-utils.test.js @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache2.0 */ -const { isDateBasedName, isDateBasedValue } = require('../../src/utils'); +import { isDateBasedName, isDateBasedValue } from '../../src/utils'; describe('Date-based utility functions', () => { describe('isDateBasedValue()', () => { diff --git a/packages/ruleset/test/utils/get-composite-schema-attribute.test.js b/packages/ruleset/test/utils/get-composite-schema-attribute.test.js index 62e30b7d5..3e6f81b6b 100644 --- a/packages/ruleset/test/utils/get-composite-schema-attribute.test.js +++ b/packages/ruleset/test/utils/get-composite-schema-attribute.test.js @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache2.0 */ -const { getCompositeSchemaAttribute } = require('../../src/utils'); +import { getCompositeSchemaAttribute } from '../../src/utils'; describe('Utility function: getCompositeSchemaAttribute()', () => { it('Boundary conditions', async () => { diff --git a/packages/ruleset/test/utils/get-resource-oriented-paths.test.js b/packages/ruleset/test/utils/get-resource-oriented-paths.test.js index ec665c5d3..398510fe3 100644 --- a/packages/ruleset/test/utils/get-resource-oriented-paths.test.js +++ b/packages/ruleset/test/utils/get-resource-oriented-paths.test.js @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache2.0 */ -const { getResourceOrientedPaths } = require('../../src/utils'); +import { getResourceOrientedPaths } from '../../src/utils'; describe('Utility function: getResourceOrientedPaths()', () => { it('should return an empty object if given a non-object', () => { diff --git a/packages/ruleset/test/utils/get-resource-specific-sibling-path.test.js b/packages/ruleset/test/utils/get-resource-specific-sibling-path.test.js index 52fe2c19f..cb30a0b49 100644 --- a/packages/ruleset/test/utils/get-resource-specific-sibling-path.test.js +++ b/packages/ruleset/test/utils/get-resource-specific-sibling-path.test.js @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache2.0 */ -const { getResourceSpecificSiblingPath } = require('../../src/utils'); +import { getResourceSpecificSiblingPath } from '../../src/utils'; describe('Utility function: getResourceSpecificSiblingPath', () => { it('should find sibling path when present', () => { diff --git a/packages/ruleset/test/utils/get-response-codes.test.js b/packages/ruleset/test/utils/get-response-codes.test.js index fc75c28ad..0c8a4a19d 100644 --- a/packages/ruleset/test/utils/get-response-codes.test.js +++ b/packages/ruleset/test/utils/get-response-codes.test.js @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache2.0 */ -const { getResponseCodes } = require('../../src/utils'); +import { getResponseCodes } from '../../src/utils'; describe('Utility function: getResponseCodes', () => { it('should return a tuple of empty arrays if responses is undefined', () => { diff --git a/packages/ruleset/test/utils/get-schema-name-at-path.test.js b/packages/ruleset/test/utils/get-schema-name-at-path.test.js index b4bb6a195..e21beeb5c 100644 --- a/packages/ruleset/test/utils/get-schema-name-at-path.test.js +++ b/packages/ruleset/test/utils/get-schema-name-at-path.test.js @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache2.0 */ -const { getSchemaNameAtPath } = require('../../src/utils'); +import { getSchemaNameAtPath } from '../../src/utils'; describe('Utility function: getSchemaNameAtPath()', () => { it('should return undefined if path is undefined', () => { diff --git a/packages/ruleset/test/utils/is-create-operation.test.js b/packages/ruleset/test/utils/is-create-operation.test.js index 9787cd392..0e4f0eea4 100644 --- a/packages/ruleset/test/utils/is-create-operation.test.js +++ b/packages/ruleset/test/utils/is-create-operation.test.js @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache2.0 */ -const { isCreateOperation } = require('../../src/utils'); +import { isCreateOperation } from '../../src/utils'; describe('Utility function: isCreateOperation', () => { it(`should return true if given operation's id starts with 'create'`, () => { diff --git a/packages/ruleset/test/utils/is-deprecated.test.js b/packages/ruleset/test/utils/is-deprecated.test.js index a1da52767..9396caaa6 100644 --- a/packages/ruleset/test/utils/is-deprecated.test.js +++ b/packages/ruleset/test/utils/is-deprecated.test.js @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache2.0 */ -const { isDeprecated } = require('../../src/utils'); +import { isDeprecated } from '../../src/utils'; describe('Utility function: isDeprecated()', () => { it('should return false if given a non-object', () => { diff --git a/packages/ruleset/test/utils/is-empty-object-schema.test.js b/packages/ruleset/test/utils/is-empty-object-schema.test.js index 7c678e191..2b2334dfc 100644 --- a/packages/ruleset/test/utils/is-empty-object-schema.test.js +++ b/packages/ruleset/test/utils/is-empty-object-schema.test.js @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache2.0 */ -const { isEmptyObjectSchema } = require('../../src/utils'); +import { isEmptyObjectSchema } from '../../src/utils'; describe('Utility function: isEmptyObjectSchema()', () => { describe('Should return false', () => { diff --git a/packages/ruleset/test/utils/is-operation-of-type.test.js b/packages/ruleset/test/utils/is-operation-of-type.test.js index 83909232b..70dff2d35 100644 --- a/packages/ruleset/test/utils/is-operation-of-type.test.js +++ b/packages/ruleset/test/utils/is-operation-of-type.test.js @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache2.0 */ -const { isOperationOfType } = require('../../src/utils'); +import { isOperationOfType } from '../../src/utils'; describe('Utility function: isOperationOfType', () => { it('should return `true` when path matches the given type', () => { diff --git a/packages/ruleset/test/utils/is-ref-sibling-schema.test.js b/packages/ruleset/test/utils/is-ref-sibling-schema.test.js index 29d6bf887..3e6aac742 100644 --- a/packages/ruleset/test/utils/is-ref-sibling-schema.test.js +++ b/packages/ruleset/test/utils/is-ref-sibling-schema.test.js @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache2.0 */ -const { isRefSiblingSchema } = require('../../src/utils'); +import { isRefSiblingSchema } from '../../src/utils'; describe('Utility function: isRefSiblingSchema()', () => { describe('Should return false', () => { diff --git a/packages/ruleset/test/utils/is-requestbody-exploded.test.js b/packages/ruleset/test/utils/is-requestbody-exploded.test.js index ce9dfddaf..330173169 100644 --- a/packages/ruleset/test/utils/is-requestbody-exploded.test.js +++ b/packages/ruleset/test/utils/is-requestbody-exploded.test.js @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache2.0 */ -const { isRequestBodyExploded } = require('../../src/utils'); +import { isRequestBodyExploded } from '../../src/utils'; describe('Utility function: isRequestBodyExploded()', () => { describe('Should return false', () => { diff --git a/packages/ruleset/test/utils/logger-factory.test.js b/packages/ruleset/test/utils/logger-factory.test.js index 97608da24..c0949bb0a 100644 --- a/packages/ruleset/test/utils/logger-factory.test.js +++ b/packages/ruleset/test/utils/logger-factory.test.js @@ -3,7 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { LoggerFactory } = require('../../src/utils'); +import { vi } from 'vitest'; +import { LoggerFactory } from '../../src/utils'; describe('LoggerFactory tests', () => { let consoleSpy; @@ -14,7 +15,7 @@ describe('LoggerFactory tests', () => { const originalError = console.error; beforeEach(() => { - consoleSpy = jest.spyOn(console, 'log').mockImplementation(() => {}); + consoleSpy = vi.spyOn(console, 'log').mockImplementation(() => {}); console.debug = console.log; console.info = console.log; console.warn = console.log; diff --git a/packages/ruleset/test/utils/merge-allof-schema-properties.test.js b/packages/ruleset/test/utils/merge-allof-schema-properties.test.js index f8443c671..a90d72a79 100644 --- a/packages/ruleset/test/utils/merge-allof-schema-properties.test.js +++ b/packages/ruleset/test/utils/merge-allof-schema-properties.test.js @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache2.0 */ -const { mergeAllOfSchemaProperties } = require('../../src/utils'); +import { mergeAllOfSchemaProperties } from '../../src/utils'; describe('Utility function: mergeAllOfSchemaProperties()', () => { it('should return original schema if no allOf', async () => { diff --git a/packages/ruleset/test/utils/mimetype-utils.test.js b/packages/ruleset/test/utils/mimetype-utils.test.js index 56f6aee08..b3d4f47d9 100644 --- a/packages/ruleset/test/utils/mimetype-utils.test.js +++ b/packages/ruleset/test/utils/mimetype-utils.test.js @@ -3,12 +3,12 @@ * SPDX-License-Identifier: Apache2.0 */ -const { +import { isJsonMimeType, isJsonPatchMimeType, isMergePatchMimeType, isFormMimeType, -} = require('../../src/utils'); +} from '../../src/utils'; describe('MimeType utility functions', () => { describe('isJsonMimeType()', () => { diff --git a/packages/ruleset/test/utils/pagination-utils.test.js b/packages/ruleset/test/utils/pagination-utils.test.js index 2680e2688..416db365b 100644 --- a/packages/ruleset/test/utils/pagination-utils.test.js +++ b/packages/ruleset/test/utils/pagination-utils.test.js @@ -3,13 +3,14 @@ * SPDX-License-Identifier: Apache2.0 */ -const { +import { vi } from 'vitest'; +import { getOffsetParamIndex, getPageTokenParamIndex, getSuccessCode, getResponseSchema, getPaginatedOperationFromPath, -} = require('../../src/utils'); +} from '../../src/utils'; describe('Pagination utility functions', () => { describe('getOffsetParamIndex()', () => { @@ -164,7 +165,7 @@ describe('Pagination utility functions', () => { }); describe('getPaginatedOperationFromPath()', () => { - const mockLogger = jest.fn(); + const mockLogger = vi.fn(); const logInfo = { logger: { debug: mockLogger }, ruleId: 'test', diff --git a/packages/ruleset/test/utils/path-has-minimally-represented-resource.test.js b/packages/ruleset/test/utils/path-has-minimally-represented-resource.test.js index 221a861a2..d6eceb252 100644 --- a/packages/ruleset/test/utils/path-has-minimally-represented-resource.test.js +++ b/packages/ruleset/test/utils/path-has-minimally-represented-resource.test.js @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache2.0 */ -const { pathHasMinimallyRepresentedResource } = require('../../src/utils'); +import { pathHasMinimallyRepresentedResource } from '../../src/utils'; describe('Utility function: pathHasMinimallyRepresentedResource()', () => { const path = '/v1/resources'; diff --git a/packages/ruleset/test/utils/path-location-utils.test.js b/packages/ruleset/test/utils/path-location-utils.test.js index bb7998f8a..37a0a46a7 100644 --- a/packages/ruleset/test/utils/path-location-utils.test.js +++ b/packages/ruleset/test/utils/path-location-utils.test.js @@ -3,14 +3,14 @@ * SPDX-License-Identifier: Apache2.0 */ -const { +import { isParamContentSchema, isParamSchema, isPrimarySchema, isRequestBodySchema, isResponseSchema, isSchemaProperty, -} = require('../../src/utils'); +} from '../../src/utils'; describe('Path Location utility functions', () => { describe('isParamContentSchema()', () => { diff --git a/packages/ruleset/test/utils/path-matches-regexp.test.js b/packages/ruleset/test/utils/path-matches-regexp.test.js index 0f3928541..a84f22b5d 100644 --- a/packages/ruleset/test/utils/path-matches-regexp.test.js +++ b/packages/ruleset/test/utils/path-matches-regexp.test.js @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache2.0 */ -const { pathMatchesRegexp } = require('../../src/utils'); +import { pathMatchesRegexp } from '../../src/utils'; describe('Test pathMatchesRegexp() function', () => { it('Positive tests', () => { diff --git a/packages/ruleset/test/utils/schema-finding-utils.test.js b/packages/ruleset/test/utils/schema-finding-utils.test.js index 3cfcecefa..4e10bccad 100644 --- a/packages/ruleset/test/utils/schema-finding-utils.test.js +++ b/packages/ruleset/test/utils/schema-finding-utils.test.js @@ -3,11 +3,12 @@ * SPDX-License-Identifier: Apache2.0 */ -const { +import { vi } from 'vitest'; +import { getSuccessResponseSchemaForOperation, getRequestBodySchemaForOperation, getCanonicalSchemaForPath, -} = require('../../src/utils'); +} from '../../src/utils'; describe('Schema finding utility functions', () => { describe('getSuccessResponseSchemaForOperation()', () => { @@ -354,7 +355,7 @@ describe('Schema finding utility functions', () => { }); describe('getCanonicalSchemaForPath()', () => { - const mockLogger = jest.fn(); + const mockLogger = vi.fn(); const logInfo = { logger: { debug: mockLogger }, ruleId: 'test', diff --git a/packages/ruleset/vitest.config.js b/packages/ruleset/vitest.config.js new file mode 100644 index 000000000..0ee51979f --- /dev/null +++ b/packages/ruleset/vitest.config.js @@ -0,0 +1,19 @@ +import { defineConfig } from 'vitest/config'; + +export default defineConfig({ + test: { + globals: true, + environment: 'node', + coverage: { + enabled: true, + reporter: ['text', 'json', 'html'], + reportsDirectory: './coverage/', + }, + }, + resolve: { + alias: { + 'nimma/legacy': '../../node_modules/@stoplight/spectral-core/node_modules/nimma/dist/legacy/cjs', + 'nimma/fallbacks': '../../node_modules/@stoplight/spectral-core/node_modules/nimma/dist/legacy/cjs/fallbacks/', + }, + } +}); \ No newline at end of file diff --git a/packages/utilities/package.json b/packages/utilities/package.json index c430e1a39..97554d485 100644 --- a/packages/utilities/package.json +++ b/packages/utilities/package.json @@ -1,10 +1,15 @@ { "name": "@ibm-cloud/openapi-ruleset-utilities", + "type": "module", "description": "Programmatic utility functions for creating Spectral-formatted OpenAPI Rulesets", "version": "1.9.4", "license": "Apache-2.0", "private": false, - "main": "./src/index.js", + "exports": { + ".": "./src/index.js", + "./src/collections": "./src/collections/index.js", + "./src/utils": "./src/utils/index.js" + }, "types": "./types/index.d.ts", "repository": { "type": "git", @@ -13,9 +18,8 @@ }, "scripts": { "clean": "rm -rf node_modules", - "jest": "jest", - "test": "jest test", - "test-travis": "jest --silent --runInBand --no-colors --testNamePattern='^((?!@skip-ci).)*$' test", + "test": "vitest run", + "test-travis": "vitest run --reporter=verbose --testNamePattern='^((?!@skip-ci).)*$'", "lint": "eslint --cache --quiet --ext '.js' src test", "fix": "eslint --fix --ext '.js' src test", "generate-types": "tsc", @@ -23,19 +27,11 @@ }, "devDependencies": { "@stoplight/spectral-core": "1.24.1", - "jest": "29.7.0", - "typescript": "5.9.3" + "@vitest/coverage-v8": "^4.1.8", + "typescript": "5.9.3", + "vitest": "4.1.8" }, "engines": { "node": ">=24.0.0" - }, - "jest": { - "collectCoverage": true, - "coverageDirectory": "./coverage/", - "testEnvironment": "node", - "moduleNameMapper": { - "nimma/legacy": "/../../node_modules/@stoplight/spectral-core/node_modules/nimma/dist/legacy/cjs", - "nimma/fallbacks": "/../../node_modules/@stoplight/spectral-core/node_modules/nimma/dist/legacy/cjs/fallbacks/" - } } } diff --git a/packages/utilities/src/collections/index.js b/packages/utilities/src/collections/index.js index d43b7f7d0..52f58970f 100644 --- a/packages/utilities/src/collections/index.js +++ b/packages/utilities/src/collections/index.js @@ -108,4 +108,21 @@ const collections = { ], }; -module.exports = collections; +export default collections; + +// Export individual collections as named exports for convenience +export { + operations, + requestBodySchemas, + responseSchemas, + unresolvedRequestBodySchemas, + unresolvedResponseSchemas, +}; + +// Re-export all collections from the collections object for backward compatibility +export const parameters = collections.parameters; +export const patchOperations = collections.patchOperations; +export const paths = collections.paths; +export const schemas = collections.schemas; +export const securitySchemes = collections.securitySchemes; +export const unresolvedSchemas = collections.unresolvedSchemas; diff --git a/packages/utilities/src/index.js b/packages/utilities/src/index.js index 5456386b6..1bfffeef8 100644 --- a/packages/utilities/src/index.js +++ b/packages/utilities/src/index.js @@ -8,10 +8,53 @@ * in the context of a Spectral ruleset. * @module @ibm-cloud/openapi-ruleset-utilities */ -module.exports = { - ...require('./utils'), +import utils from './utils/index.js'; +import collections from './collections/index.js'; + +// Export everything as default +export default { + ...utils, collections: { - ...require('./collections'), + ...collections, }, }; + +// Also export everything as named exports for backward compatibility +export const { + collectFromComposedSchemas, + getExamplesForSchema, + getPropertyNamesForSchema, + getSchemaType, + SchemaType, + isArraySchema, + isBinarySchema, + isBooleanSchema, + isByteSchema, + isDateSchema, + isDateTimeSchema, + isDoubleSchema, + isEnumerationSchema, + isFloatSchema, + isInt32Schema, + isInt64Schema, + isIntegerSchema, + isNumberSchema, + isObjectSchema, + isPrimitiveSchema, + isStringSchema, + schemaIsOfType, + isObject, + schemaHasConstraint, + schemaHasProperty, + schemaLooselyHasConstraint, + schemaRequiresProperty, + getNodes, + getResolvedSpec, + getUnresolvedSpec, + validateComposedSchemas, + validateNestedSchemas, + validateSubschemas, +} = utils; + +export { collections }; diff --git a/packages/utilities/src/utils/collect-from-composed-schemas.js b/packages/utilities/src/utils/collect-from-composed-schemas.js index e9196ba69..9ba8b8f7c 100644 --- a/packages/utilities/src/utils/collect-from-composed-schemas.js +++ b/packages/utilities/src/utils/collect-from-composed-schemas.js @@ -53,4 +53,4 @@ function collectFromComposedSchemas( return [...new Set(items)]; // de-duplicate } -module.exports = collectFromComposedSchemas; +export default collectFromComposedSchemas; diff --git a/packages/utilities/src/utils/get-examples-for-schema.js b/packages/utilities/src/utils/get-examples-for-schema.js index bff150005..5133fe4a3 100644 --- a/packages/utilities/src/utils/get-examples-for-schema.js +++ b/packages/utilities/src/utils/get-examples-for-schema.js @@ -6,7 +6,7 @@ /** * @private */ -const collectFromComposedSchemas = require('./collect-from-composed-schemas'); +import collectFromComposedSchemas from './collect-from-composed-schemas.js'; /** * Returns an array of examples for a simple or composite schema. For each composed schema, if @@ -26,4 +26,4 @@ function getExamplesForSchema(schema) { }); } -module.exports = getExamplesForSchema; +export default getExamplesForSchema; diff --git a/packages/utilities/src/utils/get-property-names-for-schema.js b/packages/utilities/src/utils/get-property-names-for-schema.js index 9d3d2cc2e..073fc7d4a 100644 --- a/packages/utilities/src/utils/get-property-names-for-schema.js +++ b/packages/utilities/src/utils/get-property-names-for-schema.js @@ -6,11 +6,11 @@ /** * @private */ -const isObject = require('./is-object'); +import isObject from './is-object.js'; /** * @private */ -const collectFromComposedSchemas = require('./collect-from-composed-schemas'); +import collectFromComposedSchemas from './collect-from-composed-schemas.js'; /** * Returns an array of property names for a simple or composite schema, @@ -35,4 +35,4 @@ function getPropertyNamesForSchema(schema, propertyFilter = () => true) { }); } -module.exports = getPropertyNamesForSchema; +export default getPropertyNamesForSchema; diff --git a/packages/utilities/src/utils/get-schema-type.js b/packages/utilities/src/utils/get-schema-type.js index 33bd8b092..f5df348bb 100644 --- a/packages/utilities/src/utils/get-schema-type.js +++ b/packages/utilities/src/utils/get-schema-type.js @@ -6,11 +6,11 @@ /** * @private */ -const isObject = require('./is-object'); +import isObject from './is-object.js'; /** * @private */ -const schemaHasConstraint = require('./schema-has-constraint'); +import schemaHasConstraint from './schema-has-constraint.js'; /** * An enumeration of non-mutually-exclusive schema types. @@ -367,7 +367,7 @@ function isPrimitiveSchema(schema) { ); } -module.exports = { +export default { SchemaType, getSchemaType, isArraySchema, diff --git a/packages/utilities/src/utils/index.js b/packages/utilities/src/utils/index.js index df39fd41e..c9f7c5bec 100644 --- a/packages/utilities/src/utils/index.js +++ b/packages/utilities/src/utils/index.js @@ -3,18 +3,32 @@ * SPDX-License-Identifier: Apache2.0 */ -module.exports = { - collectFromComposedSchemas: require('./collect-from-composed-schemas'), - getExamplesForSchema: require('./get-examples-for-schema'), - getPropertyNamesForSchema: require('./get-property-names-for-schema'), - ...require('./get-schema-type'), - isObject: require('./is-object'), - schemaHasConstraint: require('./schema-has-constraint'), - schemaHasProperty: require('./schema-has-property'), - schemaLooselyHasConstraint: require('./schema-loosely-has-constraint'), - schemaRequiresProperty: require('./schema-requires-property'), - ...require('./spectral-context-utils'), - validateComposedSchemas: require('./validate-composed-schemas'), - validateNestedSchemas: require('./validate-nested-schemas'), - validateSubschemas: require('./validate-subschemas'), +import collectFromComposedSchemas from './collect-from-composed-schemas.js'; +import getExamplesForSchema from './get-examples-for-schema.js'; +import getPropertyNamesForSchema from './get-property-names-for-schema.js'; +import getSchemaType from './get-schema-type.js'; +import isObject from './is-object.js'; +import schemaHasConstraint from './schema-has-constraint.js'; +import schemaHasProperty from './schema-has-property.js'; +import schemaLooselyHasConstraint from './schema-loosely-has-constraint.js'; +import schemaRequiresProperty from './schema-requires-property.js'; +import spectralContextUtils from './spectral-context-utils.js'; +import validateComposedSchemas from './validate-composed-schemas.js'; +import validateNestedSchemas from './validate-nested-schemas.js'; +import validateSubschemas from './validate-subschemas.js'; + +export default { + collectFromComposedSchemas, + getExamplesForSchema, + getPropertyNamesForSchema, + ...getSchemaType, + isObject, + schemaHasConstraint, + schemaHasProperty, + schemaLooselyHasConstraint, + schemaRequiresProperty, + ...spectralContextUtils, + validateComposedSchemas, + validateNestedSchemas, + validateSubschemas, }; diff --git a/packages/utilities/src/utils/is-object.js b/packages/utilities/src/utils/is-object.js index ad30b784f..48d32dfc0 100644 --- a/packages/utilities/src/utils/is-object.js +++ b/packages/utilities/src/utils/is-object.js @@ -12,4 +12,4 @@ function isObject(thing) { return typeof thing === 'object' && thing !== null && !Array.isArray(thing); } -module.exports = isObject; +export default isObject; diff --git a/packages/utilities/src/utils/schema-has-constraint.js b/packages/utilities/src/utils/schema-has-constraint.js index 0e2f423e9..a91846ec4 100644 --- a/packages/utilities/src/utils/schema-has-constraint.js +++ b/packages/utilities/src/utils/schema-has-constraint.js @@ -6,7 +6,7 @@ /** * @private */ -const isObject = require('./is-object'); +import isObject from './is-object.js'; /** * This function will return `true` if all possible variations of a (possibly composite) schema @@ -67,4 +67,4 @@ function schemaHasConstraint(schema, hasConstraint) { return false; } -module.exports = schemaHasConstraint; +export default schemaHasConstraint; diff --git a/packages/utilities/src/utils/schema-has-property.js b/packages/utilities/src/utils/schema-has-property.js index 7ca957aa8..96c51a789 100644 --- a/packages/utilities/src/utils/schema-has-property.js +++ b/packages/utilities/src/utils/schema-has-property.js @@ -6,11 +6,11 @@ /** * @private */ -const schemaHasConstraint = require('./schema-has-constraint'); +import schemaHasConstraint from './schema-has-constraint.js'; /** * @private */ -const isObject = require('./is-object'); +import isObject from './is-object.js'; /** * This function will return `true` if all possible variations of a (possibly composite) schema @@ -26,4 +26,4 @@ function schemaHasProperty(schema, propertyName) { ); } -module.exports = schemaHasProperty; +export default schemaHasProperty; diff --git a/packages/utilities/src/utils/schema-loosely-has-constraint.js b/packages/utilities/src/utils/schema-loosely-has-constraint.js index 2bea99cac..39e9af67d 100644 --- a/packages/utilities/src/utils/schema-loosely-has-constraint.js +++ b/packages/utilities/src/utils/schema-loosely-has-constraint.js @@ -6,7 +6,7 @@ /** * @private */ -const isObject = require('./is-object'); +import isObject from './is-object.js'; /** * This function is a looser adaptation of the `schemaHasConstraint()` function. @@ -48,4 +48,4 @@ function schemaLooselyHasConstraint(schema, hasConstraint) { return false; } -module.exports = schemaLooselyHasConstraint; +export default schemaLooselyHasConstraint; diff --git a/packages/utilities/src/utils/schema-path.js b/packages/utilities/src/utils/schema-path.js index 9756576a4..23875d8ad 100644 --- a/packages/utilities/src/utils/schema-path.js +++ b/packages/utilities/src/utils/schema-path.js @@ -3,9 +3,6 @@ * SPDX-License-Identifier: Apache2.0 */ -// Necessary to get exceptions thrown for attempts to modify frozen objects -'use strict'; - /** * @private */ @@ -50,4 +47,4 @@ class SchemaPath extends Array { } } -module.exports = SchemaPath; +export default SchemaPath; diff --git a/packages/utilities/src/utils/schema-requires-property.js b/packages/utilities/src/utils/schema-requires-property.js index 22bd4f3b1..47b36a649 100644 --- a/packages/utilities/src/utils/schema-requires-property.js +++ b/packages/utilities/src/utils/schema-requires-property.js @@ -6,11 +6,11 @@ /** * @private */ -const schemaHasConstraint = require('./schema-has-constraint'); +import schemaHasConstraint from './schema-has-constraint.js'; /** * @private */ -const schemaHasProperty = require('./schema-has-property'); +import schemaHasProperty from './schema-has-property.js'; /** * This function will return `true` if all possible variations of a (possibly composite) schema @@ -29,4 +29,4 @@ function schemaRequiresProperty(schema, propertyName) { ); } -module.exports = schemaRequiresProperty; +export default schemaRequiresProperty; diff --git a/packages/utilities/src/utils/spectral-context-utils.js b/packages/utilities/src/utils/spectral-context-utils.js index 89be8297a..0e455526d 100644 --- a/packages/utilities/src/utils/spectral-context-utils.js +++ b/packages/utilities/src/utils/spectral-context-utils.js @@ -33,7 +33,7 @@ function getNodes(context) { return context.documentInventory.graph.nodes; } -module.exports = { +export default { getNodes, getResolvedSpec, getUnresolvedSpec, diff --git a/packages/utilities/src/utils/validate-composed-schemas.js b/packages/utilities/src/utils/validate-composed-schemas.js index 10aaa3cbe..2f72d183d 100644 --- a/packages/utilities/src/utils/validate-composed-schemas.js +++ b/packages/utilities/src/utils/validate-composed-schemas.js @@ -6,7 +6,7 @@ /** * @private */ -const SchemaPath = require('./schema-path'); +import SchemaPath from './schema-path.js'; /** * Performs validation on a schema and all of its composed schemas. @@ -92,4 +92,4 @@ function validateComposedSchemas( return errors; } -module.exports = validateComposedSchemas; +export default validateComposedSchemas; diff --git a/packages/utilities/src/utils/validate-nested-schemas.js b/packages/utilities/src/utils/validate-nested-schemas.js index 1d738a73d..4f7fba9c5 100644 --- a/packages/utilities/src/utils/validate-nested-schemas.js +++ b/packages/utilities/src/utils/validate-nested-schemas.js @@ -6,11 +6,11 @@ /** * @private */ -const isObject = require('./is-object'); +import isObject from './is-object.js'; /** * @private */ -const SchemaPath = require('./schema-path'); +import SchemaPath from './schema-path.js'; /** * Performs validation on a schema and all of its nested schemas. @@ -172,4 +172,4 @@ function validateNestedSchemas( return errors; } -module.exports = validateNestedSchemas; +export default validateNestedSchemas; diff --git a/packages/utilities/src/utils/validate-subschemas.js b/packages/utilities/src/utils/validate-subschemas.js index 4cfd172e4..4e895600e 100644 --- a/packages/utilities/src/utils/validate-subschemas.js +++ b/packages/utilities/src/utils/validate-subschemas.js @@ -6,15 +6,15 @@ /** * @private */ -const SchemaPath = require('./schema-path'); +import SchemaPath from './schema-path.js'; /** * @private */ -const validateComposedSchemas = require('./validate-composed-schemas'); +import validateComposedSchemas from './validate-composed-schemas.js'; /** * @private */ -const validateNestedSchemas = require('./validate-nested-schemas'); +import validateNestedSchemas from './validate-nested-schemas.js'; /** * Performs validation on a schema and all of its subschemas. @@ -84,4 +84,4 @@ function validateSubschemas( ); } -module.exports = validateSubschemas; +export default validateSubschemas; diff --git a/packages/utilities/test/collect-from-composed-schemas.test.js b/packages/utilities/test/collect-from-composed-schemas.test.js index 41ca24a25..437f9cad6 100644 --- a/packages/utilities/test/collect-from-composed-schemas.test.js +++ b/packages/utilities/test/collect-from-composed-schemas.test.js @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache2.0 */ -const { collectFromComposedSchemas } = require('../src'); +import { collectFromComposedSchemas } from '../src'; describe('Utility function: collectFromComposedSchemas()', () => { it('should return `[]` for `undefined` or `null`', async () => { diff --git a/packages/utilities/test/collections.test.js b/packages/utilities/test/collections.test.js index 9aab742d0..ebf0bff2f 100644 --- a/packages/utilities/test/collections.test.js +++ b/packages/utilities/test/collections.test.js @@ -3,8 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { collections } = require('../src'); -const testRulePaths = require('./utils/test-rule-paths'); +import { collections } from '../src'; +import testRulePaths from './utils/test-rule-paths'; describe('Collections', () => { describe('operations', () => { diff --git a/packages/utilities/test/get-examples-for-schema.test.js b/packages/utilities/test/get-examples-for-schema.test.js index 6b60988f9..4ce877732 100644 --- a/packages/utilities/test/get-examples-for-schema.test.js +++ b/packages/utilities/test/get-examples-for-schema.test.js @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache2.0 */ -const { getExamplesForSchema } = require('../src'); +import { getExamplesForSchema } from '../src'; describe('Utility function: getExamplesForSchema()', () => { it('should return `[]` for `undefined`', async () => { diff --git a/packages/utilities/test/get-property-names-for-schema.test.js b/packages/utilities/test/get-property-names-for-schema.test.js index 105deb1dc..4c5186a2f 100644 --- a/packages/utilities/test/get-property-names-for-schema.test.js +++ b/packages/utilities/test/get-property-names-for-schema.test.js @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache2.0 */ -const { getPropertyNamesForSchema } = require('../src'); +import { getPropertyNamesForSchema } from '../src'; describe('Utility function: getPropertyNamesForSchema()', () => { it('should return `[]` for `undefined`', async () => { diff --git a/packages/utilities/test/get-schema-type.test.js b/packages/utilities/test/get-schema-type.test.js index be8936144..d27f581ce 100644 --- a/packages/utilities/test/get-schema-type.test.js +++ b/packages/utilities/test/get-schema-type.test.js @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache2.0 */ -const { getSchemaType, SchemaType } = require('../src'); +import { getSchemaType, SchemaType } from '../src'; /* * Most of the behavior for this utility is better tested in its more specific dependencies, diff --git a/packages/utilities/test/is-array-schema.test.js b/packages/utilities/test/is-array-schema.test.js index 7d417f63e..919a43548 100644 --- a/packages/utilities/test/is-array-schema.test.js +++ b/packages/utilities/test/is-array-schema.test.js @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache2.0 */ -const { isArraySchema } = require('../src'); +import { isArraySchema } from '../src'; describe('Utility function: isArraySchema()', () => { it('should return `false` for `undefined`', async () => { diff --git a/packages/utilities/test/is-binary-schema.test.js b/packages/utilities/test/is-binary-schema.test.js index b45594bec..045319005 100644 --- a/packages/utilities/test/is-binary-schema.test.js +++ b/packages/utilities/test/is-binary-schema.test.js @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache2.0 */ -const { isBinarySchema } = require('../src'); +import { isBinarySchema } from '../src'; describe('Utility function: isBinarySchema()', () => { it('should return `false` for `undefined`', async () => { diff --git a/packages/utilities/test/is-boolean-schema.test.js b/packages/utilities/test/is-boolean-schema.test.js index 6b4248f40..ef854fe1a 100644 --- a/packages/utilities/test/is-boolean-schema.test.js +++ b/packages/utilities/test/is-boolean-schema.test.js @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache2.0 */ -const { isBooleanSchema } = require('../src'); +import { isBooleanSchema } from '../src'; describe('Utility function: isBooleanSchema()', () => { it('should return `false` for `undefined`', async () => { diff --git a/packages/utilities/test/is-byte-schema.test.js b/packages/utilities/test/is-byte-schema.test.js index fe0200dd7..882e12b5e 100644 --- a/packages/utilities/test/is-byte-schema.test.js +++ b/packages/utilities/test/is-byte-schema.test.js @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache2.0 */ -const { isByteSchema } = require('../src'); +import { isByteSchema } from '../src'; describe('Utility function: isByteSchema()', () => { it('should return `false` for `undefined`', async () => { diff --git a/packages/utilities/test/is-date-schema.test.js b/packages/utilities/test/is-date-schema.test.js index 7ed880eba..9208c0f48 100644 --- a/packages/utilities/test/is-date-schema.test.js +++ b/packages/utilities/test/is-date-schema.test.js @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache2.0 */ -const { isDateSchema } = require('../src'); +import { isDateSchema } from '../src'; describe('Utility function: isDateSchema()', () => { it('should return `false` for `undefined`', async () => { diff --git a/packages/utilities/test/is-date-time-schema.test.js b/packages/utilities/test/is-date-time-schema.test.js index 1f4c4ffda..1afc7dee1 100644 --- a/packages/utilities/test/is-date-time-schema.test.js +++ b/packages/utilities/test/is-date-time-schema.test.js @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache2.0 */ -const { isDateTimeSchema } = require('../src'); +import { isDateTimeSchema } from '../src'; describe('Utility function: isDateTimeSchema()', () => { it('should return `false` for `undefined`', async () => { diff --git a/packages/utilities/test/is-double-schema.test.js b/packages/utilities/test/is-double-schema.test.js index 3ba5e2171..2ab249b7b 100644 --- a/packages/utilities/test/is-double-schema.test.js +++ b/packages/utilities/test/is-double-schema.test.js @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache2.0 */ -const { isDoubleSchema } = require('../src'); +import { isDoubleSchema } from '../src'; describe('Utility function: isDoubleSchema()', () => { it('should return `false` for `undefined`', async () => { diff --git a/packages/utilities/test/is-enumeration-schema.test.js b/packages/utilities/test/is-enumeration-schema.test.js index 05ba1e86f..91252443d 100644 --- a/packages/utilities/test/is-enumeration-schema.test.js +++ b/packages/utilities/test/is-enumeration-schema.test.js @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache2.0 */ -const { isEnumerationSchema } = require('../src'); +import { isEnumerationSchema } from '../src'; describe('Utility function: isEnumerationSchema()', () => { it('should return `false` for `undefined`', async () => { diff --git a/packages/utilities/test/is-float-schema.test.js b/packages/utilities/test/is-float-schema.test.js index e7af7ba53..cf0438942 100644 --- a/packages/utilities/test/is-float-schema.test.js +++ b/packages/utilities/test/is-float-schema.test.js @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache2.0 */ -const { isFloatSchema } = require('../src'); +import { isFloatSchema } from '../src'; describe('Utility function: isFloatSchema()', () => { it('should return `false` for `undefined`', async () => { diff --git a/packages/utilities/test/is-int32-schema.test.js b/packages/utilities/test/is-int32-schema.test.js index c8efe2760..71b43d60c 100644 --- a/packages/utilities/test/is-int32-schema.test.js +++ b/packages/utilities/test/is-int32-schema.test.js @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache2.0 */ -const { isInt32Schema } = require('../src'); +import { isInt32Schema } from '../src'; describe('Utility function: isInt32Schema()', () => { it('should return `false` for `undefined`', async () => { diff --git a/packages/utilities/test/is-int64-schema.test.js b/packages/utilities/test/is-int64-schema.test.js index 8ccffe57e..75853b16c 100644 --- a/packages/utilities/test/is-int64-schema.test.js +++ b/packages/utilities/test/is-int64-schema.test.js @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache2.0 */ -const { isInt64Schema } = require('../src'); +import { isInt64Schema } from '../src'; describe('Utility function: isInt64Schema()', () => { it('should return `false` for `undefined`', async () => { diff --git a/packages/utilities/test/is-integer-schema.test.js b/packages/utilities/test/is-integer-schema.test.js index c683af81a..7c7362f89 100644 --- a/packages/utilities/test/is-integer-schema.test.js +++ b/packages/utilities/test/is-integer-schema.test.js @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache2.0 */ -const { isIntegerSchema } = require('../src'); +import { isIntegerSchema } from '../src'; describe('Utility function: isIntegerSchema()', () => { it('should return `false` for `undefined`', async () => { diff --git a/packages/utilities/test/is-number-schema.test.js b/packages/utilities/test/is-number-schema.test.js index 659d510b6..f0f9071e0 100644 --- a/packages/utilities/test/is-number-schema.test.js +++ b/packages/utilities/test/is-number-schema.test.js @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache2.0 */ -const { isNumberSchema } = require('../src'); +import { isNumberSchema } from '../src'; describe('Utility function: isNumberSchema()', () => { it('should return `false` for `undefined`', async () => { diff --git a/packages/utilities/test/is-object-schema.test.js b/packages/utilities/test/is-object-schema.test.js index a7524fcf7..ff889ca6a 100644 --- a/packages/utilities/test/is-object-schema.test.js +++ b/packages/utilities/test/is-object-schema.test.js @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache2.0 */ -const { isObjectSchema } = require('../src'); +import { isObjectSchema } from '../src'; describe('Utility function: isObjectSchema()', () => { it('should return `false` for `undefined`', async () => { diff --git a/packages/utilities/test/is-object.test.js b/packages/utilities/test/is-object.test.js index cf65080ec..a49f32a19 100644 --- a/packages/utilities/test/is-object.test.js +++ b/packages/utilities/test/is-object.test.js @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache2.0 */ -const { isObject } = require('../src'); +import { isObject } from '../src'; describe('Utility function: isObject()', () => { it('should return `false` for `undefined`', async () => { diff --git a/packages/utilities/test/is-primitive-schema.test.js b/packages/utilities/test/is-primitive-schema.test.js index 0a8067125..7db719117 100644 --- a/packages/utilities/test/is-primitive-schema.test.js +++ b/packages/utilities/test/is-primitive-schema.test.js @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache2.0 */ -const { isPrimitiveSchema } = require('../src'); +import { isPrimitiveSchema } from '../src'; describe('Utility function: isPrimitiveSchema()', () => { it('should return `false` for `undefined`', async () => { diff --git a/packages/utilities/test/is-string-schema.test.js b/packages/utilities/test/is-string-schema.test.js index 27064e342..30637c1ef 100644 --- a/packages/utilities/test/is-string-schema.test.js +++ b/packages/utilities/test/is-string-schema.test.js @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache2.0 */ -const { isStringSchema } = require('../src'); +import { isStringSchema } from '../src'; describe('Utility function: isStringSchema()', () => { it('should return `false` for `undefined`', async () => { diff --git a/packages/utilities/test/schema-has-constraint.test.js b/packages/utilities/test/schema-has-constraint.test.js index 4d924278a..c740e25fb 100644 --- a/packages/utilities/test/schema-has-constraint.test.js +++ b/packages/utilities/test/schema-has-constraint.test.js @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache2.0 */ -const { schemaHasConstraint } = require('../src'); +import { schemaHasConstraint } from '../src'; const fredIsNull = s => s.fred === null; diff --git a/packages/utilities/test/schema-has-property.test.js b/packages/utilities/test/schema-has-property.test.js index 911374194..8fd09cd34 100644 --- a/packages/utilities/test/schema-has-property.test.js +++ b/packages/utilities/test/schema-has-property.test.js @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache2.0 */ -const { schemaHasProperty } = require('../src'); +import { schemaHasProperty } from '../src'; describe('Utility function: schemaHasProperty()', () => { it('should return `false` for `undefined`', async () => { diff --git a/packages/utilities/test/schema-is-of-type.test.js b/packages/utilities/test/schema-is-of-type.test.js index e0037f3c5..d8f748780 100644 --- a/packages/utilities/test/schema-is-of-type.test.js +++ b/packages/utilities/test/schema-is-of-type.test.js @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache2.0 */ -const { schemaIsOfType } = require('../src'); +import { schemaIsOfType } from '../src'; describe('Utility function: schemaIsOfType()', () => { describe('Should return true', () => { diff --git a/packages/utilities/test/schema-loosely-has-constraint.test.js b/packages/utilities/test/schema-loosely-has-constraint.test.js index 103242c90..49a4b2c20 100644 --- a/packages/utilities/test/schema-loosely-has-constraint.test.js +++ b/packages/utilities/test/schema-loosely-has-constraint.test.js @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache2.0 */ -const { schemaLooselyHasConstraint } = require('../src'); +import { schemaLooselyHasConstraint } from '../src'; const fredIsNull = s => s.fred === null; diff --git a/packages/utilities/test/schema-path.test.js b/packages/utilities/test/schema-path.test.js index ec6ee0714..19485f18a 100644 --- a/packages/utilities/test/schema-path.test.js +++ b/packages/utilities/test/schema-path.test.js @@ -3,10 +3,7 @@ * SPDX-License-Identifier: Apache2.0 */ -// Necessary to get exceptions thrown for attempts to modify frozen objects -'use strict'; - -const SchemaPath = require('../src/utils/schema-path'); +import SchemaPath from '../src/utils/schema-path'; describe('Utility class: SchemaPath', () => { describe('physical path is preserved', () => { diff --git a/packages/utilities/test/schema-requires-property.test.js b/packages/utilities/test/schema-requires-property.test.js index 0b8f36b32..3e1e5dd83 100644 --- a/packages/utilities/test/schema-requires-property.test.js +++ b/packages/utilities/test/schema-requires-property.test.js @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache2.0 */ -const { schemaRequiresProperty } = require('../src'); +import { schemaRequiresProperty } from '../src'; describe('Utility function: schemaRequiresProperty()', () => { it('should return `false` for `undefined`', async () => { diff --git a/packages/utilities/test/spectral-context-utils.test.js b/packages/utilities/test/spectral-context-utils.test.js index d4b89c80d..6c74675e7 100644 --- a/packages/utilities/test/spectral-context-utils.test.js +++ b/packages/utilities/test/spectral-context-utils.test.js @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache2.0 */ -const { getNodes, getResolvedSpec, getUnresolvedSpec } = require('../src'); +import { getNodes, getResolvedSpec, getUnresolvedSpec } from '../src'; describe('Utility functions: Spectral Context Utils', () => { const mockSpectralContextObject = { diff --git a/packages/utilities/test/utils/all-schemas-document.js b/packages/utilities/test/utils/all-schemas-document.js index bf1b353e3..4a89d074d 100644 --- a/packages/utilities/test/utils/all-schemas-document.js +++ b/packages/utilities/test/utils/all-schemas-document.js @@ -4,62 +4,60 @@ */ // NOTE: Duplicated from ruleset package. Need to revisit -module.exports = { - openapi: '3.0.2', - info: { - title: 'Subschema examples', - description: - 'A collection of schemas with various kinds of subschemas for testing.', - version: '0.0.1', - contact: { - email: 'example@example.com', - }, +const openapi = '3.0.2'; +const info = { + title: 'Subschema examples', + description: + 'A collection of schemas with various kinds of subschemas for testing.', + version: '0.0.1', + contact: { + email: 'example@example.com', + }, +}; +const tags = [ + { + name: 'Index', + }, +]; +const servers = [ + { + url: '/api/v3', }, - tags: [ - { - name: 'Index', - }, - ], - servers: [ - { - url: '/api/v3', - }, - ], - paths: { - '/schema': { - get: { - tags: ['Index'], - summary: 'Get the index', - description: 'Get the index.', - operationId: 'get_index', - responses: { - 200: { - description: "Here's the index.", - content: { - 'application/json': { - schema: { - $ref: '#/components/schemas/Index', - }, +]; +const paths = { + '/schema': { + get: { + tags: ['Index'], + summary: 'Get the index', + description: 'Get the index.', + operationId: 'get_index', + responses: { + 200: { + description: "Here's the index.", + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/Index', }, }, }, }, }, }, - '/every_flavor': { - get: { - tags: ['Index'], - summary: 'Get every flavor', - description: 'Get every flavor.', - operationId: 'get_every_flavor', - responses: { - 200: { - description: "Here's every flavor.", - content: { - 'application/json': { - schema: { - $ref: '#/components/schemas/EveryFlavor', - }, + }, + '/every_flavor': { + get: { + tags: ['Index'], + summary: 'Get every flavor', + description: 'Get every flavor.', + operationId: 'get_every_flavor', + responses: { + 200: { + description: "Here's every flavor.", + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/EveryFlavor', }, }, }, @@ -67,150 +65,159 @@ module.exports = { }, }, }, - components: { - schemas: { - Index: { - type: 'object', - properties: { - schema_with_property_schema: { - $ref: '#/components/schemas/SchemaWithPropertySchema', - }, - schema_with_additional_properties_schema: { - $ref: '#/components/schemas/SchemaWithAdditionalPropertiesSchema', - }, - schema_with_items_schema: { - $ref: '#/components/schemas/SchemaWithItemsSchema', - }, - schema_with_all_of_schema: { - $ref: '#/components/schemas/SchemaWithAllOfSchema', - }, - schema_with_one_of_schema: { - $ref: '#/components/schemas/SchemaWithOneOfSchema', - }, - schema_with_any_of_schema: { - $ref: '#/components/schemas/SchemaWithAnyOfSchema', - }, - schema_with_not_schema: { - $ref: '#/components/schemas/SchemaWithNotSchema', - }, +}; +const components = { + schemas: { + Index: { + type: 'object', + properties: { + schema_with_property_schema: { + $ref: '#/components/schemas/SchemaWithPropertySchema', }, - }, - EveryFlavor: { - properties: { - property_schema: { - $ref: '#/components/schemas/SchemaWithPropertySchema', - }, + schema_with_additional_properties_schema: { + $ref: '#/components/schemas/SchemaWithAdditionalPropertiesSchema', }, - additionalProperties: { - $ref: '#/components/schemas/AdditionalPropertiesSchema', + schema_with_items_schema: { + $ref: '#/components/schemas/SchemaWithItemsSchema', }, - items: { - $ref: '#/components/schemas/ItemsSchema', + schema_with_all_of_schema: { + $ref: '#/components/schemas/SchemaWithAllOfSchema', }, - allOf: [ - { - $ref: '#/components/schemas/AllOfSchema', - }, - ], - oneOf: [ - { - $ref: '#/components/schemas/OneOfSchema', - }, - ], - anyOf: [ - { - $ref: '#/components/schemas/AnyOfSchema', - }, - ], - not: { - $ref: '#/components/schemas/NotSchema', + schema_with_one_of_schema: { + $ref: '#/components/schemas/SchemaWithOneOfSchema', }, - }, - SchemaWithPropertySchema: { - type: 'object', - properties: { - property_schema: { - $ref: '#/components/schemas/PropertySchema', - }, + schema_with_any_of_schema: { + $ref: '#/components/schemas/SchemaWithAnyOfSchema', }, - }, - PropertySchema: { - type: 'string', - description: - 'This schema is reachable from `EveryFlavor` and `SchemaWithPropertySchema`.', - }, - SchemaWithAdditionalPropertiesSchema: { - type: 'object', - additionalProperties: { - $ref: '#/components/schemas/AdditionalPropertiesSchema', + schema_with_not_schema: { + $ref: '#/components/schemas/SchemaWithNotSchema', }, }, - AdditionalPropertiesSchema: { - type: 'string', - description: - 'This schema is reachable from `EveryFlavor` and `SchemaWithAdditionalPropertiesSchema`.', - }, - SchemaWithItemsSchema: { - type: 'array', - items: { - $ref: '#/components/schemas/ItemsSchema', + }, + EveryFlavor: { + properties: { + property_schema: { + $ref: '#/components/schemas/SchemaWithPropertySchema', }, }, - ItemsSchema: { - type: 'string', - description: - 'This schema is reachable from `EveryFlavor` and `SchemaWithItemsSchema`.', - }, - SchemaWithAllOfSchema: { - type: 'string', - allOf: [ - { - $ref: '#/components/schemas/AllOfSchema', - }, - ], + additionalProperties: { + $ref: '#/components/schemas/AdditionalPropertiesSchema', }, - AllOfSchema: { - type: 'string', - description: - 'This schema is reachable from `EveryFlavor` and `SchemaWithAllOfSchema`.', + items: { + $ref: '#/components/schemas/ItemsSchema', }, - SchemaWithOneOfSchema: { - type: 'string', - oneOf: [ - { - $ref: '#/components/schemas/OneOfSchema', - }, - ], + allOf: [ + { + $ref: '#/components/schemas/AllOfSchema', + }, + ], + oneOf: [ + { + $ref: '#/components/schemas/OneOfSchema', + }, + ], + anyOf: [ + { + $ref: '#/components/schemas/AnyOfSchema', + }, + ], + not: { + $ref: '#/components/schemas/NotSchema', }, - OneOfSchema: { - type: 'string', - description: - 'This schema is reachable from `EveryFlavor` and `SchemaWithOneOfSchema`.', + }, + SchemaWithPropertySchema: { + type: 'object', + properties: { + property_schema: { + $ref: '#/components/schemas/PropertySchema', + }, }, - SchemaWithAnyOfSchema: { - type: 'string', - anyOf: [ - { - $ref: '#/components/schemas/AnyOfSchema', - }, - ], + }, + PropertySchema: { + type: 'string', + description: + 'This schema is reachable from `EveryFlavor` and `SchemaWithPropertySchema`.', + }, + SchemaWithAdditionalPropertiesSchema: { + type: 'object', + additionalProperties: { + $ref: '#/components/schemas/AdditionalPropertiesSchema', }, - AnyOfSchema: { - type: 'string', - description: - 'This schema is reachable from `EveryFlavor` and `SchemaWithAnyOfSchema`.', + }, + AdditionalPropertiesSchema: { + type: 'string', + description: + 'This schema is reachable from `EveryFlavor` and `SchemaWithAdditionalPropertiesSchema`.', + }, + SchemaWithItemsSchema: { + type: 'array', + items: { + $ref: '#/components/schemas/ItemsSchema', }, - SchemaWithNotSchema: { - type: 'string', - not: { - $ref: '#/components/schemas/NotSchema', + }, + ItemsSchema: { + type: 'string', + description: + 'This schema is reachable from `EveryFlavor` and `SchemaWithItemsSchema`.', + }, + SchemaWithAllOfSchema: { + type: 'string', + allOf: [ + { + $ref: '#/components/schemas/AllOfSchema', }, - }, - NotSchema: { - type: 'string', - description: - 'This schema is reachable from `EveryFlavor` and `SchemaWithNotSchema`.', + ], + }, + AllOfSchema: { + type: 'string', + description: + 'This schema is reachable from `EveryFlavor` and `SchemaWithAllOfSchema`.', + }, + SchemaWithOneOfSchema: { + type: 'string', + oneOf: [ + { + $ref: '#/components/schemas/OneOfSchema', + }, + ], + }, + OneOfSchema: { + type: 'string', + description: + 'This schema is reachable from `EveryFlavor` and `SchemaWithOneOfSchema`.', + }, + SchemaWithAnyOfSchema: { + type: 'string', + anyOf: [ + { + $ref: '#/components/schemas/AnyOfSchema', + }, + ], + }, + AnyOfSchema: { + type: 'string', + description: + 'This schema is reachable from `EveryFlavor` and `SchemaWithAnyOfSchema`.', + }, + SchemaWithNotSchema: { + type: 'string', + not: { + $ref: '#/components/schemas/NotSchema', }, }, + NotSchema: { + type: 'string', + description: + 'This schema is reachable from `EveryFlavor` and `SchemaWithNotSchema`.', + }, }, }; + +export default { + openapi, + info, + tags, + servers, + paths, + components, +}; diff --git a/packages/utilities/test/utils/index.js b/packages/utilities/test/utils/index.js index 979d1e422..6c88ebcaa 100644 --- a/packages/utilities/test/utils/index.js +++ b/packages/utilities/test/utils/index.js @@ -4,10 +4,7 @@ */ // NOTE: Duplicated from ruleset package. Need to revisit -const allSchemasDocument = require('./all-schemas-document'); -const testRule = require('./test-rule'); +import allSchemasDocument from './all-schemas-document'; +import testRule from './test-rule'; -module.exports = { - allSchemasDocument, - testRule, -}; +export { allSchemasDocument, testRule }; diff --git a/packages/utilities/test/utils/test-rule-paths.js b/packages/utilities/test/utils/test-rule-paths.js index 8e07383c8..5f79a0271 100644 --- a/packages/utilities/test/utils/test-rule-paths.js +++ b/packages/utilities/test/utils/test-rule-paths.js @@ -3,9 +3,9 @@ * SPDX-License-Identifier: Apache2.0 */ -const testRule = require('./test-rule'); +import testRule from './test-rule'; -module.exports = async (given, doc) => { +export default async (given, doc) => { const visitedPaths = []; const rule = { given, diff --git a/packages/utilities/test/utils/test-rule.js b/packages/utilities/test/utils/test-rule.js index 8b32867bb..49db64187 100644 --- a/packages/utilities/test/utils/test-rule.js +++ b/packages/utilities/test/utils/test-rule.js @@ -4,9 +4,10 @@ */ // NOTE: Duplicated from ruleset package. Need to revisit -const { Spectral } = require('@stoplight/spectral-core'); +import SpectralCore from '@stoplight/spectral-core'; +const { Spectral } = SpectralCore; -module.exports = async (rule, doc) => { +export default async (rule, doc) => { const spectral = new Spectral(); spectral.setRuleset({ diff --git a/packages/utilities/test/validate-composed-schemas.test.js b/packages/utilities/test/validate-composed-schemas.test.js index 6c71917bb..64b5ea692 100644 --- a/packages/utilities/test/validate-composed-schemas.test.js +++ b/packages/utilities/test/validate-composed-schemas.test.js @@ -3,8 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { validateComposedSchemas } = require('../src'); -const SchemaPath = require('../src/utils/schema-path'); +import { validateComposedSchemas } from '../src'; +import SchemaPath from '../src/utils/schema-path'; describe('Utility function: validateComposedSchemas()', () => { it('should validate a simple schema by default', async () => { diff --git a/packages/utilities/test/validate-nested-schemas.test.js b/packages/utilities/test/validate-nested-schemas.test.js index 61c423040..b227eda89 100644 --- a/packages/utilities/test/validate-nested-schemas.test.js +++ b/packages/utilities/test/validate-nested-schemas.test.js @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache2.0 */ -const { validateNestedSchemas } = require('../src'); +import { validateNestedSchemas } from '../src'; describe('Utility function: validateNestedSchemas()', () => { it('should validate a simple schema by default', async () => { diff --git a/packages/utilities/test/validate-subschemas.test.js b/packages/utilities/test/validate-subschemas.test.js index 42d9845c7..1f65c3b1b 100644 --- a/packages/utilities/test/validate-subschemas.test.js +++ b/packages/utilities/test/validate-subschemas.test.js @@ -3,9 +3,9 @@ * SPDX-License-Identifier: Apache2.0 */ -const { allSchemasDocument, testRule } = require('./utils'); -const { validateSubschemas } = require('../src'); -const { schemas } = require('../src/collections'); +import { allSchemasDocument, testRule } from './utils'; +import { validateSubschemas } from '../src'; +import { schemas } from '../src/collections'; describe('Utility: validateSubschemas', () => { const visitedPaths = []; diff --git a/packages/utilities/types/collections/index.d.ts b/packages/utilities/types/collections/index.d.ts index ae6041556..16f62a4de 100644 --- a/packages/utilities/types/collections/index.d.ts +++ b/packages/utilities/types/collections/index.d.ts @@ -1,3 +1,23 @@ +export default collections; +export const parameters: string[]; +export const patchOperations: string[]; +export const paths: string[]; +export const schemas: string[]; +export const securitySchemes: string[]; +export const unresolvedSchemas: string[]; +declare namespace collections { + export { operations }; + export let parameters: string[]; + export let patchOperations: string[]; + export let paths: string[]; + export { requestBodySchemas }; + export { responseSchemas }; + export let schemas: string[]; + export let securitySchemes: string[]; + export { unresolvedRequestBodySchemas }; + export { unresolvedResponseSchemas }; + export let unresolvedSchemas: string[]; +} /** * Copyright 2017 - 2024 IBM Corporation. * SPDX-License-Identifier: Apache2.0 @@ -7,10 +27,4 @@ export const requestBodySchemas: string[]; export const responseSchemas: string[]; export const unresolvedRequestBodySchemas: string[]; export const unresolvedResponseSchemas: string[]; -export declare let parameters: string[]; -export declare let patchOperations: string[]; -export declare let paths: string[]; -export declare let schemas: string[]; -export declare let securitySchemes: string[]; -export declare let unresolvedSchemas: string[]; //# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/utilities/types/collections/index.d.ts.map b/packages/utilities/types/collections/index.d.ts.map index d164dcbef..25f402fb3 100644 --- a/packages/utilities/types/collections/index.d.ts.map +++ b/packages/utilities/types/collections/index.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/collections/index.js"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,kCAAgF;AAEhF,0CAA+E;AAE/E,uCAA6E;AAE7E,oDAGE;AAEF,iDAGE"} \ No newline at end of file +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/collections/index.js"],"names":[],"mappings":";AA0HA,kCAAiD;AACjD,uCAA2D;AAC3D,6BAAuC;AACvC,+BAA2C;AAC3C,uCAA2D;AAC3D,yCAA+D;;;;;;;;;;;;;;AA/H/D;;;GAGG;AAGH,kCAAgF;AAEhF,0CAA+E;AAE/E,uCAA6E;AAE7E,oDAGE;AAEF,iDAGE"} \ No newline at end of file diff --git a/packages/utilities/types/index.d.ts b/packages/utilities/types/index.d.ts index 8de50e261..022358611 100644 --- a/packages/utilities/types/index.d.ts +++ b/packages/utilities/types/index.d.ts @@ -1,4 +1,4 @@ -declare const _exports: { +declare const _default: { collections: { operations: string[]; parameters: string[]; @@ -12,17 +12,17 @@ declare const _exports: { unresolvedResponseSchemas: string[]; unresolvedSchemas: string[]; }; - validateComposedSchemas: typeof import("./utils/validate-composed-schemas"); - validateNestedSchemas: typeof import("./utils/validate-nested-schemas"); - validateSubschemas: typeof import("./utils/validate-subschemas"); - getNodes: typeof import("./utils/spectral-context-utils").getNodes; - getResolvedSpec: typeof import("./utils/spectral-context-utils").getResolvedSpec; - getUnresolvedSpec: typeof import("./utils/spectral-context-utils").getUnresolvedSpec; - isObject: typeof import("./utils/is-object"); - schemaHasConstraint: typeof import("./utils/schema-has-constraint"); - schemaHasProperty: typeof import("./utils/schema-has-property"); - schemaLooselyHasConstraint: typeof import("./utils/schema-loosely-has-constraint"); - schemaRequiresProperty: typeof import("./utils/schema-requires-property"); + validateComposedSchemas: typeof import("./utils/validate-composed-schemas.js").default; + validateNestedSchemas: typeof import("./utils/validate-nested-schemas.js").default; + validateSubschemas: typeof import("./utils/validate-subschemas.js").default; + getNodes: (context: object) => object; + getResolvedSpec: (context: object) => object; + getUnresolvedSpec: (context: object) => object; + isObject: typeof import("./utils/is-object.js").default; + schemaHasConstraint: typeof import("./utils/schema-has-constraint.js").default; + schemaHasProperty: typeof import("./utils/schema-has-property.js").default; + schemaLooselyHasConstraint: typeof import("./utils/schema-loosely-has-constraint.js").default; + schemaRequiresProperty: typeof import("./utils/schema-requires-property.js").default; SchemaType: { ARRAY: symbol; BINARY: symbol; @@ -41,27 +41,79 @@ declare const _exports: { STRING: symbol; UNKNOWN: symbol; }; - getSchemaType: typeof import("./utils/get-schema-type").getSchemaType; - isArraySchema: typeof import("./utils/get-schema-type").isArraySchema; - isBinarySchema: typeof import("./utils/get-schema-type").isBinarySchema; - isBooleanSchema: typeof import("./utils/get-schema-type").isBooleanSchema; - isByteSchema: typeof import("./utils/get-schema-type").isByteSchema; - isDateSchema: typeof import("./utils/get-schema-type").isDateSchema; - isDateTimeSchema: typeof import("./utils/get-schema-type").isDateTimeSchema; - isDoubleSchema: typeof import("./utils/get-schema-type").isDoubleSchema; - isEnumerationSchema: typeof import("./utils/get-schema-type").isEnumerationSchema; - isFloatSchema: typeof import("./utils/get-schema-type").isFloatSchema; - isInt32Schema: typeof import("./utils/get-schema-type").isInt32Schema; - isInt64Schema: typeof import("./utils/get-schema-type").isInt64Schema; - isIntegerSchema: typeof import("./utils/get-schema-type").isIntegerSchema; - isNumberSchema: typeof import("./utils/get-schema-type").isNumberSchema; - isObjectSchema: typeof import("./utils/get-schema-type").isObjectSchema; - isPrimitiveSchema: typeof import("./utils/get-schema-type").isPrimitiveSchema; - isStringSchema: typeof import("./utils/get-schema-type").isStringSchema; - schemaIsOfType: typeof import("./utils/get-schema-type").schemaIsOfType; - collectFromComposedSchemas: typeof import("./utils/collect-from-composed-schemas"); - getExamplesForSchema: typeof import("./utils/get-examples-for-schema"); - getPropertyNamesForSchema: typeof import("./utils/get-property-names-for-schema"); + getSchemaType: (schema: object) => symbol; + isArraySchema: (schema: object) => boolean; + isBinarySchema: (schema: object) => boolean; + isBooleanSchema: (schema: object) => boolean; + isByteSchema: (schema: object) => boolean; + isDateSchema: (schema: object) => boolean; + isDateTimeSchema: (schema: object) => boolean; + isDoubleSchema: (schema: object) => boolean; + isEnumerationSchema: (schema: object) => boolean; + isFloatSchema: (schema: object) => boolean; + isInt32Schema: (schema: object) => boolean; + isInt64Schema: (schema: object) => boolean; + isIntegerSchema: (schema: object) => boolean; + isNumberSchema: (schema: object) => boolean; + isObjectSchema: (schema: object) => boolean; + isPrimitiveSchema: (schema: object) => boolean; + isStringSchema: (schema: object) => boolean; + schemaIsOfType: (schema: object, type: string) => boolean; + collectFromComposedSchemas: typeof import("./utils/collect-from-composed-schemas.js").default; + getExamplesForSchema: typeof import("./utils/get-examples-for-schema.js").default; + getPropertyNamesForSchema: typeof import("./utils/get-property-names-for-schema.js").default; }; -export = _exports; +export default _default; +export const collectFromComposedSchemas: typeof import("./utils/collect-from-composed-schemas.js").default; +export const getExamplesForSchema: typeof import("./utils/get-examples-for-schema.js").default; +export const getPropertyNamesForSchema: typeof import("./utils/get-property-names-for-schema.js").default; +export const getSchemaType: (schema: object) => symbol; +export const SchemaType: { + ARRAY: symbol; + BINARY: symbol; + BOOLEAN: symbol; + BYTE: symbol; + DATE: symbol; + DATE_TIME: symbol; + DOUBLE: symbol; + ENUMERATION: symbol; + FLOAT: symbol; + INT32: symbol; + INT64: symbol; + INTEGER: symbol; + NUMBER: symbol; + OBJECT: symbol; + STRING: symbol; + UNKNOWN: symbol; +}; +export const isArraySchema: (schema: object) => boolean; +export const isBinarySchema: (schema: object) => boolean; +export const isBooleanSchema: (schema: object) => boolean; +export const isByteSchema: (schema: object) => boolean; +export const isDateSchema: (schema: object) => boolean; +export const isDateTimeSchema: (schema: object) => boolean; +export const isDoubleSchema: (schema: object) => boolean; +export const isEnumerationSchema: (schema: object) => boolean; +export const isFloatSchema: (schema: object) => boolean; +export const isInt32Schema: (schema: object) => boolean; +export const isInt64Schema: (schema: object) => boolean; +export const isIntegerSchema: (schema: object) => boolean; +export const isNumberSchema: (schema: object) => boolean; +export const isObjectSchema: (schema: object) => boolean; +export const isPrimitiveSchema: (schema: object) => boolean; +export const isStringSchema: (schema: object) => boolean; +export const schemaIsOfType: (schema: object, type: string) => boolean; +export const isObject: typeof import("./utils/is-object.js").default; +export const schemaHasConstraint: typeof import("./utils/schema-has-constraint.js").default; +export const schemaHasProperty: typeof import("./utils/schema-has-property.js").default; +export const schemaLooselyHasConstraint: typeof import("./utils/schema-loosely-has-constraint.js").default; +export const schemaRequiresProperty: typeof import("./utils/schema-requires-property.js").default; +export const getNodes: (context: object) => object; +export const getResolvedSpec: (context: object) => object; +export const getUnresolvedSpec: (context: object) => object; +export const validateComposedSchemas: typeof import("./utils/validate-composed-schemas.js").default; +export const validateNestedSchemas: typeof import("./utils/validate-nested-schemas.js").default; +export const validateSubschemas: typeof import("./utils/validate-subschemas.js").default; +export { collections }; +import collections from './collections/index.js'; //# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/utilities/types/index.d.ts.map b/packages/utilities/types/index.d.ts.map index 6e08bd549..db8b86c2a 100644 --- a/packages/utilities/types/index.d.ts.map +++ b/packages/utilities/types/index.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.js"],"names":[],"mappings":""} \ No newline at end of file +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAWwB,wBAAwB"} \ No newline at end of file diff --git a/packages/utilities/types/utils/collect-from-composed-schemas.d.ts b/packages/utilities/types/utils/collect-from-composed-schemas.d.ts index a24d340d3..515029af6 100644 --- a/packages/utilities/types/utils/collect-from-composed-schemas.d.ts +++ b/packages/utilities/types/utils/collect-from-composed-schemas.d.ts @@ -1,4 +1,4 @@ -export = collectFromComposedSchemas; +export default collectFromComposedSchemas; /** * Copyright 2024 IBM Corporation. * SPDX-License-Identifier: Apache2.0 diff --git a/packages/utilities/types/utils/get-examples-for-schema.d.ts b/packages/utilities/types/utils/get-examples-for-schema.d.ts index c613f1e1e..32adf00cb 100644 --- a/packages/utilities/types/utils/get-examples-for-schema.d.ts +++ b/packages/utilities/types/utils/get-examples-for-schema.d.ts @@ -1,4 +1,4 @@ -export = getExamplesForSchema; +export default getExamplesForSchema; /** * Returns an array of examples for a simple or composite schema. For each composed schema, if * `schema.examples` is present (and an array), `schema.example` is ignored. diff --git a/packages/utilities/types/utils/get-property-names-for-schema.d.ts b/packages/utilities/types/utils/get-property-names-for-schema.d.ts index 1da1f6491..a2d78869b 100644 --- a/packages/utilities/types/utils/get-property-names-for-schema.d.ts +++ b/packages/utilities/types/utils/get-property-names-for-schema.d.ts @@ -1,4 +1,4 @@ -export = getPropertyNamesForSchema; +export default getPropertyNamesForSchema; /** * Returns an array of property names for a simple or composite schema, * optionally filtered by a lambda function. diff --git a/packages/utilities/types/utils/get-schema-type.d.ts b/packages/utilities/types/utils/get-schema-type.d.ts index 48b4286ac..0fb5d9723 100644 --- a/packages/utilities/types/utils/get-schema-type.d.ts +++ b/packages/utilities/types/utils/get-schema-type.d.ts @@ -1,4 +1,26 @@ -export namespace SchemaType { +declare namespace _default { + export { SchemaType }; + export { getSchemaType }; + export { isArraySchema }; + export { isBinarySchema }; + export { isBooleanSchema }; + export { isByteSchema }; + export { isDateSchema }; + export { isDateTimeSchema }; + export { isDoubleSchema }; + export { isEnumerationSchema }; + export { isFloatSchema }; + export { isInt32Schema }; + export { isInt64Schema }; + export { isIntegerSchema }; + export { isNumberSchema }; + export { isObjectSchema }; + export { isPrimitiveSchema }; + export { isStringSchema }; + export { schemaIsOfType }; +} +export default _default; +declare namespace SchemaType { let ARRAY: symbol; let BINARY: symbol; let BOOLEAN: symbol; @@ -28,103 +50,103 @@ export namespace SchemaType { * @param {object} schema simple or composite OpenAPI 3.x schema object * @returns {symbol} a symbol from `SchemaType` */ -export function getSchemaType(schema: object): symbol; +declare function getSchemaType(schema: object): symbol; /** * Returns `true` for an array schema. * @param {object} schema simple or composite OpenAPI 3.x schema object * @returns {boolean} */ -export function isArraySchema(schema: object): boolean; +declare function isArraySchema(schema: object): boolean; /** * Returns `true` for an arbitrary octet sequence binary schema. * @param {object} schema simple or composite OpenAPI 3.x schema object * @returns {boolean} */ -export function isBinarySchema(schema: object): boolean; +declare function isBinarySchema(schema: object): boolean; /** * Returns `true` for a boolean schema. * @param {object} schema simple or composite OpenAPI 3.x schema object * @returns {boolean} */ -export function isBooleanSchema(schema: object): boolean; +declare function isBooleanSchema(schema: object): boolean; /** * Returns `true` for a base64-encoded byte string schema. * @param {object} schema simple or composite OpenAPI 3.x schema object * @returns {boolean} */ -export function isByteSchema(schema: object): boolean; +declare function isByteSchema(schema: object): boolean; /** * Returns `true` for a date schema. * @param {object} schema simple or composite OpenAPI 3.x schema object * @returns {boolean} */ -export function isDateSchema(schema: object): boolean; +declare function isDateSchema(schema: object): boolean; /** * Returns `true` for a date-time schema. * @param {object} schema simple or composite OpenAPI 3.x schema object * @returns {boolean} */ -export function isDateTimeSchema(schema: object): boolean; +declare function isDateTimeSchema(schema: object): boolean; /** * Returns `true` for a double (IEEE 754 64-bit floating point value) schema. * @param {object} schema simple or composite OpenAPI 3.x schema object * @returns {boolean} */ -export function isDoubleSchema(schema: object): boolean; +declare function isDoubleSchema(schema: object): boolean; /** * Returns `true` for a string enumeration schema. * @param {object} schema simple or composite OpenAPI 3.x schema object * @returns {boolean} */ -export function isEnumerationSchema(schema: object): boolean; +declare function isEnumerationSchema(schema: object): boolean; /** * Returns `true` for a double (IEEE 754 32-bit floating point value) schema. * @param {object} schema simple or composite OpenAPI 3.x schema object * @returns {boolean} */ -export function isFloatSchema(schema: object): boolean; +declare function isFloatSchema(schema: object): boolean; /** * Returns `true` for an int32 (32-bit signed "short") schema. * @param {object} schema simple or composite OpenAPI 3.x schema object * @returns {boolean} */ -export function isInt32Schema(schema: object): boolean; +declare function isInt32Schema(schema: object): boolean; /** * Returns `true` for an int64 (64-bit signed "long") schema. * @param {object} schema simple or composite OpenAPI 3.x schema object * @returns {boolean} */ -export function isInt64Schema(schema: object): boolean; +declare function isInt64Schema(schema: object): boolean; /** * Returns `true` for an integer (32-bit, 64-bit, or ambiguous format) schema. * @param {object} schema simple or composite OpenAPI 3.x schema object * @returns {boolean} */ -export function isIntegerSchema(schema: object): boolean; +declare function isIntegerSchema(schema: object): boolean; /** * Returns `true` for a number (32-bit, 64-bit, or ambiguous format floating point) schema. * @param {object} schema simple or composite OpenAPI 3.x schema object * @returns {boolean} */ -export function isNumberSchema(schema: object): boolean; +declare function isNumberSchema(schema: object): boolean; /** * Returns `true` for an object schema. * @param {object} schema simple or composite OpenAPI 3.x schema object * @returns {boolean} */ -export function isObjectSchema(schema: object): boolean; +declare function isObjectSchema(schema: object): boolean; /** * Returns `true` for a primitive schema (anything encoded as a JSON string, number, or boolean). * @param {object} schema simple or composite OpenAPI 3.x schema object * @returns {boolean} */ -export function isPrimitiveSchema(schema: object): boolean; +declare function isPrimitiveSchema(schema: object): boolean; /** * Returns `true` for a string schema of any format. * @param {object} schema simple or composite OpenAPI 3.x schema object * @returns {boolean} */ -export function isStringSchema(schema: object): boolean; +declare function isStringSchema(schema: object): boolean; /** * Check whether a schema is of a specific type. This means that one of the following must be true: * 1. `schema`'s type field is a string and is equal to `type`. @@ -133,5 +155,5 @@ export function isStringSchema(schema: object): boolean; * @param {string} type the type value to check * @returns {boolean} */ -export function schemaIsOfType(schema: object, type: string): boolean; +declare function schemaIsOfType(schema: object, type: string): boolean; //# sourceMappingURL=get-schema-type.d.ts.map \ No newline at end of file diff --git a/packages/utilities/types/utils/get-schema-type.d.ts.map b/packages/utilities/types/utils/get-schema-type.d.ts.map index d85266963..e51a37110 100644 --- a/packages/utilities/types/utils/get-schema-type.d.ts.map +++ b/packages/utilities/types/utils/get-schema-type.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"get-schema-type.d.ts","sourceRoot":"","sources":["../../src/utils/get-schema-type.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AA0FA;;;;;;;;;;;GAWG;AACH,sCAHW,MAAM,GACJ,MAAM,CA2ClB;AAoCD;;;;GAIG;AACH,sCAHW,MAAM,GACJ,OAAO,CAMnB;AAED;;;;GAIG;AACH,uCAHW,MAAM,GACJ,OAAO,CAOnB;AAED;;;;GAIG;AACH,wCAHW,MAAM,GACJ,OAAO,CAInB;AAED;;;;GAIG;AACH,qCAHW,MAAM,GACJ,OAAO,CAOnB;AAED;;;;GAIG;AACH,qCAHW,MAAM,GACJ,OAAO,CAOnB;AAED;;;;GAIG;AACH,yCAHW,MAAM,GACJ,OAAO,CAOnB;AAED;;;;GAIG;AACH,uCAHW,MAAM,GACJ,OAAO,CAQnB;AAED;;;;GAIG;AACH,4CAHW,MAAM,GACJ,OAAO,CAOnB;AAED;;;;GAIG;AACH,sCAHW,MAAM,GACJ,OAAO,CAQnB;AAED;;;;GAIG;AACH,sCAHW,MAAM,GACJ,OAAO,CAOnB;AAED;;;;GAIG;AACH,sCAHW,MAAM,GACJ,OAAO,CAOnB;AAED;;;;GAIG;AACH,wCAHW,MAAM,GACJ,OAAO,CAInB;AAED;;;;GAIG;AACH,uCAHW,MAAM,GACJ,OAAO,CAInB;AAED;;;;GAIG;AACH,uCAHW,MAAM,GACJ,OAAO,CAanB;AAWD;;;;GAIG;AACH,0CAHW,MAAM,GACJ,OAAO,CAUnB;AAtBD;;;;GAIG;AACH,uCAHW,MAAM,GACJ,OAAO,CAInB;AA/MD;;;;;;;GAOG;AACH,uCAJW,MAAM,QACN,MAAM,GACJ,OAAO,CAQnB"} \ No newline at end of file +{"version":3,"file":"get-schema-type.d.ts","sourceRoot":"","sources":["../../src/utils/get-schema-type.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0FA;;;;;;;;;;;GAWG;AACH,uCAHW,MAAM,GACJ,MAAM,CA2ClB;AAoCD;;;;GAIG;AACH,uCAHW,MAAM,GACJ,OAAO,CAMnB;AAED;;;;GAIG;AACH,wCAHW,MAAM,GACJ,OAAO,CAOnB;AAED;;;;GAIG;AACH,yCAHW,MAAM,GACJ,OAAO,CAInB;AAED;;;;GAIG;AACH,sCAHW,MAAM,GACJ,OAAO,CAOnB;AAED;;;;GAIG;AACH,sCAHW,MAAM,GACJ,OAAO,CAOnB;AAED;;;;GAIG;AACH,0CAHW,MAAM,GACJ,OAAO,CAOnB;AAED;;;;GAIG;AACH,wCAHW,MAAM,GACJ,OAAO,CAQnB;AAED;;;;GAIG;AACH,6CAHW,MAAM,GACJ,OAAO,CAOnB;AAED;;;;GAIG;AACH,uCAHW,MAAM,GACJ,OAAO,CAQnB;AAED;;;;GAIG;AACH,uCAHW,MAAM,GACJ,OAAO,CAOnB;AAED;;;;GAIG;AACH,uCAHW,MAAM,GACJ,OAAO,CAOnB;AAED;;;;GAIG;AACH,yCAHW,MAAM,GACJ,OAAO,CAInB;AAED;;;;GAIG;AACH,wCAHW,MAAM,GACJ,OAAO,CAInB;AAED;;;;GAIG;AACH,wCAHW,MAAM,GACJ,OAAO,CAanB;AAWD;;;;GAIG;AACH,2CAHW,MAAM,GACJ,OAAO,CAUnB;AAtBD;;;;GAIG;AACH,wCAHW,MAAM,GACJ,OAAO,CAInB;AA/MD;;;;;;;GAOG;AACH,wCAJW,MAAM,QACN,MAAM,GACJ,OAAO,CAQnB"} \ No newline at end of file diff --git a/packages/utilities/types/utils/index.d.ts b/packages/utilities/types/utils/index.d.ts index c643b5777..a304b8c0a 100644 --- a/packages/utilities/types/utils/index.d.ts +++ b/packages/utilities/types/utils/index.d.ts @@ -1,15 +1,15 @@ -declare const _exports: { - validateComposedSchemas: typeof import("./validate-composed-schemas"); - validateNestedSchemas: typeof import("./validate-nested-schemas"); - validateSubschemas: typeof import("./validate-subschemas"); - getNodes: typeof import("./spectral-context-utils").getNodes; - getResolvedSpec: typeof import("./spectral-context-utils").getResolvedSpec; - getUnresolvedSpec: typeof import("./spectral-context-utils").getUnresolvedSpec; - isObject: typeof import("./is-object"); - schemaHasConstraint: typeof import("./schema-has-constraint"); - schemaHasProperty: typeof import("./schema-has-property"); - schemaLooselyHasConstraint: typeof import("./schema-loosely-has-constraint"); - schemaRequiresProperty: typeof import("./schema-requires-property"); +declare const _default: { + validateComposedSchemas: typeof validateComposedSchemas; + validateNestedSchemas: typeof validateNestedSchemas; + validateSubschemas: typeof validateSubschemas; + getNodes: (context: object) => object; + getResolvedSpec: (context: object) => object; + getUnresolvedSpec: (context: object) => object; + isObject: typeof isObject; + schemaHasConstraint: typeof schemaHasConstraint; + schemaHasProperty: typeof schemaHasProperty; + schemaLooselyHasConstraint: typeof schemaLooselyHasConstraint; + schemaRequiresProperty: typeof schemaRequiresProperty; SchemaType: { ARRAY: symbol; BINARY: symbol; @@ -28,27 +28,38 @@ declare const _exports: { STRING: symbol; UNKNOWN: symbol; }; - getSchemaType: typeof import("./get-schema-type").getSchemaType; - isArraySchema: typeof import("./get-schema-type").isArraySchema; - isBinarySchema: typeof import("./get-schema-type").isBinarySchema; - isBooleanSchema: typeof import("./get-schema-type").isBooleanSchema; - isByteSchema: typeof import("./get-schema-type").isByteSchema; - isDateSchema: typeof import("./get-schema-type").isDateSchema; - isDateTimeSchema: typeof import("./get-schema-type").isDateTimeSchema; - isDoubleSchema: typeof import("./get-schema-type").isDoubleSchema; - isEnumerationSchema: typeof import("./get-schema-type").isEnumerationSchema; - isFloatSchema: typeof import("./get-schema-type").isFloatSchema; - isInt32Schema: typeof import("./get-schema-type").isInt32Schema; - isInt64Schema: typeof import("./get-schema-type").isInt64Schema; - isIntegerSchema: typeof import("./get-schema-type").isIntegerSchema; - isNumberSchema: typeof import("./get-schema-type").isNumberSchema; - isObjectSchema: typeof import("./get-schema-type").isObjectSchema; - isPrimitiveSchema: typeof import("./get-schema-type").isPrimitiveSchema; - isStringSchema: typeof import("./get-schema-type").isStringSchema; - schemaIsOfType: typeof import("./get-schema-type").schemaIsOfType; - collectFromComposedSchemas: typeof import("./collect-from-composed-schemas"); - getExamplesForSchema: typeof import("./get-examples-for-schema"); - getPropertyNamesForSchema: typeof import("./get-property-names-for-schema"); + getSchemaType: (schema: object) => symbol; + isArraySchema: (schema: object) => boolean; + isBinarySchema: (schema: object) => boolean; + isBooleanSchema: (schema: object) => boolean; + isByteSchema: (schema: object) => boolean; + isDateSchema: (schema: object) => boolean; + isDateTimeSchema: (schema: object) => boolean; + isDoubleSchema: (schema: object) => boolean; + isEnumerationSchema: (schema: object) => boolean; + isFloatSchema: (schema: object) => boolean; + isInt32Schema: (schema: object) => boolean; + isInt64Schema: (schema: object) => boolean; + isIntegerSchema: (schema: object) => boolean; + isNumberSchema: (schema: object) => boolean; + isObjectSchema: (schema: object) => boolean; + isPrimitiveSchema: (schema: object) => boolean; + isStringSchema: (schema: object) => boolean; + schemaIsOfType: (schema: object, type: string) => boolean; + collectFromComposedSchemas: typeof collectFromComposedSchemas; + getExamplesForSchema: typeof getExamplesForSchema; + getPropertyNamesForSchema: typeof getPropertyNamesForSchema; }; -export = _exports; +export default _default; +import validateComposedSchemas from './validate-composed-schemas.js'; +import validateNestedSchemas from './validate-nested-schemas.js'; +import validateSubschemas from './validate-subschemas.js'; +import isObject from './is-object.js'; +import schemaHasConstraint from './schema-has-constraint.js'; +import schemaHasProperty from './schema-has-property.js'; +import schemaLooselyHasConstraint from './schema-loosely-has-constraint.js'; +import schemaRequiresProperty from './schema-requires-property.js'; +import collectFromComposedSchemas from './collect-from-composed-schemas.js'; +import getExamplesForSchema from './get-examples-for-schema.js'; +import getPropertyNamesForSchema from './get-property-names-for-schema.js'; //# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/utilities/types/utils/index.d.ts.map b/packages/utilities/types/utils/index.d.ts.map index 16278caa7..4182fbf3f 100644 --- a/packages/utilities/types/utils/index.d.ts.map +++ b/packages/utilities/types/utils/index.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.js"],"names":[],"mappings":""} \ No newline at end of file +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAeoC,gCAAgC;kCAClC,8BAA8B;+BACjC,0BAA0B;qBARpC,gBAAgB;gCACL,4BAA4B;8BAC9B,0BAA0B;uCACjB,oCAAoC;mCACxC,+BAA+B;uCAR3B,oCAAoC;iCAC1C,8BAA8B;sCACzB,oCAAoC"} \ No newline at end of file diff --git a/packages/utilities/types/utils/is-object.d.ts b/packages/utilities/types/utils/is-object.d.ts index 4b41bbdc6..ab44d28ba 100644 --- a/packages/utilities/types/utils/is-object.d.ts +++ b/packages/utilities/types/utils/is-object.d.ts @@ -1,4 +1,4 @@ -export = isObject; +export default isObject; /** * Copyright 2017 - 2023 IBM Corporation. * SPDX-License-Identifier: Apache2.0 diff --git a/packages/utilities/types/utils/schema-has-constraint.d.ts b/packages/utilities/types/utils/schema-has-constraint.d.ts index 03f3e257f..818acf816 100644 --- a/packages/utilities/types/utils/schema-has-constraint.d.ts +++ b/packages/utilities/types/utils/schema-has-constraint.d.ts @@ -1,4 +1,4 @@ -export = schemaHasConstraint; +export default schemaHasConstraint; /** * This function will return `true` if all possible variations of a (possibly composite) schema * enforce a constraint, as checked by a `(schema) => boolean` function which checks for the diff --git a/packages/utilities/types/utils/schema-has-property.d.ts b/packages/utilities/types/utils/schema-has-property.d.ts index 6a3e47444..dd1948854 100644 --- a/packages/utilities/types/utils/schema-has-property.d.ts +++ b/packages/utilities/types/utils/schema-has-property.d.ts @@ -1,4 +1,4 @@ -export = schemaHasProperty; +export default schemaHasProperty; /** * This function will return `true` if all possible variations of a (possibly composite) schema * define a property with the specified name. diff --git a/packages/utilities/types/utils/schema-loosely-has-constraint.d.ts b/packages/utilities/types/utils/schema-loosely-has-constraint.d.ts index ec528679b..f21fc0a68 100644 --- a/packages/utilities/types/utils/schema-loosely-has-constraint.d.ts +++ b/packages/utilities/types/utils/schema-loosely-has-constraint.d.ts @@ -1,4 +1,4 @@ -export = schemaLooselyHasConstraint; +export default schemaLooselyHasConstraint; /** * This function is a looser adaptation of the `schemaHasConstraint()` function. * Here, we process `oneOf` and `anyOf` lists the same as `allOf`, returning `true` if: diff --git a/packages/utilities/types/utils/schema-path.d.ts b/packages/utilities/types/utils/schema-path.d.ts index f86b73d3d..7c2e8ab8f 100644 --- a/packages/utilities/types/utils/schema-path.d.ts +++ b/packages/utilities/types/utils/schema-path.d.ts @@ -1,4 +1,8 @@ -export = SchemaPath; +export default SchemaPath; +/** + * Copyright 2024 IBM Corporation. + * SPDX-License-Identifier: Apache2.0 + */ /** * @private */ diff --git a/packages/utilities/types/utils/schema-path.d.ts.map b/packages/utilities/types/utils/schema-path.d.ts.map index e57362baa..6ee322c95 100644 --- a/packages/utilities/types/utils/schema-path.d.ts.map +++ b/packages/utilities/types/utils/schema-path.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"schema-path.d.ts","sourceRoot":"","sources":["../../src/utils/schema-path.js"],"names":[],"mappings":";AAQA;;GAEG;AACH;IACE,4CAIC;IAFC,wBAA0C;IAI5C,oCAKC;IAED,qCAKC;IAED,8CAKC;IAED,4BAEC;IAED,wDAEC;IAED,sBAEC;CACF"} \ No newline at end of file +{"version":3,"file":"schema-path.d.ts","sourceRoot":"","sources":["../../src/utils/schema-path.js"],"names":[],"mappings":";AAAA;;;GAGG;AAEH;;GAEG;AACH;IACE,4CAIC;IAFC,wBAA0C;IAI5C,oCAKC;IAED,qCAKC;IAED,8CAKC;IAED,4BAEC;IAED,wDAEC;IAED,sBAEC;CACF"} \ No newline at end of file diff --git a/packages/utilities/types/utils/schema-requires-property.d.ts b/packages/utilities/types/utils/schema-requires-property.d.ts index 83be41739..4fa0b86b9 100644 --- a/packages/utilities/types/utils/schema-requires-property.d.ts +++ b/packages/utilities/types/utils/schema-requires-property.d.ts @@ -1,4 +1,4 @@ -export = schemaRequiresProperty; +export default schemaRequiresProperty; /** * This function will return `true` if all possible variations of a (possibly composite) schema * require a property with the specified name. Note that this method may not behave as expected diff --git a/packages/utilities/types/utils/spectral-context-utils.d.ts b/packages/utilities/types/utils/spectral-context-utils.d.ts index 20dd69fd0..3cce27e31 100644 --- a/packages/utilities/types/utils/spectral-context-utils.d.ts +++ b/packages/utilities/types/utils/spectral-context-utils.d.ts @@ -1,10 +1,16 @@ +declare namespace _default { + export { getNodes }; + export { getResolvedSpec }; + export { getUnresolvedSpec }; +} +export default _default; /** * Returns the graph nodes, with information about references and the locations * they resolve to, that are computed by the Spectral resolver. * @param {object} context passed as an argument to Spectral-based rule functions * @returns {object} the graph nodes */ -export function getNodes(context: object): object; +declare function getNodes(context: object): object; /** * Copyright 2025 IBM Corporation. * SPDX-License-Identifier: Apache2.0 @@ -15,12 +21,12 @@ export function getNodes(context: object): object; * @param {object} context passed as an argument to Spectral-based rule functions * @returns {object} the resolved version of an OpenAPI document */ -export function getResolvedSpec(context: object): object; +declare function getResolvedSpec(context: object): object; /** * Returns the programmatic representation of an OpenAPI document, stored in * the Spectral-created "context" object, with all references still intact. * @param {object} context passed as an argument to Spectral-based rule functions * @returns {object} the unresolved version of an OpenAPI document */ -export function getUnresolvedSpec(context: object): object; +declare function getUnresolvedSpec(context: object): object; //# sourceMappingURL=spectral-context-utils.d.ts.map \ No newline at end of file diff --git a/packages/utilities/types/utils/spectral-context-utils.d.ts.map b/packages/utilities/types/utils/spectral-context-utils.d.ts.map index b7ed654b3..32369c147 100644 --- a/packages/utilities/types/utils/spectral-context-utils.d.ts.map +++ b/packages/utilities/types/utils/spectral-context-utils.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"spectral-context-utils.d.ts","sourceRoot":"","sources":["../../src/utils/spectral-context-utils.js"],"names":[],"mappings":"AAyBA;;;;;GAKG;AACH,kCAHW,MAAM,GACJ,MAAM,CAIlB;AAjCD;;;GAGG;AAEH;;;;;GAKG;AACH,yCAHW,MAAM,GACJ,MAAM,CAIlB;AAED;;;;;GAKG;AACH,2CAHW,MAAM,GACJ,MAAM,CAIlB"} \ No newline at end of file +{"version":3,"file":"spectral-context-utils.d.ts","sourceRoot":"","sources":["../../src/utils/spectral-context-utils.js"],"names":[],"mappings":";;;;;;AAyBA;;;;;GAKG;AACH,mCAHW,MAAM,GACJ,MAAM,CAIlB;AAjCD;;;GAGG;AAEH;;;;;GAKG;AACH,0CAHW,MAAM,GACJ,MAAM,CAIlB;AAED;;;;;GAKG;AACH,4CAHW,MAAM,GACJ,MAAM,CAIlB"} \ No newline at end of file diff --git a/packages/utilities/types/utils/validate-composed-schemas.d.ts b/packages/utilities/types/utils/validate-composed-schemas.d.ts index b33e37c7a..2606b9abf 100644 --- a/packages/utilities/types/utils/validate-composed-schemas.d.ts +++ b/packages/utilities/types/utils/validate-composed-schemas.d.ts @@ -1,4 +1,4 @@ -export = validateComposedSchemas; +export default validateComposedSchemas; /** * Performs validation on a schema and all of its composed schemas. * diff --git a/packages/utilities/types/utils/validate-nested-schemas.d.ts b/packages/utilities/types/utils/validate-nested-schemas.d.ts index 266c24aac..10314471d 100644 --- a/packages/utilities/types/utils/validate-nested-schemas.d.ts +++ b/packages/utilities/types/utils/validate-nested-schemas.d.ts @@ -1,4 +1,4 @@ -export = validateNestedSchemas; +export default validateNestedSchemas; /** * Performs validation on a schema and all of its nested schemas. * diff --git a/packages/utilities/types/utils/validate-subschemas.d.ts b/packages/utilities/types/utils/validate-subschemas.d.ts index 1616a74e7..0c71a8404 100644 --- a/packages/utilities/types/utils/validate-subschemas.d.ts +++ b/packages/utilities/types/utils/validate-subschemas.d.ts @@ -1,4 +1,4 @@ -export = validateSubschemas; +export default validateSubschemas; /** * Performs validation on a schema and all of its subschemas. * diff --git a/packages/utilities/vitest.config.ts b/packages/utilities/vitest.config.ts new file mode 100644 index 000000000..3cd42f48d --- /dev/null +++ b/packages/utilities/vitest.config.ts @@ -0,0 +1,19 @@ +import { defineConfig } from 'vitest/config'; + +export default defineConfig({ + test: { + globals: true, + environment: 'node', + coverage: { + enabled: true, + reporter: ['text', 'json', 'html'], + reportsDirectory: './coverage/', + }, + }, + resolve: { + alias: { + 'nimma/legacy': '../../node_modules/@stoplight/spectral-core/node_modules/nimma/dist/legacy/cjs', + 'nimma/fallbacks': '../../node_modules/@stoplight/spectral-core/node_modules/nimma/dist/legacy/cjs/fallbacks/', + }, + }, +}); \ No newline at end of file diff --git a/packages/validator/package.json b/packages/validator/package.json index 6bf088642..403f26d74 100644 --- a/packages/validator/package.json +++ b/packages/validator/package.json @@ -1,5 +1,6 @@ { "name": "ibm-openapi-validator", + "type": "module", "description": "Configurable and extensible validator/linter for OpenAPI documents", "version": "1.38.4", "private": false, @@ -13,11 +14,10 @@ "clean": "rm -rf node_modules", "link": "npm install -g", "unlink": "npm uninstall -g", - "test": "jest test", - "jest": "jest", - "test-validators": "jest test/plugins", - "test-cli-tool": "jest test/cli-validator/tests", - "test-travis": "jest --silent --runInBand --no-colors --testNamePattern='^((?!@skip-ci).)*$' test/", + "test": "vitest run", + "test-validators": "vitest run test/plugins", + "test-cli-tool": "vitest run test/cli-validator/tests", + "test-travis": "vitest run --reporter=verbose --testNamePattern='^((?!@skip-ci).)*$'", "lint": "eslint --cache --quiet src test", "fix": "eslint --fix src test", "pkg": "../../scripts/create-binaries.sh" @@ -44,7 +44,7 @@ }, "devDependencies": { "ansi-regex": "5.0.1", - "jest": "29.7.0", + "vitest": "4.1.8", "pkg": "5.8.1" }, "bin": { @@ -53,18 +53,5 @@ "engines": { "node": ">=24.0.0", "npm": ">=11.0.0" - }, - "jest": { - "collectCoverage": true, - "coverageDirectory": "./coverage/", - "testEnvironment": "node", - "moduleNameMapper": { - "nimma/legacy": "/../../node_modules/@stoplight/spectral-core/node_modules/nimma/dist/legacy/cjs", - "nimma/fallbacks": "/../../node_modules/@stoplight/spectral-core/node_modules/nimma/dist/legacy/cjs/fallbacks/", - "@stoplight/spectral-ruleset-bundler/presets/node": "/../../node_modules/@stoplight/spectral-ruleset-bundler/dist/presets/node", - "@stoplight/spectral-ruleset-bundler/plugins/stdin": "/../../node_modules/@stoplight/spectral-ruleset-bundler/dist/plugins/stdin", - "@stoplight/spectral-ruleset-bundler/plugins/builtins": "/../../node_modules/@stoplight/spectral-ruleset-bundler/dist/plugins/builtins", - "@stoplight/spectral-ruleset-bundler/plugins/commonjs": "/../../node_modules/@stoplight/spectral-ruleset-bundler/dist/plugins/commonjs" - } } } diff --git a/packages/validator/src/cli-validator/index.js b/packages/validator/src/cli-validator/index.js index a05124874..1cc58e139 100755 --- a/packages/validator/src/cli-validator/index.js +++ b/packages/validator/src/cli-validator/index.js @@ -4,12 +4,14 @@ * SPDX-License-Identifier: Apache2.0 */ +import checkVersion from './utils/check-version.js'; +import runValidator from './run-validator.js'; + // this module enforces that the user is running a supported version // of Node by exiting the process if the version is less than // the passed in argument (currently 16.0.0) -require('./utils/check-version')('16.0.0'); +checkVersion('16.0.0'); -const runValidator = require('./run-validator'); runValidator(process.argv) .then(exitCode => { process.exitCode = exitCode; diff --git a/packages/validator/src/cli-validator/run-validator.js b/packages/validator/src/cli-validator/run-validator.js index 52dd657a0..063b263af 100644 --- a/packages/validator/src/cli-validator/run-validator.js +++ b/packages/validator/src/cli-validator/run-validator.js @@ -4,16 +4,16 @@ * SPDX-License-Identifier: Apache2.0 */ -const chalk = require('chalk'); -const fs = require('fs'); -const globby = require('globby'); -const isPlainObject = require('lodash/isPlainObject'); -const jsonValidator = require('json-dup-key-validator'); -const path = require('path'); -const readYaml = require('js-yaml'); -const util = require('util'); - -const { +import chalk from 'chalk'; +import { readFile as _readFile } from 'fs'; +import globby from 'globby'; +import isPlainObject from 'lodash/isPlainObject.js'; +import { validate } from 'json-dup-key-validator'; +import { resolve, relative } from 'path'; +import { load } from 'js-yaml'; +import { promisify } from 'util'; + +import { getCopyrightString, getFileExtension, preprocessFile, @@ -22,11 +22,14 @@ const { printVersions, processArgs, supportedFileExtension, -} = require('./utils'); +} from './utils/index.js'; -const { runSpectral } = require('../spectral'); -const { produceQualityScore, printScoreTables } = require('../scoring-tool'); -const { printMarkdownReport } = require('../markdown-report'); +import { runSpectral } from '../spectral/index.js'; +import { + produceQualityScore, + printScoreTables, +} from '../scoring-tool/index.js'; +import { printMarkdownReport } from '../markdown-report/index.js'; let logger; @@ -84,10 +87,10 @@ async function runValidator(cliArgs, parseOptions = {}) { return Promise.reject(2); } - // Turn off coloring if requested. - if (!context.config.colorizeOutput) { - chalk.level = 0; - } + // Set color level based on the config. Reset to the default (3) when + // colorization is enabled so that a previous `chalk.level = 0` assignment + // (e.g. from a prior test run) doesn't bleed into subsequent invocations. + chalk.level = context.config.colorizeOutput ? 3 : 0; context.chalk = chalk; @@ -103,13 +106,13 @@ async function runValidator(cliArgs, parseOptions = {}) { // by comparing absolute paths. // "filteredArgs" will be "args" minus any ignored files. const filteredArgs = args.filter( - file => !context.config.ignoreFiles.includes(path.resolve(file)) + file => !context.config.ignoreFiles.includes(resolve(file)) ); // Next, display a message for each user-specified file that is being ignored. const ignoredFiles = args.filter(file => !filteredArgs.includes(file)); ignoredFiles.forEach(file => { - logger.warn('Ignored ' + path.relative(process.cwd(), file)); + logger.warn('Ignored ' + relative(process.cwd(), file)); }); args = filteredArgs; @@ -180,7 +183,7 @@ async function runValidator(cliArgs, parseOptions = {}) { // The "fs" module does not return promises by default. // Create a version of the 'readFile' function that does. - const readFile = util.promisify(fs.readFile); + const readFile = promisify(_readFile); // Validate, then process the results for each file being validated. for (const validFile of filesToValidate) { @@ -192,7 +195,9 @@ async function runValidator(cliArgs, parseOptions = {}) { if (!outputIsJSON(context)) { console.log(''); - console.log(chalk.underline(`Validation Results for ${validFile}:\n`)); + console.log( + context.chalk.underline(`Validation Results for ${validFile}:\n`) + ); } try { originalFile = await readFile(validFile, 'utf8'); @@ -202,7 +207,7 @@ async function runValidator(cliArgs, parseOptions = {}) { if (fileExtension === 'json') { input = JSON.parse(originalFile); } else if (fileExtension === 'yaml' || fileExtension === 'yml') { - input = readYaml.load(originalFile); + input = load(originalFile); } if (!isPlainObject(input)) { @@ -211,7 +216,7 @@ async function runValidator(cliArgs, parseOptions = {}) { // jsonValidator looks through the originalFile for duplicate JSON keys // this is checked for by default in readYaml - const duplicateKeysError = jsonValidator.validate(originalFile); + const duplicateKeysError = validate(originalFile); if (fileExtension === 'json' && duplicateKeysError) { throw duplicateKeysError; } @@ -392,4 +397,4 @@ function outputIsJSON(context) { return context.config.outputFormat === 'json'; } -module.exports = runValidator; +export default runValidator; diff --git a/packages/validator/src/cli-validator/utils/check-ruleset-version.js b/packages/validator/src/cli-validator/utils/check-ruleset-version.js index 6d0606cdd..0091bc9ed 100644 --- a/packages/validator/src/cli-validator/utils/check-ruleset-version.js +++ b/packages/validator/src/cli-validator/utils/check-ruleset-version.js @@ -3,10 +3,10 @@ * SPDX-License-Identifier: Apache2.0 */ -const semver = require('semver'); -const getDefaultRulesetVersion = require('./get-default-ruleset-version'); +import { lt } from 'semver'; +import getDefaultRulesetVersion from './get-default-ruleset-version.js'; -module.exports = checkRulesetVersion; +export default checkRulesetVersion; /** * Checks the locally installed version of the IBM Cloud OpenAPI @@ -30,7 +30,7 @@ function checkRulesetVersion(local) { } const defaultVersion = getDefaultRulesetVersion(); - if (semver.lt(local, defaultVersion)) { + if (lt(local, defaultVersion)) { return `Note: local version of the IBM OpenAPI Ruleset is behind the default version, which is ${defaultVersion}.`; } diff --git a/packages/validator/src/cli-validator/utils/check-version.js b/packages/validator/src/cli-validator/utils/check-version.js index 0c746a97d..61dc99100 100644 --- a/packages/validator/src/cli-validator/utils/check-version.js +++ b/packages/validator/src/cli-validator/utils/check-version.js @@ -3,19 +3,20 @@ * SPDX-License-Identifier: Apache2.0 */ -const semver = require('semver'); -const chalk = require('chalk'); +import { gte, satisfies } from 'semver'; +import chalk from 'chalk'; +const { red, yellow } = chalk; // this module can be used to handle any version-specific functionality // it will be called immediately when the program is run -module.exports = function (requiredVersion) { +export default function (requiredVersion) { // this is called since the code uses features that require `requiredVersion` - const isSupportedVersion = semver.gte(process.version, requiredVersion); + const isSupportedVersion = gte(process.version, requiredVersion); if (!isSupportedVersion) { console.log( '\n' + - chalk.red('[Error]') + + red('[Error]') + ` Node version must be ${requiredVersion} or above.` + ` Your current version is ${process.version}\n` ); @@ -23,13 +24,13 @@ module.exports = function (requiredVersion) { } // print deprecation warnings for specific node versions that will no longer be supported - const isNodeTen = semver.satisfies(process.version, '10.x'); + const isNodeTen = satisfies(process.version, '10.x'); if (isNodeTen) { console.log( '\n' + - chalk.yellow('[Warning]') + + yellow('[Warning]') + ` Support for Node 10.x is deprecated. Support will be officially dropped when it reaches end of life` + ` (30 April 2021).\n` ); } -}; +} diff --git a/packages/validator/src/cli-validator/utils/cli-options.js b/packages/validator/src/cli-validator/utils/cli-options.js index 2adfc7ffa..a69da54d6 100644 --- a/packages/validator/src/cli-validator/utils/cli-options.js +++ b/packages/validator/src/cli-validator/utils/cli-options.js @@ -3,8 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { Command } = require('commander'); -const getCopyrightString = require('./get-copyright-string'); +import { Command } from 'commander'; +import getCopyrightString from './get-copyright-string.js'; /** * This function is used to gather multi-valued arguments into an array. @@ -115,4 +115,4 @@ function createCLIOptions() { return command; } -module.exports = createCLIOptions; +export default createCLIOptions; diff --git a/packages/validator/src/cli-validator/utils/configuration-manager.js b/packages/validator/src/cli-validator/utils/configuration-manager.js index 810e82866..4134083f7 100644 --- a/packages/validator/src/cli-validator/utils/configuration-manager.js +++ b/packages/validator/src/cli-validator/utils/configuration-manager.js @@ -3,15 +3,20 @@ * SPDX-License-Identifier: Apache2.0 */ -const path = require('path'); -const { +import { readFileSync } from 'fs'; +import path from 'path'; +import { fileURLToPath } from 'url'; +import { getFileExtension, supportedFileExtension, -} = require('./file-extension-validator'); -const { LoggerFactory } = require('@ibm-cloud/openapi-ruleset/src/utils'); -const validateSchema = require('./validate-schema'); -const createCLIOptions = require('./cli-options'); -const readYaml = require('./read-yaml'); +} from './file-extension-validator.js'; +import { LoggerFactory } from '@ibm-cloud/openapi-ruleset/src/utils'; +import validateSchema from './validate-schema.js'; +import createCLIOptions from './cli-options.js'; +import readYaml from './read-yaml.js'; + +const __filename = fileURLToPath(import.meta.url); +const __dirname = path.dirname(__filename); // Lazy initializer for the logger. let logger; @@ -74,9 +79,14 @@ async function loadConfig(filename) { const extension = getFileExtension(configFile); try { switch (extension) { - case 'json': + case 'json': { + userConfig = JSON.parse(readFileSync(configFile, 'utf8')); + break; + } + case 'js': { - userConfig = require(configFile); + userConfig = + (await import(configFile)).default || (await import(configFile)); break; } @@ -271,9 +281,4 @@ async function getConfigFileSchema() { return configFileSchema; } -module.exports = { - getConfigFileSchema, - getDefaultConfig, - loadConfig, - processArgs, -}; +export { getConfigFileSchema, getDefaultConfig, loadConfig, processArgs }; diff --git a/packages/validator/src/cli-validator/utils/file-extension-validator.js b/packages/validator/src/cli-validator/utils/file-extension-validator.js index e2e27b59a..1e6e30925 100644 --- a/packages/validator/src/cli-validator/utils/file-extension-validator.js +++ b/packages/validator/src/cli-validator/utils/file-extension-validator.js @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache2.0 */ -const last = require('lodash/last'); +import last from 'lodash/last.js'; const getExtension = filename => { return last(filename.split('.')).toLowerCase(); @@ -18,7 +18,5 @@ const validateExtension = (filename, supportedFileTypes) => { return goodExtension; }; -module.exports = { - supportedFileExtension: validateExtension, - getFileExtension: getExtension, -}; +export const supportedFileExtension = validateExtension; +export const getFileExtension = getExtension; diff --git a/packages/validator/src/cli-validator/utils/get-copyright-string.js b/packages/validator/src/cli-validator/utils/get-copyright-string.js index 14b632e9c..22bf1f363 100644 --- a/packages/validator/src/cli-validator/utils/get-copyright-string.js +++ b/packages/validator/src/cli-validator/utils/get-copyright-string.js @@ -3,8 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const getVersionString = require('./get-version-string'); +import getVersionString from './get-version-string.js'; -module.exports = function () { +export default function () { return `IBM OpenAPI Validator (${getVersionString()}), @Copyright IBM Corporation 2017, ${new Date().getFullYear()}.`; -}; +} diff --git a/packages/validator/src/cli-validator/utils/get-default-ruleset-version.js b/packages/validator/src/cli-validator/utils/get-default-ruleset-version.js index 8bb1ae318..2629e9858 100644 --- a/packages/validator/src/cli-validator/utils/get-default-ruleset-version.js +++ b/packages/validator/src/cli-validator/utils/get-default-ruleset-version.js @@ -3,9 +3,9 @@ * SPDX-License-Identifier: Apache2.0 */ -const packageConfig = require('../../../package.json'); +import packageJson from '../../../package.json' with { type: 'json' }; -module.exports = getDefaultRulesetVersion; +export default getDefaultRulesetVersion; /** * Looks at the validator tool's declared dependencies and @@ -16,5 +16,5 @@ module.exports = getDefaultRulesetVersion; * @returns string - the default ruleset version */ function getDefaultRulesetVersion() { - return packageConfig.dependencies['@ibm-cloud/openapi-ruleset']; + return packageJson.dependencies['@ibm-cloud/openapi-ruleset']; } diff --git a/packages/validator/src/cli-validator/utils/get-local-ruleset-version.js b/packages/validator/src/cli-validator/utils/get-local-ruleset-version.js index 6e824d28f..864ab9a7e 100644 --- a/packages/validator/src/cli-validator/utils/get-local-ruleset-version.js +++ b/packages/validator/src/cli-validator/utils/get-local-ruleset-version.js @@ -3,10 +3,11 @@ * SPDX-License-Identifier: Apache2.0 */ -const findUp = require('find-up'); -const { dirname, join } = require('path'); +import findUp from 'find-up'; +import { dirname, join } from 'path'; +import { createRequire } from 'module'; -module.exports = getLocalRulesetVersion; +const require = createRequire(import.meta.url); /** * Looks for a locally installed version of the IBM Cloud OpenAPI @@ -110,3 +111,5 @@ async function lookForRulesetPackage(rulesetDir) { await findUp(matchIBMRulesetPackage, opts); return pathToPackage; } + +export default getLocalRulesetVersion; diff --git a/packages/validator/src/cli-validator/utils/get-version-string.js b/packages/validator/src/cli-validator/utils/get-version-string.js index f95dcbf9e..1df07d770 100644 --- a/packages/validator/src/cli-validator/utils/get-version-string.js +++ b/packages/validator/src/cli-validator/utils/get-version-string.js @@ -3,8 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const packageConfig = require('../../../package.json'); +import packageJson from '../../../package.json' with { type: 'json' }; -module.exports = function () { - return `validator: ${packageConfig.version}`; -}; +export default function () { + return `validator: ${packageJson.version}`; +} diff --git a/packages/validator/src/cli-validator/utils/index.js b/packages/validator/src/cli-validator/utils/index.js index 075b26353..1661202d7 100644 --- a/packages/validator/src/cli-validator/utils/index.js +++ b/packages/validator/src/cli-validator/utils/index.js @@ -3,19 +3,17 @@ * SPDX-License-Identifier: Apache2.0 */ -module.exports = { - checkRulesetVersion: require('./check-ruleset-version'), - createCLIOptions: require('./cli-options'), - getCopyrightString: require('./get-copyright-string'), - getDefaultRulesetVersion: require('./get-default-ruleset-version'), - getLocalRulesetVersion: require('./get-local-ruleset-version'), - getVersionString: require('./get-version-string'), - preprocessFile: require('./preprocess-file'), - printJson: require('./print-json'), - printResults: require('./print-results'), - printVersions: require('./print-versions'), - readYaml: require('./read-yaml'), - validateSchema: require('./validate-schema'), - ...require('./configuration-manager'), - ...require('./file-extension-validator'), -}; +export { default as checkRulesetVersion } from './check-ruleset-version.js'; +export { default as createCLIOptions } from './cli-options.js'; +export { default as getCopyrightString } from './get-copyright-string.js'; +export { default as getDefaultRulesetVersion } from './get-default-ruleset-version.js'; +export { default as getLocalRulesetVersion } from './get-local-ruleset-version.js'; +export { default as getVersionString } from './get-version-string.js'; +export { default as preprocessFile } from './preprocess-file.js'; +export { default as printJson } from './print-json.js'; +export { default as printResults } from './print-results.js'; +export { default as printVersions } from './print-versions.js'; +export { default as readYaml } from './read-yaml.js'; +export { default as validateSchema } from './validate-schema.js'; +export * from './configuration-manager.js'; +export * from './file-extension-validator.js'; diff --git a/packages/validator/src/cli-validator/utils/preprocess-file.js b/packages/validator/src/cli-validator/utils/preprocess-file.js index 50917e700..414106549 100644 --- a/packages/validator/src/cli-validator/utils/preprocess-file.js +++ b/packages/validator/src/cli-validator/utils/preprocess-file.js @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache2.0 */ -module.exports = function (originalFile) { +export default function (originalFile) { let processedFile; // replace all tabs characters (\t) in the original file with 2 spaces @@ -23,4 +23,4 @@ module.exports = function (originalFile) { processedFile = processedFile.replace(/\x9d/g, ' '); return processedFile; -}; +} diff --git a/packages/validator/src/cli-validator/utils/print-json.js b/packages/validator/src/cli-validator/utils/print-json.js index 9b0e25bb4..7de5fa02f 100644 --- a/packages/validator/src/cli-validator/utils/print-json.js +++ b/packages/validator/src/cli-validator/utils/print-json.js @@ -7,4 +7,4 @@ function printJson(context, results) { console.log(JSON.stringify(results, null, 2)); } -module.exports = printJson; +export default printJson; diff --git a/packages/validator/src/cli-validator/utils/print-results.js b/packages/validator/src/cli-validator/utils/print-results.js index 84f66e5e0..1ee222ad0 100644 --- a/packages/validator/src/cli-validator/utils/print-results.js +++ b/packages/validator/src/cli-validator/utils/print-results.js @@ -3,11 +3,11 @@ * SPDX-License-Identifier: Apache2.0 */ -const each = require('lodash/each'); -const pad = require('pad'); +import each from 'lodash/each.js'; +import pad from 'pad'; // this function prints all of the output -module.exports = function print(context, results) { +export default function print(context, results) { const { chalk, config } = context; const types = ['error', 'warning', 'info', 'hint']; @@ -48,7 +48,7 @@ module.exports = function print(context, results) { // Print the summary here printSummary(results, types, context); -}; +} function printSummary(results, types, { chalk, config }) { console.log(chalk.cyan('Summary:')); diff --git a/packages/validator/src/cli-validator/utils/print-versions.js b/packages/validator/src/cli-validator/utils/print-versions.js index 128a68fd8..a3f4d0147 100644 --- a/packages/validator/src/cli-validator/utils/print-versions.js +++ b/packages/validator/src/cli-validator/utils/print-versions.js @@ -3,13 +3,11 @@ * SPDX-License-Identifier: Apache2.0 */ -const getDefaultRulesetVersion = require('./get-default-ruleset-version.js'); -const getLocalRulesetVersion = require('./get-local-ruleset-version'); -const getVersionString = require('./get-version-string'); -const checkRulesetVersion = require('./check-ruleset-version'); -const { findSpectralRuleset } = require('../../spectral/utils'); - -module.exports = printVersions; +import getDefaultRulesetVersion from './get-default-ruleset-version.js'; +import getLocalRulesetVersion from './get-local-ruleset-version.js'; +import getVersionString from './get-version-string.js'; +import checkRulesetVersion from './check-ruleset-version.js'; +import { findSpectralRuleset } from '../../spectral/utils.js'; /** * Prints the "version" strings upon request. It always @@ -92,3 +90,5 @@ async function collectVersionInfo({ config, logger }) { return versionInfo; } + +export default printVersions; diff --git a/packages/validator/src/cli-validator/utils/read-yaml.js b/packages/validator/src/cli-validator/utils/read-yaml.js index c3aa7f308..e3e9796d5 100644 --- a/packages/validator/src/cli-validator/utils/read-yaml.js +++ b/packages/validator/src/cli-validator/utils/read-yaml.js @@ -3,15 +3,15 @@ * SPDX-License-Identifier: Apache2.0 */ -const fs = require('fs'); -const util = require('util'); -const jsYaml = require('js-yaml'); +import { readFile as _readFile } from 'fs'; +import { promisify } from 'util'; +import { load } from 'js-yaml'; async function readYaml(path) { // Use a "promisified" version of fs.readFile(). - const readFile = util.promisify(fs.readFile); + const readFile = promisify(_readFile); const fileContents = await readFile(path, 'utf8'); - return jsYaml.load(fileContents); + return load(fileContents); } -module.exports = readYaml; +export default readYaml; diff --git a/packages/validator/src/cli-validator/utils/validate-schema.js b/packages/validator/src/cli-validator/utils/validate-schema.js index 3feab4b93..0ffacb4af 100644 --- a/packages/validator/src/cli-validator/utils/validate-schema.js +++ b/packages/validator/src/cli-validator/utils/validate-schema.js @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache2.0 */ -const Ajv = require('ajv'); +import Ajv from 'ajv'; /** * This function verifies that "data" complies with "schema". @@ -30,4 +30,4 @@ function validateSchema(data, schema) { return messages; } -module.exports = validateSchema; +export default validateSchema; diff --git a/packages/validator/src/markdown-report/index.js b/packages/validator/src/markdown-report/index.js index 47a432eea..d7a461fe6 100644 --- a/packages/validator/src/markdown-report/index.js +++ b/packages/validator/src/markdown-report/index.js @@ -3,12 +3,12 @@ * SPDX-License-Identifier: Apache2.0 */ -const getReport = require('./report'); -const writeReportToFile = require('./write-file'); +import getReport from './report.js'; +import writeReportToFile from './write-file.js'; function printMarkdownReport(context, results) { const report = getReport(context, results); return writeReportToFile(context, report); } -module.exports = { printMarkdownReport }; +export { printMarkdownReport }; diff --git a/packages/validator/src/markdown-report/markdown-table.js b/packages/validator/src/markdown-report/markdown-table.js index ca11cf74b..1a5b54ca2 100644 --- a/packages/validator/src/markdown-report/markdown-table.js +++ b/packages/validator/src/markdown-report/markdown-table.js @@ -53,4 +53,4 @@ class MarkdownTable { } } -module.exports = MarkdownTable; +export default MarkdownTable; diff --git a/packages/validator/src/markdown-report/report.js b/packages/validator/src/markdown-report/report.js index 1872c79a5..7950b64e8 100644 --- a/packages/validator/src/markdown-report/report.js +++ b/packages/validator/src/markdown-report/report.js @@ -3,14 +3,14 @@ * SPDX-License-Identifier: Apache2.0 */ -const { +import { categorizedScores, primary, ruleViolationDetails, errorSummary, scoringData, warningSummary, -} = require('./tables'); +} from './tables/index.js'; function getReport({ apiDefinition }, results) { return `# ${apiDefinition.info.title} @@ -53,4 +53,4 @@ ${ruleViolationDetails(results)} `; } -module.exports = getReport; +export default getReport; diff --git a/packages/validator/src/markdown-report/tables/categorized-scores.js b/packages/validator/src/markdown-report/tables/categorized-scores.js index 5f67d3ee1..6c2c45677 100644 --- a/packages/validator/src/markdown-report/tables/categorized-scores.js +++ b/packages/validator/src/markdown-report/tables/categorized-scores.js @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache2.0 */ -const MarkdownTable = require('../markdown-table'); +import MarkdownTable from '../markdown-table.js'; function getTable({ qualityScore }) { const { categorizedSummary } = qualityScore; @@ -21,4 +21,4 @@ function getTable({ qualityScore }) { return table.render(); } -module.exports = getTable; +export default getTable; diff --git a/packages/validator/src/markdown-report/tables/index.js b/packages/validator/src/markdown-report/tables/index.js index 0246e53e9..836e5eb16 100644 --- a/packages/validator/src/markdown-report/tables/index.js +++ b/packages/validator/src/markdown-report/tables/index.js @@ -3,10 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -module.exports = { - categorizedScores: require('./categorized-scores'), - primary: require('./primary'), - ruleViolationDetails: require('./rule-violation-details'), - ...require('./rule-violation-summary'), - scoringData: require('./scoring-data'), -}; +export { default as categorizedScores } from './categorized-scores.js'; +export { default as primary } from './primary.js'; +export { default as ruleViolationDetails } from './rule-violation-details.js'; +export { errorSummary, warningSummary } from './rule-violation-summary.js'; +export { default as scoringData } from './scoring-data.js'; diff --git a/packages/validator/src/markdown-report/tables/primary.js b/packages/validator/src/markdown-report/tables/primary.js index 3fb8c89ae..7ffc08447 100644 --- a/packages/validator/src/markdown-report/tables/primary.js +++ b/packages/validator/src/markdown-report/tables/primary.js @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache2.0 */ -const MarkdownTable = require('../markdown-table'); +import MarkdownTable from '../markdown-table.js'; function getTable({ qualityScore, error, warning }) { const table = new MarkdownTable( @@ -21,4 +21,4 @@ function getTable({ qualityScore, error, warning }) { return table.render(); } -module.exports = getTable; +export default getTable; diff --git a/packages/validator/src/markdown-report/tables/rule-violation-details.js b/packages/validator/src/markdown-report/tables/rule-violation-details.js index 8fc69a789..9b0776e6f 100644 --- a/packages/validator/src/markdown-report/tables/rule-violation-details.js +++ b/packages/validator/src/markdown-report/tables/rule-violation-details.js @@ -3,8 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const MarkdownTable = require('../markdown-table'); -const { splitMessage } = require('../../spectral/utils'); +import MarkdownTable from '../markdown-table.js'; +import { splitMessage } from '../../spectral/utils.js'; function groupResultsByRule(results) { const groupedByRule = {}; @@ -96,4 +96,4 @@ function getTable({ error, warning }) { return sections.join('\n').trim(); } -module.exports = getTable; +export default getTable; diff --git a/packages/validator/src/markdown-report/tables/rule-violation-summary.js b/packages/validator/src/markdown-report/tables/rule-violation-summary.js index ff148c8d0..1b343f389 100644 --- a/packages/validator/src/markdown-report/tables/rule-violation-summary.js +++ b/packages/validator/src/markdown-report/tables/rule-violation-summary.js @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache2.0 */ -const MarkdownTable = require('../markdown-table'); +import MarkdownTable from '../markdown-table.js'; function errorSummary({ error }) { return getTable(error); @@ -23,7 +23,4 @@ function getTable({ summary }) { return table.render(); } -module.exports = { - errorSummary, - warningSummary, -}; +export { errorSummary, warningSummary }; diff --git a/packages/validator/src/markdown-report/tables/scoring-data.js b/packages/validator/src/markdown-report/tables/scoring-data.js index bf1daf311..b21ad11f1 100644 --- a/packages/validator/src/markdown-report/tables/scoring-data.js +++ b/packages/validator/src/markdown-report/tables/scoring-data.js @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache2.0 */ -const MarkdownTable = require('../markdown-table'); +import MarkdownTable from '../markdown-table.js'; function getTable({ qualityScore }) { const { scoringData } = qualityScore; @@ -35,4 +35,4 @@ function getTable({ qualityScore }) { return table.render(); } -module.exports = getTable; +export default getTable; diff --git a/packages/validator/src/markdown-report/write-file.js b/packages/validator/src/markdown-report/write-file.js index 8cd718602..2e5afb6a3 100644 --- a/packages/validator/src/markdown-report/write-file.js +++ b/packages/validator/src/markdown-report/write-file.js @@ -3,13 +3,13 @@ * SPDX-License-Identifier: Apache2.0 */ -const { writeFileSync } = require('fs'); -const path = require('path'); +import { writeFileSync } from 'fs'; +import { parse, resolve } from 'path'; function writeReportToFile({ currentFilename }, report) { // For now, only a default filename is supported, which // is based on the name of the API definition file. - const { name } = path.parse(currentFilename); + const { name } = parse(currentFilename); const reportFilename = `${name}-validator-report.md`; // Write the output to a file. It will overwrite an existing file. @@ -17,7 +17,7 @@ function writeReportToFile({ currentFilename }, report) { // Return the filename as a confirmation of the success and for // later use in the logs shown to the user. - return path.resolve(process.cwd(), reportFilename); + return resolve(process.cwd(), reportFilename); } -module.exports = writeReportToFile; +export default writeReportToFile; diff --git a/packages/validator/src/scoring-tool/categories.js b/packages/validator/src/scoring-tool/categories.js index d944aa8e6..b1b63e526 100644 --- a/packages/validator/src/scoring-tool/categories.js +++ b/packages/validator/src/scoring-tool/categories.js @@ -27,7 +27,4 @@ function getCategoryCoefficient(category) { return categories[category].coefficient; } -module.exports = { - getCategories, - getCategoryCoefficient, -}; +export { getCategories, getCategoryCoefficient }; diff --git a/packages/validator/src/scoring-tool/compute-metrics.js b/packages/validator/src/scoring-tool/compute-metrics.js index 8823757ee..603de71ad 100644 --- a/packages/validator/src/scoring-tool/compute-metrics.js +++ b/packages/validator/src/scoring-tool/compute-metrics.js @@ -3,15 +3,15 @@ * SPDX-License-Identifier: Apache2.0 */ -const { +import { collections, isArraySchema, isBinarySchema, isIntegerSchema, isObjectSchema, isStringSchema, -} = require('@ibm-cloud/openapi-ruleset-utilities'); -const { Metrics } = require('./metrics'); +} from '@ibm-cloud/openapi-ruleset-utilities'; +import { Metrics } from './metrics.js'; async function computeMetrics(unresolvedApiDef) { // For some metrics, we just want to identify every unique instance @@ -51,6 +51,4 @@ async function computeMetrics(unresolvedApiDef) { return metrics; } -module.exports = { - computeMetrics, -}; +export { computeMetrics }; diff --git a/packages/validator/src/scoring-tool/get-title.js b/packages/validator/src/scoring-tool/get-title.js index e220153cc..a779934fe 100644 --- a/packages/validator/src/scoring-tool/get-title.js +++ b/packages/validator/src/scoring-tool/get-title.js @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache2.0 */ -const { basename } = require('node:path'); +import { basename } from 'node:path'; // Get the title for an API. function getTitle(apiDef, filename) { @@ -27,6 +27,4 @@ function getTitle(apiDef, filename) { return title; } -module.exports = { - getTitle, -}; +export { getTitle }; diff --git a/packages/validator/src/scoring-tool/index.js b/packages/validator/src/scoring-tool/index.js index 3c2898a1d..fa25a7a81 100644 --- a/packages/validator/src/scoring-tool/index.js +++ b/packages/validator/src/scoring-tool/index.js @@ -3,12 +3,12 @@ * SPDX-License-Identifier: Apache2.0 */ -const { +import { printCategorizedScoresTable, printScoringDataTable, -} = require('./output'); -const { scoreResults } = require('./score'); -const { computeMetrics } = require('./compute-metrics'); +} from './output.js'; +import { scoreResults } from './score.js'; +import { computeMetrics } from './compute-metrics.js'; async function produceQualityScore( validatorResults, @@ -32,7 +32,4 @@ function printScoreTables({ config }, { qualityScore }) { console.log(); } -module.exports = { - produceQualityScore, - printScoreTables, -}; +export { produceQualityScore, printScoreTables }; diff --git a/packages/validator/src/scoring-tool/metrics.js b/packages/validator/src/scoring-tool/metrics.js index 1d8d5db9c..563d85848 100644 --- a/packages/validator/src/scoring-tool/metrics.js +++ b/packages/validator/src/scoring-tool/metrics.js @@ -3,11 +3,9 @@ * SPDX-License-Identifier: Apache2.0 */ -const { - validateNestedSchemas, -} = require('@ibm-cloud/openapi-ruleset-utilities'); -const { Resolver } = require('@stoplight/spectral-ref-resolver'); -const Nimma = require('nimma').default; +import { validateNestedSchemas } from '@ibm-cloud/openapi-ruleset-utilities'; +import { Resolver } from '@stoplight/spectral-ref-resolver'; +import Nimma from 'nimma'; class Metrics { // Holds the callback functions to be paired with each JSONPath. @@ -194,6 +192,4 @@ class Metrics { } } -module.exports = { - Metrics, -}; +export { Metrics }; diff --git a/packages/validator/src/scoring-tool/output.js b/packages/validator/src/scoring-tool/output.js index 4e22b610e..287c1a98c 100644 --- a/packages/validator/src/scoring-tool/output.js +++ b/packages/validator/src/scoring-tool/output.js @@ -3,8 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { Table } = require('console-table-printer'); -const { getCategories } = require('./categories'); +import { Table } from 'console-table-printer'; +import { getCategories } from './categories.js'; // Print out a table summarizing the max score for each category. // category | max score @@ -56,7 +56,4 @@ function printScoringDataTable({ scoringData }) { table.printTable(); } -module.exports = { - printCategorizedScoresTable, - printScoringDataTable, -}; +export { printCategorizedScoresTable, printScoringDataTable }; diff --git a/packages/validator/src/scoring-tool/rubric.js b/packages/validator/src/scoring-tool/rubric.js index 24c238540..53bf852a8 100644 --- a/packages/validator/src/scoring-tool/rubric.js +++ b/packages/validator/src/scoring-tool/rubric.js @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache2.0 */ -module.exports = { +export default { 'ibm-accept-and-return-models': { coefficient: 3, denominator: 'operations', diff --git a/packages/validator/src/scoring-tool/score.js b/packages/validator/src/scoring-tool/score.js index a0143e412..6d2995af5 100644 --- a/packages/validator/src/scoring-tool/score.js +++ b/packages/validator/src/scoring-tool/score.js @@ -3,8 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { getCategories, getCategoryCoefficient } = require('./categories'); -const rubric = require('./rubric'); +import { getCategories, getCategoryCoefficient } from './categories.js'; +import rubric from './rubric.js'; /** * Uses the validator results to calculate categorized demerits for each rule @@ -15,7 +15,7 @@ const rubric = require('./rubric'); * @param object logger - the root logger from the validator context * @returns void */ -function scoreResults(result, metrics, logger) { +export function scoreResults(result, metrics, logger) { // The `talliedResults` variable contains an object where each key is the name // of a validator rule and each value is an object that contains a "count" field // representing how many times the validator rule was violated by the given API. @@ -77,7 +77,7 @@ function scoreResults(result, metrics, logger) { } // Calculate the numerical demerit severity for each rule. -function compute(rule, count, metrics) { +export function compute(rule, count, metrics) { let denom = 1; let coef = 1; @@ -92,7 +92,7 @@ function compute(rule, count, metrics) { return (coef * count) / denom; } -function computeCategorizedScores(rule, count, metrics) { +export function computeCategorizedScores(rule, count, metrics) { const baseScore = compute(rule, count, metrics); // Initialize categories to zero to see "0" values in table. const result = {}; @@ -106,7 +106,7 @@ function computeCategorizedScores(rule, count, metrics) { } // Show the user the formula used to calculate the demerit, as a string. -function getFunc(rule, count) { +export function getFunc(rule, count) { let func = String(count); if (rule.coefficient !== undefined) { @@ -123,7 +123,7 @@ function getFunc(rule, count) { // Tally up the number of occurances for each rule present in the results. // Returns an object where the keys are rule names and the values are objects // with the total stored under the field name "count". -function tally(result, logger) { +export function tally(result, logger) { const results = [...result.error.results, ...result.warning.results]; return results.reduce((tallies, result) => { @@ -151,7 +151,7 @@ function tally(result, logger) { // that it couldn't go below zero. The thing that's kind of arbitrary // is the "/40", which is just scaling the input subjectively — it's // a number we will keep tuning alongside tuning the demerit coefficients. -function computeOverallScore(demeritSum) { +export function computeOverallScore(demeritSum) { return includeDecimals( 100 - (100 * Math.atan(demeritSum / 40)) / Math.asin(1), 0 @@ -163,13 +163,3 @@ function computeOverallScore(demeritSum) { function includeDecimals(value, number) { return parseFloat(value.toFixed(number)); } - -module.exports = { - scoreResults, - // The following functions are only exported for testing purposes. - compute, - computeCategorizedScores, - getFunc, - tally, - computeOverallScore, -}; diff --git a/packages/validator/src/spectral/index.js b/packages/validator/src/spectral/index.js index 864fa0e92..6ded030cc 100644 --- a/packages/validator/src/spectral/index.js +++ b/packages/validator/src/spectral/index.js @@ -3,22 +3,22 @@ * SPDX-License-Identifier: Apache2.0 */ -const { Document, Spectral } = require('@stoplight/spectral-core'); -const Parsers = require('@stoplight/spectral-parsers'); -const { - getRuleset, -} = require('@stoplight/spectral-cli/dist/services/linter/utils/getRuleset'); -const ibmRuleset = require('@ibm-cloud/openapi-ruleset'); -const { Resolver } = require('@stoplight/spectral-ref-resolver'); -const { resolveFile } = require('@stoplight/json-ref-readers'); - -const { +import SpectralCore from '@stoplight/spectral-core'; +import SpectralParsers from '@stoplight/spectral-parsers'; +import { getRuleset } from '@stoplight/spectral-cli/dist/services/linter/utils/getRuleset.js'; +import * as ibmRuleset from '@ibm-cloud/openapi-ruleset'; +import { Resolver } from '@stoplight/spectral-ref-resolver'; +import resolveFile from '@stoplight/json-ref-readers'; +const { Json, Yaml } = SpectralParsers; +const { Document, Spectral } = SpectralCore; + +import { checkRulesetVersion, getFileExtension, getLocalRulesetVersion, -} = require('../cli-validator/utils'); +} from '../cli-validator/utils/index.js'; -const { findSpectralRuleset, splitMessage } = require('./utils'); +import { findSpectralRuleset, splitMessage } from './utils.js'; /** * Creates a Spectral document from the input, runs spectral, converts the results @@ -36,9 +36,9 @@ const runSpectral = async function ({ originalFile, validFile }, context) { const spectral = await setup(context); const fileExtension = getFileExtension(validFile); - let parser = Parsers.Json; + let parser = Json; if (['yaml', 'yml'].includes(fileExtension)) { - parser = Parsers.Yaml; + parser = Yaml; } const doc = new Document(originalFile, parser, validFile); @@ -172,9 +172,7 @@ async function setup({ config, logger }) { return spectral; } -module.exports = { - runSpectral, -}; +export { runSpectral }; function checkGetRulesetError(logger, error, file) { const isAggregateError = error instanceof AggregateError; diff --git a/packages/validator/src/spectral/utils.js b/packages/validator/src/spectral/utils.js index db0188606..877da2617 100644 --- a/packages/validator/src/spectral/utils.js +++ b/packages/validator/src/spectral/utils.js @@ -3,18 +3,13 @@ * SPDX-License-Identifier: Apache2.0 */ -const findUp = require('find-up'); +import findUp from 'find-up'; // A colon only separates base from detail when followed by whitespace or the // end of the message, so colons embedded in paths ('/v1/things:batch') or // URLs ('https://...') are not treated as separators. const SEPARATOR = /:(?:\s|$)/; -module.exports = { - findSpectralRuleset, - splitMessage, -}; - /** * Checks the user configuration and the file system for local * Spectral config file (aka a local ruleset). If not found, @@ -24,7 +19,7 @@ module.exports = { * @param logger - the root logger instance * @returns string|null - the path to the local ruleset */ -async function findSpectralRuleset(config, logger) { +export async function findSpectralRuleset(config, logger) { // Spectral only supports reading a config file in the working directory, // but we support looking up the file path for the nearest file (if one exists). let rulesetFileOverride = config.ruleset; @@ -87,7 +82,7 @@ async function lookForSpectralRuleset() { * @param {string} message - the message to split * @returns {{ base: string, detail: string|null }} */ -function splitMessage(message) { +export function splitMessage(message) { const match = SEPARATOR.exec(message); if (!match) { return { base: message, detail: null }; diff --git a/packages/validator/test/cli-validator/tests/configuration-manager.test.js b/packages/validator/test/cli-validator/tests/configuration-manager.test.js index 37f332ab2..877e1d08c 100644 --- a/packages/validator/test/cli-validator/tests/configuration-manager.test.js +++ b/packages/validator/test/cli-validator/tests/configuration-manager.test.js @@ -3,12 +3,13 @@ * SPDX-License-Identifier: Apache2.0 */ -const { getCapturedText } = require('../../test-utils'); -const { +import { getCapturedText } from '../../test-utils'; +import { getDefaultConfig, loadConfig, processArgs, -} = require('../../../src/cli-validator/utils'); +} from '../../../src/cli-validator/utils'; +import { vi } from 'vitest'; // Use these parse options since we're not actually retrieving process args. const cliParseOptions = { from: 'user' }; @@ -20,7 +21,7 @@ describe('Configuration Manager tests', function () { const originalInfo = console.info; beforeEach(() => { - consoleSpy = jest.spyOn(console, 'log').mockImplementation(() => {}); + consoleSpy = vi.spyOn(console, 'log').mockImplementation(() => {}); console.warn = console.log; console.error = console.log; console.info = console.log; @@ -136,7 +137,7 @@ describe('Configuration Manager tests', function () { // originalError(`Captured text: ${JSON.stringify(capturedText, null, 2)}`); expect(capturedText).toHaveLength(2); expect(capturedText[0]).toMatch( - /\[ERROR\] Unable to load config file.*SyntaxError:/ + /\[ERROR\] Unable to load config file.*Error:/ ); expect(capturedText[1]).toMatch( /The validator will use a default config/ diff --git a/packages/validator/test/cli-validator/tests/error-handling.test.js b/packages/validator/test/cli-validator/tests/error-handling.test.js index b3f85eb3d..fc166290c 100644 --- a/packages/validator/test/cli-validator/tests/error-handling.test.js +++ b/packages/validator/test/cli-validator/tests/error-handling.test.js @@ -3,7 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { getCapturedText, testValidator } = require('../../test-utils'); +import { vi } from 'vitest'; +import { getCapturedText, testValidator } from '../../test-utils'; describe('cli tool - test error handling', function () { let consoleSpy; @@ -12,7 +13,7 @@ describe('cli tool - test error handling', function () { const originalInfo = console.info; beforeEach(() => { - consoleSpy = jest.spyOn(console, 'log').mockImplementation(() => {}); + consoleSpy = vi.spyOn(console, 'log').mockImplementation(() => {}); console.warn = console.log; console.error = console.log; console.info = console.log; diff --git a/packages/validator/test/cli-validator/tests/expected-output.test.js b/packages/validator/test/cli-validator/tests/expected-output.test.js index 15d981208..c1cbb8da3 100644 --- a/packages/validator/test/cli-validator/tests/expected-output.test.js +++ b/packages/validator/test/cli-validator/tests/expected-output.test.js @@ -3,7 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { getCapturedText, testValidator } = require('../../test-utils'); +import { vi } from 'vitest'; +import { getCapturedText, testValidator } from '../../test-utils'; describe('Expected output tests', function () { let consoleSpy; @@ -12,7 +13,7 @@ describe('Expected output tests', function () { const originalInfo = console.info; beforeEach(() => { - consoleSpy = jest.spyOn(console, 'log').mockImplementation(() => {}); + consoleSpy = vi.spyOn(console, 'log').mockImplementation(() => {}); console.warn = console.log; console.error = console.log; console.info = console.log; diff --git a/packages/validator/test/cli-validator/tests/option-handling.test.js b/packages/validator/test/cli-validator/tests/option-handling.test.js index bb90f007f..97c184812 100644 --- a/packages/validator/test/cli-validator/tests/option-handling.test.js +++ b/packages/validator/test/cli-validator/tests/option-handling.test.js @@ -3,21 +3,22 @@ * SPDX-License-Identifier: Apache2.0 */ -const { existsSync, unlinkSync } = require('fs'); +import { existsSync, unlinkSync } from 'fs'; -const { +import { extractValuesFromTable, getCapturedText, getCapturedTextWithColor, stripAnsi, testValidator, -} = require('../../test-utils'); +} from '../../test-utils'; -const { +import { getCopyrightString, readYaml, validateSchema, -} = require('../../../src/cli-validator/utils'); +} from '../../../src/cli-validator/utils'; +import { vi } from 'vitest'; describe('cli tool - test option handling', function () { let consoleSpy; @@ -27,7 +28,7 @@ describe('cli tool - test option handling', function () { const copyrightString = getCopyrightString(); beforeEach(() => { - consoleSpy = jest.spyOn(console, 'log').mockImplementation(() => {}); + consoleSpy = vi.spyOn(console, 'log').mockImplementation(() => {}); console.warn = console.log; console.error = console.log; console.info = console.log; diff --git a/packages/validator/test/cli-validator/tests/print-results.test.js b/packages/validator/test/cli-validator/tests/print-results.test.js index a8bb2f790..f6b20796d 100644 --- a/packages/validator/test/cli-validator/tests/print-results.test.js +++ b/packages/validator/test/cli-validator/tests/print-results.test.js @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache2.0 */ -const printResults = require('../../../src/cli-validator/utils/print-results'); +import printResults from '../../../src/cli-validator/utils/print-results'; const identity = s => s; const chalk = { @@ -43,7 +43,7 @@ describe('print-results tests', function () { let logSpy; beforeEach(function () { - logSpy = jest.spyOn(console, 'log').mockImplementation(() => {}); + logSpy = vi.spyOn(console, 'log').mockImplementation(() => {}); }); afterEach(function () { diff --git a/packages/validator/test/cli-validator/tests/run-validator.test.js b/packages/validator/test/cli-validator/tests/run-validator.test.js index 53a02f7e6..d3745a2b2 100644 --- a/packages/validator/test/cli-validator/tests/run-validator.test.js +++ b/packages/validator/test/cli-validator/tests/run-validator.test.js @@ -3,7 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { getCapturedText, testValidator } = require('../../test-utils'); +import { vi } from 'vitest'; +import { getCapturedText, testValidator } from '../../test-utils'; describe('run-validator tests', function () { let consoleSpy; @@ -12,7 +13,7 @@ describe('run-validator tests', function () { const originalInfo = console.info; beforeEach(() => { - consoleSpy = jest.spyOn(console, 'log').mockImplementation(() => {}); + consoleSpy = vi.spyOn(console, 'log').mockImplementation(() => {}); console.warn = console.log; console.error = console.log; console.info = console.log; @@ -102,7 +103,8 @@ describe('run-validator tests', function () { const allOutput = capturedText.join(''); expect(allOutput).toMatch(/Unable to load config file/); - expect(allOutput).toMatch(/SyntaxError: Unexpected token/); + expect(allOutput).toMatch(/SyntaxError: /); + expect(allOutput).toMatch(/: Unexpected token/); expect(allOutput).toMatch(/validator will use a default config/); }); }); diff --git a/packages/validator/test/cli-validator/tests/utils/read-yaml.test.js b/packages/validator/test/cli-validator/tests/utils/read-yaml.test.js index 47cfdd214..889a23e06 100644 --- a/packages/validator/test/cli-validator/tests/utils/read-yaml.test.js +++ b/packages/validator/test/cli-validator/tests/utils/read-yaml.test.js @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache2.0 */ -const { readYaml } = require('../../../../src/cli-validator/utils'); +import { readYaml } from '../../../../src/cli-validator/utils'; describe('Read YAML tests', function () { it('should read a yaml file and return an object representing the contents', async () => { diff --git a/packages/validator/test/cli-validator/tests/utils/schema-validator.test.js b/packages/validator/test/cli-validator/tests/utils/schema-validator.test.js index 585951636..70bdc0382 100644 --- a/packages/validator/test/cli-validator/tests/utils/schema-validator.test.js +++ b/packages/validator/test/cli-validator/tests/utils/schema-validator.test.js @@ -3,10 +3,10 @@ * SPDX-License-Identifier: Apache2.0 */ -const { +import { getConfigFileSchema, validateSchema, -} = require('../../../../src/cli-validator/utils'); +} from '../../../../src/cli-validator/utils'; describe('Schema validator tests', function () { let configFileSchema; diff --git a/packages/validator/test/markdown-report/markdown-table.test.js b/packages/validator/test/markdown-report/markdown-table.test.js index a8c863bbb..9432afd2e 100644 --- a/packages/validator/test/markdown-report/markdown-table.test.js +++ b/packages/validator/test/markdown-report/markdown-table.test.js @@ -3,7 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const MarkdownTable = require('../../src/markdown-report/markdown-table'); +import { vi } from 'vitest'; +import MarkdownTable from '../../src/markdown-report/markdown-table.js'; describe('MarkdownTable tests', function () { it('constructor creates new instance of MarkdownTable', function () { @@ -22,7 +23,7 @@ describe('MarkdownTable tests', function () { }); it('addRow logs an error if it receives a bad number of arguments', function () { - const consoleErrorSpy = jest + const consoleErrorSpy = vi .spyOn(console, 'error') .mockImplementation(() => {}); const table = new MarkdownTable('exactly', 'two'); diff --git a/packages/validator/test/markdown-report/report.test.js b/packages/validator/test/markdown-report/report.test.js index 47210ba6a..cec2a30f1 100644 --- a/packages/validator/test/markdown-report/report.test.js +++ b/packages/validator/test/markdown-report/report.test.js @@ -3,8 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const getReport = require('../../src/markdown-report/report'); -const validatorResults = require('../test-utils/mock-json-output.json'); +import getReport from '../../src/markdown-report/report'; +import validatorResults from '../test-utils/mock-json-output.json'; describe('getReport tests', function () { it('should create a markdown report from the results', function () { diff --git a/packages/validator/test/markdown-report/tables/categorized-scores.test.js b/packages/validator/test/markdown-report/tables/categorized-scores.test.js index 9020ab39b..eca925912 100644 --- a/packages/validator/test/markdown-report/tables/categorized-scores.test.js +++ b/packages/validator/test/markdown-report/tables/categorized-scores.test.js @@ -3,8 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { categorizedScores } = require('../../../src/markdown-report/tables'); -const validatorResults = require('../../test-utils/mock-json-output.json'); +import { categorizedScores } from '../../../src/markdown-report/tables'; +import validatorResults from '../../test-utils/mock-json-output.json'; describe('categorizedScores table tests', function () { it('should produce a table with categorized scores from the results', function () { diff --git a/packages/validator/test/markdown-report/tables/primary.test.js b/packages/validator/test/markdown-report/tables/primary.test.js index 124f88955..888097447 100644 --- a/packages/validator/test/markdown-report/tables/primary.test.js +++ b/packages/validator/test/markdown-report/tables/primary.test.js @@ -3,8 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { primary } = require('../../../src/markdown-report/tables'); -const validatorResults = require('../../test-utils/mock-json-output.json'); +import { primary } from '../../../src/markdown-report/tables'; +import validatorResults from '../../test-utils/mock-json-output.json'; describe('primary table tests', function () { it('should produce a table with the primary data from the results', function () { diff --git a/packages/validator/test/markdown-report/tables/rule-violation-details.test.js b/packages/validator/test/markdown-report/tables/rule-violation-details.test.js index 666ffe53d..f031e942a 100644 --- a/packages/validator/test/markdown-report/tables/rule-violation-details.test.js +++ b/packages/validator/test/markdown-report/tables/rule-violation-details.test.js @@ -3,8 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { ruleViolationDetails } = require('../../../src/markdown-report/tables'); -const validatorResults = require('../../test-utils/mock-json-output.json'); +import { ruleViolationDetails } from '../../../src/markdown-report/tables'; +import validatorResults from '../../test-utils/mock-json-output.json'; describe('ruleViolationDetails table tests', function () { it('should produce grouped sections for errors and warnings', function () { diff --git a/packages/validator/test/markdown-report/tables/rule-violation-summary.test.js b/packages/validator/test/markdown-report/tables/rule-violation-summary.test.js index 211781747..c2327fcf5 100644 --- a/packages/validator/test/markdown-report/tables/rule-violation-summary.test.js +++ b/packages/validator/test/markdown-report/tables/rule-violation-summary.test.js @@ -3,11 +3,11 @@ * SPDX-License-Identifier: Apache2.0 */ -const { +import { errorSummary, warningSummary, -} = require('../../../src/markdown-report/tables'); -const validatorResults = require('../../test-utils/mock-json-output.json'); +} from '../../../src/markdown-report/tables'; +import validatorResults from '../../test-utils/mock-json-output.json'; describe('ruleViolationSummary table tests', function () { it('should produce a table with a summary of the error results', function () { diff --git a/packages/validator/test/markdown-report/tables/scoring-data.test.js b/packages/validator/test/markdown-report/tables/scoring-data.test.js index 123282f3a..9241844fa 100644 --- a/packages/validator/test/markdown-report/tables/scoring-data.test.js +++ b/packages/validator/test/markdown-report/tables/scoring-data.test.js @@ -3,8 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { scoringData } = require('../../../src/markdown-report/tables'); -const validatorResults = require('../../test-utils/mock-json-output.json'); +import { scoringData } from '../../../src/markdown-report/tables'; +import validatorResults from '../../test-utils/mock-json-output.json'; describe('scoringData table tests', function () { it('should produce a table with scoring information from the results', function () { diff --git a/packages/validator/test/markdown-report/write-file.test.js b/packages/validator/test/markdown-report/write-file.test.js index 623358cd0..cd315a9ed 100644 --- a/packages/validator/test/markdown-report/write-file.test.js +++ b/packages/validator/test/markdown-report/write-file.test.js @@ -3,8 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -const { existsSync, readFileSync, unlinkSync } = require('fs'); -const writeReportToFile = require('../../src/markdown-report/write-file'); +import { existsSync, readFileSync, unlinkSync } from 'fs'; +import writeReportToFile from '../../src/markdown-report/write-file'; describe('writeReportToFile tests', function () { const baseFilename = 'test-api-def-file'; diff --git a/packages/validator/test/scoring-tool/categories.test.js b/packages/validator/test/scoring-tool/categories.test.js index 2bf78022a..3d3182352 100644 --- a/packages/validator/test/scoring-tool/categories.test.js +++ b/packages/validator/test/scoring-tool/categories.test.js @@ -3,10 +3,10 @@ * SPDX-License-Identifier: Apache2.0 */ -const { +import { getCategories, getCategoryCoefficient, -} = require('../../src/scoring-tool/categories'); +} from '../../src/scoring-tool/categories'; describe('scoring-tool categories tests', function () { it('should return the list of supported categories', function () { diff --git a/packages/validator/test/scoring-tool/compute-metrics.test.js b/packages/validator/test/scoring-tool/compute-metrics.test.js index 231e9a277..46826efde 100644 --- a/packages/validator/test/scoring-tool/compute-metrics.test.js +++ b/packages/validator/test/scoring-tool/compute-metrics.test.js @@ -3,10 +3,10 @@ * SPDX-License-Identifier: Apache2.0 */ -const { readFile } = require('node:fs/promises'); -const readYaml = require('js-yaml'); -const { computeMetrics } = require('../../src/scoring-tool/compute-metrics'); -const rubric = require('../../src/scoring-tool/rubric'); +import { readFile } from 'node:fs/promises'; +import { load } from 'js-yaml'; +import { computeMetrics } from '../../src/scoring-tool/compute-metrics'; +import rubric from '../../src/scoring-tool/rubric'; describe('scoring-tool compute-metrics tests', function () { let metrics; @@ -14,7 +14,7 @@ describe('scoring-tool compute-metrics tests', function () { beforeAll(async function () { const fileToTest = `${__dirname}/../cli-validator/mock-files/oas3/clean.yml`; const contents = await readFile(fileToTest, { encoding: 'utf8' }); - const apiDef = readYaml.load(contents); + const apiDef = load(contents); metrics = await computeMetrics(apiDef); }); diff --git a/packages/validator/test/scoring-tool/get-title.test.js b/packages/validator/test/scoring-tool/get-title.test.js index 47d527f8d..4780af632 100644 --- a/packages/validator/test/scoring-tool/get-title.test.js +++ b/packages/validator/test/scoring-tool/get-title.test.js @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache2.0 */ -const { getTitle } = require('../../src/scoring-tool/get-title'); +import { getTitle } from '../../src/scoring-tool/get-title'; describe('scoring-tool get-title tests', function () { it('should use title from info object and version if present', function () { diff --git a/packages/validator/test/scoring-tool/metrics.test.js b/packages/validator/test/scoring-tool/metrics.test.js index f8b19f26c..363a84522 100644 --- a/packages/validator/test/scoring-tool/metrics.test.js +++ b/packages/validator/test/scoring-tool/metrics.test.js @@ -3,10 +3,11 @@ * SPDX-License-Identifier: Apache2.0 */ -const { readFile } = require('node:fs/promises'); -const readYaml = require('js-yaml'); -const { collections } = require('@ibm-cloud/openapi-ruleset-utilities'); -const { Metrics } = require('../../src/scoring-tool/metrics'); +import { readFile } from 'node:fs/promises'; +import { load } from 'js-yaml'; +import { collections } from '@ibm-cloud/openapi-ruleset-utilities'; +import { Metrics } from '../../src/scoring-tool/metrics'; +import { vi } from 'vitest'; describe('scoring-tool metrics tests', function () { let apiDef; @@ -14,7 +15,7 @@ describe('scoring-tool metrics tests', function () { beforeAll(async function () { const fileToTest = `${__dirname}/../cli-validator/mock-files/oas3/clean.yml`; const contents = await readFile(fileToTest, { encoding: 'utf8' }); - apiDef = readYaml.load(contents); + apiDef = load(contents); }); it('should initialize members in constructor', function () { @@ -30,7 +31,7 @@ describe('scoring-tool metrics tests', function () { const metricName = 'paths'; const jsonPaths = collections.paths; const metrics = new Metrics(apiDef); - const countEveryInstance = jest.fn(() => true); + const countEveryInstance = vi.fn(() => true); const input = { value: '', path: '' }; metrics.register(metricName, jsonPaths, countEveryInstance); @@ -50,7 +51,7 @@ describe('scoring-tool metrics tests', function () { const metricName = 'paths'; const jsonPaths = collections.paths; const metrics = new Metrics(apiDef); - const countEveryInstance = jest.fn(() => true); + const countEveryInstance = vi.fn(() => true); const input = { value: { type: 'object', @@ -87,7 +88,7 @@ describe('scoring-tool metrics tests', function () { const metricName = 'paths'; const jsonPaths = collections.paths; const metrics = new Metrics(apiDef); - const countEveryInstance = jest.fn(() => true); + const countEveryInstance = vi.fn(() => true); expect(metrics.counts).toEqual({}); expect(metrics.collectedArtifacts).toEqual({}); @@ -125,7 +126,7 @@ describe('scoring-tool metrics tests', function () { const metrics = new Metrics(apiDef); const metricName = 'paths'; const jsonPaths = collections.paths; - const countEveryInstance = jest.fn(() => true); + const countEveryInstance = vi.fn(() => true); const input = { value: '', path: '' }; expect(metrics.counts[metricName]).toBeUndefined(); @@ -151,7 +152,7 @@ describe('scoring-tool metrics tests', function () { const metricName = 'paths'; const mockPath = '/v1/my-path'; const mockPathObject = { get: 'my-operation' }; - const mockCondition = jest.fn(() => true); + const mockCondition = vi.fn(() => true); // These would be initialized by a different method, fake it here. metrics.initializeMetric(metricName); @@ -177,7 +178,7 @@ describe('scoring-tool metrics tests', function () { const metricName = 'paths'; const mockPath = '/v1/my-path'; const mockPathObject = { get: 'my-operation' }; - const mockCondition = jest.fn(() => false); + const mockCondition = vi.fn(() => false); // These would be initialized by a different method, fake it here. metrics.initializeMetric(metricName); @@ -203,7 +204,7 @@ describe('scoring-tool metrics tests', function () { const metricName = 'paths'; const mockPath = '/v1/my-path'; const mockPathObject = { get: 'my-operation' }; - const mockCondition = jest.fn(() => true); + const mockCondition = vi.fn(() => true); // These would be initialized by a different method, fake it here. metrics.initializeMetric(metricName); diff --git a/packages/validator/test/scoring-tool/output.test.js b/packages/validator/test/scoring-tool/output.test.js index c2a4697fb..173f1c2e8 100644 --- a/packages/validator/test/scoring-tool/output.test.js +++ b/packages/validator/test/scoring-tool/output.test.js @@ -3,17 +3,18 @@ * SPDX-License-Identifier: Apache2.0 */ -const { extractValuesFromTable } = require('../test-utils'); -const { +import { extractValuesFromTable } from '../test-utils'; +import { printCategorizedScoresTable, printScoringDataTable, -} = require('../../src/scoring-tool/output'); +} from '../../src/scoring-tool/output'; +import { vi } from 'vitest'; describe('scoring-tool output tests', function () { let consoleSpy; beforeEach(() => { - consoleSpy = jest.spyOn(console, 'log').mockImplementation(() => {}); + consoleSpy = vi.spyOn(console, 'log').mockImplementation(() => {}); }); afterEach(() => { diff --git a/packages/validator/test/scoring-tool/rubric.test.js b/packages/validator/test/scoring-tool/rubric.test.js index 0e5a0f927..4c191f3d0 100644 --- a/packages/validator/test/scoring-tool/rubric.test.js +++ b/packages/validator/test/scoring-tool/rubric.test.js @@ -3,19 +3,19 @@ * SPDX-License-Identifier: Apache2.0 */ -const path = require('path'); -const { getCategories } = require('../../src/scoring-tool/categories'); -const readYaml = require('../../src/cli-validator/utils/read-yaml.js'); -const rubric = require('../../src/scoring-tool/rubric'); -const validateSchema = require('../../src/cli-validator/utils/validate-schema'); +import { join } from 'path'; +import { getCategories } from '../../src/scoring-tool/categories'; +import readYaml from '../../src/cli-validator/utils/read-yaml.js'; +import rubric from '../../src/scoring-tool/rubric'; +import validateSchema from '../../src/cli-validator/utils/validate-schema'; -const ibmRuleset = require('@ibm-cloud/openapi-ruleset'); +import { rules } from '@ibm-cloud/openapi-ruleset'; describe('scoring-tool rubric tests', function () { it('should define entries that have a valid structure', async function () { // Read in the rubric entry schema in order to validate each entry. const rubricEntrySchema = await readYaml( - path.join(__dirname, '../../src/schemas/rubric-entry.yaml') + join(__dirname, '../../src/schemas/rubric-entry.yaml') ); Object.values(rubric).forEach(entry => { @@ -53,8 +53,8 @@ describe('scoring-tool rubric tests', function () { 'oas2-unused-definition', ]; - Object.keys(ibmRuleset.rules).forEach(rule => { - if (!ignoredRules.includes(rule) && ibmRuleset.rules[rule] !== 'off') { + Object.keys(rules).forEach(rule => { + if (!ignoredRules.includes(rule) && rules[rule] !== 'off') { expect(Object.keys(rubric)).toContain(rule); } }); diff --git a/packages/validator/test/scoring-tool/score.test.js b/packages/validator/test/scoring-tool/score.test.js index 83942cdc5..ae72015fc 100644 --- a/packages/validator/test/scoring-tool/score.test.js +++ b/packages/validator/test/scoring-tool/score.test.js @@ -3,19 +3,20 @@ * SPDX-License-Identifier: Apache2.0 */ -const { +import { scoreResults, compute, computeCategorizedScores, getFunc, tally, computeOverallScore, -} = require('../../src/scoring-tool/score'); +} from '../../src/scoring-tool/score'; -const { Metrics } = require('../../src/scoring-tool/metrics'); +import { Metrics } from '../../src/scoring-tool/metrics'; +import { vi } from 'vitest'; describe('scoring-tool score tests', function () { - const debug = jest.fn(); + const debug = vi.fn(); const mockLogger = { debug }; const metrics = new Metrics(); // Fake the metrics by hardcoding the metadata. diff --git a/packages/validator/test/spectral/utils.test.js b/packages/validator/test/spectral/utils.test.js index c980dce32..664a25cd1 100644 --- a/packages/validator/test/spectral/utils.test.js +++ b/packages/validator/test/spectral/utils.test.js @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache2.0 */ -const { splitMessage } = require('../../src/spectral/utils'); +import { splitMessage } from '../../src/spectral/utils'; describe('Spectral utils tests', function () { describe('splitMessage', function () { diff --git a/packages/validator/test/test-utils/get-captured-text.js b/packages/validator/test/test-utils/get-captured-text.js index 43ad05d27..92769a4a6 100644 --- a/packages/validator/test/test-utils/get-captured-text.js +++ b/packages/validator/test/test-utils/get-captured-text.js @@ -3,13 +3,15 @@ * SPDX-License-Identifier: Apache2.0 */ -const { stripAnsi } = require('./strip-ansi'); +import { stripAnsi } from './strip-ansi'; -module.exports.getCapturedText = callsToLog => - formatCapturedText(callsToLog, false); +export function getCapturedText(callsToLog) { + return formatCapturedText(callsToLog, false); +} -module.exports.getCapturedTextWithColor = callsToLog => - formatCapturedText(callsToLog, true); +export function getCapturedTextWithColor(callsToLog) { + return formatCapturedText(callsToLog, true); +} function formatCapturedText(callsToLog, preserveColors) { return callsToLog.map(args => { diff --git a/packages/validator/test/test-utils/get-message-and-path-from-captured-text.js b/packages/validator/test/test-utils/get-message-and-path-from-captured-text.js index 2f25142af..2277112e4 100644 --- a/packages/validator/test/test-utils/get-message-and-path-from-captured-text.js +++ b/packages/validator/test/test-utils/get-message-and-path-from-captured-text.js @@ -3,8 +3,8 @@ * SPDX-License-Identifier: Apache2.0 */ -module.exports.getMessageAndPathFromCapturedText = - getMessageAndPathFromCapturedText; +const _getMessageAndPathFromCapturedText = getMessageAndPathFromCapturedText; +export { _getMessageAndPathFromCapturedText as getMessageAndPathFromCapturedText }; function getMessageAndPathFromCapturedText(pattern, capturedText) { const messages = []; diff --git a/packages/validator/test/test-utils/index.js b/packages/validator/test/test-utils/index.js index c2ebafbba..521c1f6bd 100644 --- a/packages/validator/test/test-utils/index.js +++ b/packages/validator/test/test-utils/index.js @@ -3,11 +3,14 @@ * SPDX-License-Identifier: Apache2.0 */ -module.exports = { - testValidator: require('./test-validator'), - ...require('./get-captured-text'), - ...require('./get-captured-text'), - ...require('./get-message-and-path-from-captured-text'), - ...require('./strip-ansi'), - ...require('./parse-scoring-table'), -}; +export { default as testValidator } from './test-validator.js'; +export { + getCapturedText, + getCapturedTextWithColor, +} from './get-captured-text.js'; +export { getMessageAndPathFromCapturedText } from './get-message-and-path-from-captured-text.js'; +export { stripAnsi } from './strip-ansi.js'; +export { + default as parseScoringTable, + extractValuesFromTable, +} from './parse-scoring-table.js'; diff --git a/packages/validator/test/test-utils/parse-scoring-table.js b/packages/validator/test/test-utils/parse-scoring-table.js index db4ef2f0a..071a4bcb3 100644 --- a/packages/validator/test/test-utils/parse-scoring-table.js +++ b/packages/validator/test/test-utils/parse-scoring-table.js @@ -17,6 +17,4 @@ function extractValuesFromTable(table) { ); } -module.exports = { - extractValuesFromTable, -}; +export { extractValuesFromTable }; diff --git a/packages/validator/test/test-utils/strip-ansi.js b/packages/validator/test/test-utils/strip-ansi.js index 5d932f2d2..327dda908 100644 --- a/packages/validator/test/test-utils/strip-ansi.js +++ b/packages/validator/test/test-utils/strip-ansi.js @@ -1,4 +1,4 @@ -const ansiRegex = require('ansi-regex'); +import ansiRegex from 'ansi-regex'; const regex = ansiRegex(); @@ -13,4 +13,5 @@ function stripAnsi(string) { return string.replace(regex, ''); } -module.exports.stripAnsi = stripAnsi; +const _stripAnsi = stripAnsi; +export { _stripAnsi as stripAnsi }; diff --git a/packages/validator/test/test-utils/test-validator.js b/packages/validator/test/test-utils/test-validator.js index c446a3c7f..e9ba8f26d 100644 --- a/packages/validator/test/test-utils/test-validator.js +++ b/packages/validator/test/test-utils/test-validator.js @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache2.0 */ -const runValidator = require('../../src/cli-validator/run-validator'); +import runValidator from '../../src/cli-validator/run-validator'; /** * This function is used by testcases to run the validator via CLI options. @@ -19,4 +19,4 @@ async function testValidator(cliArgs) { return runValidator(cliArgs, { from: 'user' }); } -module.exports = testValidator; +export default testValidator; diff --git a/packages/validator/vitest.config.js b/packages/validator/vitest.config.js new file mode 100644 index 000000000..5fd11ed42 --- /dev/null +++ b/packages/validator/vitest.config.js @@ -0,0 +1,23 @@ +import { defineConfig } from 'vitest/config'; + +export default defineConfig({ + test: { + globals: true, + environment: 'node', + coverage: { + enabled: true, + reporter: ['text', 'json', 'html'], + reportsDirectory: './coverage/', + }, + }, + resolve: { + alias: { + 'nimma/legacy': '../../node_modules/@stoplight/spectral-core/node_modules/nimma/dist/legacy/cjs', + 'nimma/fallbacks': '../../node_modules/@stoplight/spectral-core/node_modules/nimma/dist/legacy/cjs/fallbacks/', + '@stoplight/spectral-ruleset-bundler/presets/node': '../../node_modules/@stoplight/spectral-ruleset-bundler/dist/presets/node', + '@stoplight/spectral-ruleset-bundler/plugins/stdin': '../../node_modules/@stoplight/spectral-ruleset-bundler/dist/plugins/stdin', + '@stoplight/spectral-ruleset-bundler/plugins/builtins': '../../node_modules/@stoplight/spectral-ruleset-bundler/dist/plugins/builtins', + '@stoplight/spectral-ruleset-bundler/plugins/commonjs': '../../node_modules/@stoplight/spectral-ruleset-bundler/dist/plugins/commonjs', + }, + }, +}); \ No newline at end of file diff --git a/scripts/generate-utilities-docs.js b/scripts/generate-utilities-docs.js index b6efab259..f27789e9b 100755 --- a/scripts/generate-utilities-docs.js +++ b/scripts/generate-utilities-docs.js @@ -1,8 +1,8 @@ #!/usr/bin/env node -const mustache = require('mustache'); -const { readFileSync, writeFileSync } = require('fs'); -const { execSync } = require('child_process'); +import mustache from 'mustache'; +import { readFileSync, writeFileSync } from 'fs'; +import { execSync } from 'child_process'; const template = readFileSync('scripts/templates/package.mustache', { encoding: 'utf8', @@ -17,7 +17,7 @@ const raw = JSON.parse( const docs = raw.filter(d => d.comment !== '' && d.access !== 'private'); -const package = docs.find(d => d.kind === 'module'); +const packageDoc = docs.find(d => d.kind === 'module'); const constants = docs .filter(d => d.kind === 'constant') @@ -50,6 +50,10 @@ const functions = docs })), })); -const rendered = mustache.render(template, { package, constants, functions }); +const rendered = mustache.render(template, { + package: packageDoc, + constants, + functions, +}); writeFileSync('docs/openapi-ruleset-utilities.md', rendered);