From 251bdf98975254028eb8aad0a1eb918779ef0361 Mon Sep 17 00:00:00 2001 From: Toan Nguyen Date: Wed, 11 Sep 2024 11:54:36 +0700 Subject: [PATCH] fix: module not found in @scaleleap/amazon-marketplaces (#1025) There was a bug in the `@scaleleap/amazon-marketplaces` package. Need to update to the latest version to fix this Closes #1023 --- .eslintrc.js | 6 +- package-lock.json | 546 ++++++++++++++------------------ package.json | 10 +- src/amazon-advertising.ts | 5 +- src/decorators.ts | 4 +- src/http-client.ts | 8 +- src/o-auth-client.ts | 5 +- src/operations/commons/types.ts | 2 +- src/operations/operation.ts | 6 +- test/o-auth-client.test.ts | 4 +- 10 files changed, 264 insertions(+), 332 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 2cb9208f2..daa96d779 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -19,14 +19,12 @@ module.exports = { 'eslint:recommended', 'plugin:@typescript-eslint/eslint-recommended', 'plugin:@typescript-eslint/recommended', - 'plugin:@typescript-eslint/recommended-requiring-type-checking', 'prettier', - 'prettier/@typescript-eslint', 'plugin:prettier/recommended' ], rules: { - '@typescript-eslint/explicit-function-return-type': ['off'], - '@typescript-eslint/camelcase': ['warn', { 'properties': 'always' }], + 'explicit-function-return-type': ['off'], + 'camelcase': ['warn', { 'properties': 'always' }], 'no-console': [1, { allow: ['warn', 'error'] }], 'curly': 'error' } diff --git a/package-lock.json b/package-lock.json index e25ddead3..8283d1e06 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "3.8.3", "license": "MIT", "dependencies": { - "@scaleleap/amazon-marketplaces": "^17.1.0", + "@scaleleap/amazon-marketplaces": "^18.0.1", "agentkeepalive": "4.5.0", "axios": "0.28.1", "client-oauth2": "4.3.3", @@ -24,13 +24,13 @@ "ts-error": "1.0.6" }, "devDependencies": { - "@microsoft/api-extractor": "7.47.1", + "@microsoft/api-extractor": "7.43.4", "@scaleleap/config": "2.0.8", "@scaleleap/jest-polly": "1.5.27", "@scaleleap/semantic-release-config": "1.1.41", "@types/jest": "27.4.0", "@types/lodash": "4.17.7", - "@types/node": "16.11.21", + "@types/node": "18.19.50", "@typescript-eslint/eslint-plugin": "7.16.1", "@typescript-eslint/parser": "7.16.1", "eslint": "9.9.0", @@ -38,7 +38,7 @@ "eslint-plugin-jest": "28.8.0", "eslint-plugin-prettier": "5.2.1", "jest": "26.6.3", - "prettier": "2.8.8", + "prettier": "3.3.3", "rimraf": "3.0.2", "ts-jest": "26.5.6", "ts-node": "10.9.2", @@ -1801,18 +1801,18 @@ "integrity": "sha512-F9JfqAF0rAZn9a4GeZb2E5i05vnm1BKmV6Qsw7a3BLsJiNV7Godh8jLBKPwb9xsc76Ew4U4Qx47S6mk/z/tS4g==" }, "node_modules/@microsoft/api-extractor": { - "version": "7.47.1", - "resolved": "https://registry.npmjs.org/@microsoft/api-extractor/-/api-extractor-7.47.1.tgz", - "integrity": "sha512-xfChgcNU5EBx5jayyOdl48xSP3na46TAPvnOZxvqfWOXUKa4Lz+iWiCZPTOgjw8NcrrD9a420cl6rSVYGwj5EA==", + "version": "7.43.4", + "resolved": "https://registry.npmjs.org/@microsoft/api-extractor/-/api-extractor-7.43.4.tgz", + "integrity": "sha512-HMzeVcTbzpiVvAUOnUVOxhPGPjOlPQQjiHVZy3fsXm6D5MUiEqX0OWEuupV8Ba3LM7h1Vk8xnNghlwpCkY73UA==", "dev": true, "dependencies": { - "@microsoft/api-extractor-model": "7.29.3", - "@microsoft/tsdoc": "~0.15.0", - "@microsoft/tsdoc-config": "~0.17.0", - "@rushstack/node-core-library": "5.5.0", + "@microsoft/api-extractor-model": "7.28.16", + "@microsoft/tsdoc": "0.14.2", + "@microsoft/tsdoc-config": "~0.16.1", + "@rushstack/node-core-library": "4.2.1", "@rushstack/rig-package": "0.5.2", - "@rushstack/terminal": "0.13.1", - "@rushstack/ts-command-line": "4.22.1", + "@rushstack/terminal": "0.10.3", + "@rushstack/ts-command-line": "4.19.5", "lodash": "~4.17.15", "minimatch": "~3.0.3", "resolve": "~1.22.1", @@ -1825,14 +1825,14 @@ } }, "node_modules/@microsoft/api-extractor-model": { - "version": "7.29.3", - "resolved": "https://registry.npmjs.org/@microsoft/api-extractor-model/-/api-extractor-model-7.29.3.tgz", - "integrity": "sha512-kEWjLr2ygL3ku9EGyjeTnL2S5IxyH9NaF1k1UoI0Nzwr4xEJBSWCVsWuF2+0lPUrRPA6mTY95fR264SJ5ETKQA==", + "version": "7.28.16", + "resolved": "https://registry.npmjs.org/@microsoft/api-extractor-model/-/api-extractor-model-7.28.16.tgz", + "integrity": "sha512-4/5gbW9zazr7hHHdv32QoCFDQl4vsrMOFp7g9k/uIQR2mn7AqQVN6NvNOAnFi1xwCM6X3K1BN1ZWf9ARF5hUmA==", "dev": true, "dependencies": { - "@microsoft/tsdoc": "~0.15.0", - "@microsoft/tsdoc-config": "~0.17.0", - "@rushstack/node-core-library": "5.5.0" + "@microsoft/tsdoc": "0.14.2", + "@microsoft/tsdoc-config": "~0.16.1", + "@rushstack/node-core-library": "4.2.1" } }, "node_modules/@microsoft/api-extractor/node_modules/minimatch": { @@ -1876,45 +1876,36 @@ } }, "node_modules/@microsoft/tsdoc": { - "version": "0.15.0", - "resolved": "https://registry.npmjs.org/@microsoft/tsdoc/-/tsdoc-0.15.0.tgz", - "integrity": "sha512-HZpPoABogPvjeJOdzCOSJsXeL/SMCBgBZMVC3X3d7YYp2gf31MfxhUoYUNwf1ERPJOnQc0wkFn9trqI6ZEdZuA==", + "version": "0.14.2", + "resolved": "https://registry.npmjs.org/@microsoft/tsdoc/-/tsdoc-0.14.2.tgz", + "integrity": "sha512-9b8mPpKrfeGRuhFH5iO1iwCLeIIsV6+H1sRfxbkoGXIyQE2BTsPd9zqSqQJ+pv5sJ/hT5M1zvOFL02MnEezFug==", "dev": true }, "node_modules/@microsoft/tsdoc-config": { - "version": "0.17.0", - "resolved": "https://registry.npmjs.org/@microsoft/tsdoc-config/-/tsdoc-config-0.17.0.tgz", - "integrity": "sha512-v/EYRXnCAIHxOHW+Plb6OWuUoMotxTN0GLatnpOb1xq0KuTNw/WI3pamJx/UbsoJP5k9MCw1QxvvhPcF9pH3Zg==", + "version": "0.16.2", + "resolved": "https://registry.npmjs.org/@microsoft/tsdoc-config/-/tsdoc-config-0.16.2.tgz", + "integrity": "sha512-OGiIzzoBLgWWR0UdRJX98oYO+XKGf7tiK4Zk6tQ/E4IJqGCe7dvkTvgDZV5cFJUzLGDOjeAXrnZoA6QkVySuxw==", "dev": true, "dependencies": { - "@microsoft/tsdoc": "0.15.0", - "ajv": "~8.12.0", + "@microsoft/tsdoc": "0.14.2", + "ajv": "~6.12.6", "jju": "~1.4.0", - "resolve": "~1.22.2" + "resolve": "~1.19.0" } }, - "node_modules/@microsoft/tsdoc-config/node_modules/ajv": { - "version": "8.12.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", - "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", + "node_modules/@microsoft/tsdoc-config/node_modules/resolve": { + "version": "1.19.0", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.19.0.tgz", + "integrity": "sha512-rArEXAgsBG4UgRGcynxWIWKFvh/XZCcS8UJdHhwy91zwAvCZIbcs+vAbflgBnNjYMs/i/i+/Ux6IZhML1yPvxg==", "dev": true, "dependencies": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" + "is-core-module": "^2.1.0", + "path-parse": "^1.0.6" }, "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/@microsoft/tsdoc-config/node_modules/json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", - "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", @@ -2321,19 +2312,17 @@ } }, "node_modules/@rushstack/node-core-library": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/@rushstack/node-core-library/-/node-core-library-5.5.0.tgz", - "integrity": "sha512-Cl3MYQ74Je5Y/EngMxcA3SpHjGZ/022nKbAO1aycGfQ+7eKyNCBu0oywj5B1f367GCzuHBgy+3BlVLKysHkXZw==", + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/@rushstack/node-core-library/-/node-core-library-4.2.1.tgz", + "integrity": "sha512-jO8tR7ySxwy2c34QXSQDT9C22EfyisQruKT39FpipPOJAwKejug86eM+FL0QmkqbWGwpmfzkp3pyV71I5ZD9FA==", "dev": true, "dependencies": { - "ajv": "~8.13.0", - "ajv-draft-04": "~1.0.0", - "ajv-formats": "~3.0.1", "fs-extra": "~7.0.1", "import-lazy": "~4.0.0", "jju": "~1.4.0", "resolve": "~1.22.1", - "semver": "~7.5.4" + "semver": "~7.5.4", + "z-schema": "~5.0.2" }, "peerDependencies": { "@types/node": "*" @@ -2344,22 +2333,6 @@ } } }, - "node_modules/@rushstack/node-core-library/node_modules/ajv": { - "version": "8.13.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.13.0.tgz", - "integrity": "sha512-PRA911Blj99jR5RMeTunVbNXMF6Lp4vZXnk5GQjcnUWUTsrXtekg/pnmFFI2u/I36Y/2bITGS30GZCXei6uNkA==", - "dev": true, - "dependencies": { - "fast-deep-equal": "^3.1.3", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.4.1" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, "node_modules/@rushstack/node-core-library/node_modules/fs-extra": { "version": "7.0.1", "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-7.0.1.tgz", @@ -2374,12 +2347,6 @@ "node": ">=6 <7 || >=8" } }, - "node_modules/@rushstack/node-core-library/node_modules/json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", - "dev": true - }, "node_modules/@rushstack/node-core-library/node_modules/semver": { "version": "7.5.4", "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", @@ -2406,12 +2373,12 @@ } }, "node_modules/@rushstack/terminal": { - "version": "0.13.1", - "resolved": "https://registry.npmjs.org/@rushstack/terminal/-/terminal-0.13.1.tgz", - "integrity": "sha512-RfJcpEYfCzEM/8dgRm4xVs8g4x+AdGdZZGa+XmZRWEKbKkVJSHxKmoe5z0f8gFNip0bnlxNavB9cxNaTSY/JRQ==", + "version": "0.10.3", + "resolved": "https://registry.npmjs.org/@rushstack/terminal/-/terminal-0.10.3.tgz", + "integrity": "sha512-4wEPvn9bTD4cixW+FQxlCtZmVIp73gUEAFutPXDo7Nik5bqmbP+fkZcd3Zjr+hOQyyu85d6+1R1DOPcchJX5ww==", "dev": true, "dependencies": { - "@rushstack/node-core-library": "5.5.0", + "@rushstack/node-core-library": "4.2.1", "supports-color": "~8.1.1" }, "peerDependencies": { @@ -2448,21 +2415,21 @@ } }, "node_modules/@rushstack/ts-command-line": { - "version": "4.22.1", - "resolved": "https://registry.npmjs.org/@rushstack/ts-command-line/-/ts-command-line-4.22.1.tgz", - "integrity": "sha512-wU/igKNFRPmQvxiRAM9lEx/5xcFRK72zBp+fbykPKIm83bOmVE0WWQ+ZhX/pcJJqQiodcr0DDzOMw4O8SwpMSQ==", + "version": "4.19.5", + "resolved": "https://registry.npmjs.org/@rushstack/ts-command-line/-/ts-command-line-4.19.5.tgz", + "integrity": "sha512-0baDWdyMeB2LFHn1T8PKmy2rGclJoDruOjxwARrM4Oe66YjO9GfVZYwpM8ePdzJprWhkCnYLSxGUKJiWmUpapg==", "dev": true, "dependencies": { - "@rushstack/terminal": "0.13.1", + "@rushstack/terminal": "0.10.3", "@types/argparse": "1.0.38", "argparse": "~1.0.9", "string-argv": "~0.3.1" } }, "node_modules/@scaleleap/amazon-marketplaces": { - "version": "17.3.1", - "resolved": "https://registry.npmjs.org/@scaleleap/amazon-marketplaces/-/amazon-marketplaces-17.3.1.tgz", - "integrity": "sha512-uf8MYrmzvOIIscW8pJyRj5X+TcyLZex2FsMDOqIrurtF3hCIp3MlHzHYGCQUevdRnS9Bs+7swn8vTUcgSvUSDw==", + "version": "18.0.1", + "resolved": "https://registry.npmjs.org/@scaleleap/amazon-marketplaces/-/amazon-marketplaces-18.0.1.tgz", + "integrity": "sha512-iPpyeXaAM7xAAPqysbuGEHOBXEJZ3psYiNaJhNGPfLLs0RlmrjevAXRBbyiqeXyVpYyFBkC4kHoFZlwF52HXRA==", "dependencies": { "@lavadrop/ensure": "1.0.0" } @@ -3204,10 +3171,13 @@ "dev": true }, "node_modules/@types/node": { - "version": "16.11.21", - "resolved": "https://registry.npmjs.org/@types/node/-/node-16.11.21.tgz", - "integrity": "sha512-Pf8M1XD9i1ksZEcCP8vuSNwooJ/bZapNmIzpmsMaL+jMI+8mEYU3PKvs+xDNuQcJWF/x24WzY4qxLtB0zNow9A==", - "dev": true + "version": "18.19.50", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.50.tgz", + "integrity": "sha512-xonK+NRrMBRtkL1hVCc3G+uXtjh1Al4opBLjqVmipe5ZAaBYWW6cNAiBVZ1BvmkBhep698rP3UM3aRAdSALuhg==", + "dev": true, + "dependencies": { + "undici-types": "~5.26.4" + } }, "node_modules/@types/normalize-package-data": { "version": "2.4.0", @@ -4020,59 +3990,6 @@ "url": "https://github.com/sponsors/epoberezkin" } }, - "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==", - "dev": true, - "peerDependencies": { - "ajv": "^8.5.0" - }, - "peerDependenciesMeta": { - "ajv": { - "optional": true - } - } - }, - "node_modules/ajv-formats": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-3.0.1.tgz", - "integrity": "sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==", - "dev": true, - "dependencies": { - "ajv": "^8.0.0" - }, - "peerDependencies": { - "ajv": "^8.0.0" - }, - "peerDependenciesMeta": { - "ajv": { - "optional": true - } - } - }, - "node_modules/ajv-formats/node_modules/ajv": { - "version": "8.17.1", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz", - "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==", - "dev": true, - "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-formats/node_modules/json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", - "dev": true - }, "node_modules/ansi-escapes": { "version": "4.3.1", "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.1.tgz", @@ -4997,6 +4914,16 @@ "node": ">= 0.8" } }, + "node_modules/commander": { + "version": "9.5.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-9.5.0.tgz", + "integrity": "sha512-KRs7WVDKg86PWiuAqhDrAQnTXZKraVcCc6vFdL14qrZ/DcWwuRo7VoiYXalXO7S5GKpqYiVEwCbgFDfxNHKJBQ==", + "dev": true, + "optional": true, + "engines": { + "node": "^12.20.0 || >=14" + } + }, "node_modules/compare-func": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/compare-func/-/compare-func-2.0.0.tgz", @@ -6847,12 +6774,6 @@ "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=", "dev": true }, - "node_modules/fast-uri": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.0.1.tgz", - "integrity": "sha512-MWipKbbYiYI0UC7cl8m/i/IWTqfC8YXsqjzybjddLsFjStroQzsHXkc73JutMvBiXmOvapk+axIl79ig5t55Bw==", - "dev": true - }, "node_modules/fastq": { "version": "1.13.0", "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.13.0.tgz", @@ -11405,6 +11326,18 @@ "integrity": "sha512-TM9YBvyC84ZxE3rgfefxUWiQKLilstD6k7PTGt6wfbtXF8ixIJLOL3VYyV/z+ZiPLsVxAsKAFVwWlWeb2Y8Yyw==", "dev": true }, + "node_modules/lodash.get": { + "version": "4.4.2", + "resolved": "https://registry.npmjs.org/lodash.get/-/lodash.get-4.4.2.tgz", + "integrity": "sha512-z+Uw/vLuy6gQe8cfaFWD7p0wVv8fJl3mbzXh33RS+0oW2wvUqiRXiQ69gLWSLpgB5/6sU+r6BlQR0MBILadqTQ==", + "dev": true + }, + "node_modules/lodash.isequal": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.isequal/-/lodash.isequal-4.5.0.tgz", + "integrity": "sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ==", + "dev": true + }, "node_modules/lodash.ismatch": { "version": "4.4.0", "resolved": "https://registry.npmjs.org/lodash.ismatch/-/lodash.ismatch-4.4.0.tgz", @@ -15630,15 +15563,15 @@ } }, "node_modules/prettier": { - "version": "2.8.8", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz", - "integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==", + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.3.3.tgz", + "integrity": "sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew==", "dev": true, "bin": { - "prettier": "bin-prettier.js" + "prettier": "bin/prettier.cjs" }, "engines": { - "node": ">=10.13.0" + "node": ">=14" }, "funding": { "url": "https://github.com/prettier/prettier?sponsor=1" @@ -16076,15 +16009,6 @@ "node": ">=0.10.0" } }, - "node_modules/require-from-string": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", - "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/require-main-filename": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", @@ -17332,9 +17256,9 @@ "dev": true }, "node_modules/string-argv": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/string-argv/-/string-argv-0.3.1.tgz", - "integrity": "sha512-a1uQGz7IyVy9YwhqjZIZu1c8JO8dNIe20xBmSS6qu9kv++k3JGzCVmprbNN5Kn+BgzD5E7YYwg1CcjuJMRNsvg==", + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/string-argv/-/string-argv-0.3.2.tgz", + "integrity": "sha512-aqD2Q0144Z+/RqG52NeHEkZauTAUWJO8c6yTftGJKO3Tja5tUgIfmIl6kExvhtxSDP7fXB6DvzkfMpCd/F3G+Q==", "dev": true, "engines": { "node": ">=0.6.19" @@ -17540,12 +17464,6 @@ "url": "https://opencollective.com/unts" } }, - "node_modules/synckit/node_modules/tslib": { - "version": "2.6.3", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.3.tgz", - "integrity": "sha512-xNvxJEOUiWPGhUuUdQgAJPKOOJfGnIyKySOc09XkKsgdUV/3E2zvwZYdejjmRgPCgcym1juLH3226yA7sEFJKQ==", - "dev": true - }, "node_modules/temp-dir": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/temp-dir/-/temp-dir-2.0.0.tgz", @@ -17953,6 +17871,12 @@ "integrity": "sha512-Po+Hqetcu0P83zy6WHpT0bJIpXgKS+/N5mtiSpzxcTdjUbPNE2kijqUCZecwERHkVQt/mqNC6xzj/C92hs40qg==", "dev": true }, + "node_modules/tslib": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.7.0.tgz", + "integrity": "sha512-gLXCKdN1/j47AiHiOkJN69hJmcbGTHI0ImLmbYLHykhgeN0jVGola9yVjFgzCUklsZQMW55o+dW7IXv3RCXDzA==", + "dev": true + }, "node_modules/type-check": { "version": "0.3.2", "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", @@ -18095,6 +18019,12 @@ "node": ">=0.8.0" } }, + "node_modules/undici-types": { + "version": "5.26.5", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", + "dev": true + }, "node_modules/unified": { "version": "9.2.2", "resolved": "https://registry.npmjs.org/unified/-/unified-9.2.2.tgz", @@ -18420,6 +18350,15 @@ "spdx-expression-parse": "^3.0.0" } }, + "node_modules/validator": { + "version": "13.12.0", + "resolved": "https://registry.npmjs.org/validator/-/validator-13.12.0.tgz", + "integrity": "sha512-c1Q0mCiPlgdTVVVIJIrBuxNicYE+t/7oKeI9MWLj3fh/uq2Pxh/3eeWbVZ4OcGW1TUf53At0njHw5SMdA3tmMg==", + "dev": true, + "engines": { + "node": ">= 0.10" + } + }, "node_modules/vary": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", @@ -18769,6 +18708,26 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/z-schema": { + "version": "5.0.5", + "resolved": "https://registry.npmjs.org/z-schema/-/z-schema-5.0.5.tgz", + "integrity": "sha512-D7eujBWkLa3p2sIpJA0d1pr7es+a7m0vFAnZLlCEKq/Ij2k0MLi9Br2UPxoxdYystm5K1yeBGzub0FlYUEWj2Q==", + "dev": true, + "dependencies": { + "lodash.get": "^4.4.2", + "lodash.isequal": "^4.5.0", + "validator": "^13.7.0" + }, + "bin": { + "z-schema": "bin/z-schema" + }, + "engines": { + "node": ">=8.0.0" + }, + "optionalDependencies": { + "commander": "^9.4.1" + } + }, "node_modules/zwitch": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/zwitch/-/zwitch-1.0.5.tgz", @@ -20180,18 +20139,18 @@ "integrity": "sha512-F9JfqAF0rAZn9a4GeZb2E5i05vnm1BKmV6Qsw7a3BLsJiNV7Godh8jLBKPwb9xsc76Ew4U4Qx47S6mk/z/tS4g==" }, "@microsoft/api-extractor": { - "version": "7.47.1", - "resolved": "https://registry.npmjs.org/@microsoft/api-extractor/-/api-extractor-7.47.1.tgz", - "integrity": "sha512-xfChgcNU5EBx5jayyOdl48xSP3na46TAPvnOZxvqfWOXUKa4Lz+iWiCZPTOgjw8NcrrD9a420cl6rSVYGwj5EA==", + "version": "7.43.4", + "resolved": "https://registry.npmjs.org/@microsoft/api-extractor/-/api-extractor-7.43.4.tgz", + "integrity": "sha512-HMzeVcTbzpiVvAUOnUVOxhPGPjOlPQQjiHVZy3fsXm6D5MUiEqX0OWEuupV8Ba3LM7h1Vk8xnNghlwpCkY73UA==", "dev": true, "requires": { - "@microsoft/api-extractor-model": "7.29.3", - "@microsoft/tsdoc": "~0.15.0", - "@microsoft/tsdoc-config": "~0.17.0", - "@rushstack/node-core-library": "5.5.0", + "@microsoft/api-extractor-model": "7.28.16", + "@microsoft/tsdoc": "0.14.2", + "@microsoft/tsdoc-config": "~0.16.1", + "@rushstack/node-core-library": "4.2.1", "@rushstack/rig-package": "0.5.2", - "@rushstack/terminal": "0.13.1", - "@rushstack/ts-command-line": "4.22.1", + "@rushstack/terminal": "0.10.3", + "@rushstack/ts-command-line": "4.19.5", "lodash": "~4.17.15", "minimatch": "~3.0.3", "resolve": "~1.22.1", @@ -20227,51 +20186,43 @@ } }, "@microsoft/api-extractor-model": { - "version": "7.29.3", - "resolved": "https://registry.npmjs.org/@microsoft/api-extractor-model/-/api-extractor-model-7.29.3.tgz", - "integrity": "sha512-kEWjLr2ygL3ku9EGyjeTnL2S5IxyH9NaF1k1UoI0Nzwr4xEJBSWCVsWuF2+0lPUrRPA6mTY95fR264SJ5ETKQA==", + "version": "7.28.16", + "resolved": "https://registry.npmjs.org/@microsoft/api-extractor-model/-/api-extractor-model-7.28.16.tgz", + "integrity": "sha512-4/5gbW9zazr7hHHdv32QoCFDQl4vsrMOFp7g9k/uIQR2mn7AqQVN6NvNOAnFi1xwCM6X3K1BN1ZWf9ARF5hUmA==", "dev": true, "requires": { - "@microsoft/tsdoc": "~0.15.0", - "@microsoft/tsdoc-config": "~0.17.0", - "@rushstack/node-core-library": "5.5.0" + "@microsoft/tsdoc": "0.14.2", + "@microsoft/tsdoc-config": "~0.16.1", + "@rushstack/node-core-library": "4.2.1" } }, "@microsoft/tsdoc": { - "version": "0.15.0", - "resolved": "https://registry.npmjs.org/@microsoft/tsdoc/-/tsdoc-0.15.0.tgz", - "integrity": "sha512-HZpPoABogPvjeJOdzCOSJsXeL/SMCBgBZMVC3X3d7YYp2gf31MfxhUoYUNwf1ERPJOnQc0wkFn9trqI6ZEdZuA==", + "version": "0.14.2", + "resolved": "https://registry.npmjs.org/@microsoft/tsdoc/-/tsdoc-0.14.2.tgz", + "integrity": "sha512-9b8mPpKrfeGRuhFH5iO1iwCLeIIsV6+H1sRfxbkoGXIyQE2BTsPd9zqSqQJ+pv5sJ/hT5M1zvOFL02MnEezFug==", "dev": true }, "@microsoft/tsdoc-config": { - "version": "0.17.0", - "resolved": "https://registry.npmjs.org/@microsoft/tsdoc-config/-/tsdoc-config-0.17.0.tgz", - "integrity": "sha512-v/EYRXnCAIHxOHW+Plb6OWuUoMotxTN0GLatnpOb1xq0KuTNw/WI3pamJx/UbsoJP5k9MCw1QxvvhPcF9pH3Zg==", + "version": "0.16.2", + "resolved": "https://registry.npmjs.org/@microsoft/tsdoc-config/-/tsdoc-config-0.16.2.tgz", + "integrity": "sha512-OGiIzzoBLgWWR0UdRJX98oYO+XKGf7tiK4Zk6tQ/E4IJqGCe7dvkTvgDZV5cFJUzLGDOjeAXrnZoA6QkVySuxw==", "dev": true, "requires": { - "@microsoft/tsdoc": "0.15.0", - "ajv": "~8.12.0", + "@microsoft/tsdoc": "0.14.2", + "ajv": "~6.12.6", "jju": "~1.4.0", - "resolve": "~1.22.2" + "resolve": "~1.19.0" }, "dependencies": { - "ajv": { - "version": "8.12.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", - "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", + "resolve": { + "version": "1.19.0", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.19.0.tgz", + "integrity": "sha512-rArEXAgsBG4UgRGcynxWIWKFvh/XZCcS8UJdHhwy91zwAvCZIbcs+vAbflgBnNjYMs/i/i+/Ux6IZhML1yPvxg==", "dev": true, "requires": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" + "is-core-module": "^2.1.0", + "path-parse": "^1.0.6" } - }, - "json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", - "dev": true } } }, @@ -20627,33 +20578,19 @@ } }, "@rushstack/node-core-library": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/@rushstack/node-core-library/-/node-core-library-5.5.0.tgz", - "integrity": "sha512-Cl3MYQ74Je5Y/EngMxcA3SpHjGZ/022nKbAO1aycGfQ+7eKyNCBu0oywj5B1f367GCzuHBgy+3BlVLKysHkXZw==", + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/@rushstack/node-core-library/-/node-core-library-4.2.1.tgz", + "integrity": "sha512-jO8tR7ySxwy2c34QXSQDT9C22EfyisQruKT39FpipPOJAwKejug86eM+FL0QmkqbWGwpmfzkp3pyV71I5ZD9FA==", "dev": true, "requires": { - "ajv": "~8.13.0", - "ajv-draft-04": "~1.0.0", - "ajv-formats": "~3.0.1", "fs-extra": "~7.0.1", "import-lazy": "~4.0.0", "jju": "~1.4.0", "resolve": "~1.22.1", - "semver": "~7.5.4" + "semver": "~7.5.4", + "z-schema": "~5.0.2" }, "dependencies": { - "ajv": { - "version": "8.13.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.13.0.tgz", - "integrity": "sha512-PRA911Blj99jR5RMeTunVbNXMF6Lp4vZXnk5GQjcnUWUTsrXtekg/pnmFFI2u/I36Y/2bITGS30GZCXei6uNkA==", - "dev": true, - "requires": { - "fast-deep-equal": "^3.1.3", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.4.1" - } - }, "fs-extra": { "version": "7.0.1", "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-7.0.1.tgz", @@ -20665,12 +20602,6 @@ "universalify": "^0.1.0" } }, - "json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", - "dev": true - }, "semver": { "version": "7.5.4", "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", @@ -20693,12 +20624,12 @@ } }, "@rushstack/terminal": { - "version": "0.13.1", - "resolved": "https://registry.npmjs.org/@rushstack/terminal/-/terminal-0.13.1.tgz", - "integrity": "sha512-RfJcpEYfCzEM/8dgRm4xVs8g4x+AdGdZZGa+XmZRWEKbKkVJSHxKmoe5z0f8gFNip0bnlxNavB9cxNaTSY/JRQ==", + "version": "0.10.3", + "resolved": "https://registry.npmjs.org/@rushstack/terminal/-/terminal-0.10.3.tgz", + "integrity": "sha512-4wEPvn9bTD4cixW+FQxlCtZmVIp73gUEAFutPXDo7Nik5bqmbP+fkZcd3Zjr+hOQyyu85d6+1R1DOPcchJX5ww==", "dev": true, "requires": { - "@rushstack/node-core-library": "5.5.0", + "@rushstack/node-core-library": "4.2.1", "supports-color": "~8.1.1" }, "dependencies": { @@ -20720,21 +20651,21 @@ } }, "@rushstack/ts-command-line": { - "version": "4.22.1", - "resolved": "https://registry.npmjs.org/@rushstack/ts-command-line/-/ts-command-line-4.22.1.tgz", - "integrity": "sha512-wU/igKNFRPmQvxiRAM9lEx/5xcFRK72zBp+fbykPKIm83bOmVE0WWQ+ZhX/pcJJqQiodcr0DDzOMw4O8SwpMSQ==", + "version": "4.19.5", + "resolved": "https://registry.npmjs.org/@rushstack/ts-command-line/-/ts-command-line-4.19.5.tgz", + "integrity": "sha512-0baDWdyMeB2LFHn1T8PKmy2rGclJoDruOjxwARrM4Oe66YjO9GfVZYwpM8ePdzJprWhkCnYLSxGUKJiWmUpapg==", "dev": true, "requires": { - "@rushstack/terminal": "0.13.1", + "@rushstack/terminal": "0.10.3", "@types/argparse": "1.0.38", "argparse": "~1.0.9", "string-argv": "~0.3.1" } }, "@scaleleap/amazon-marketplaces": { - "version": "17.3.1", - "resolved": "https://registry.npmjs.org/@scaleleap/amazon-marketplaces/-/amazon-marketplaces-17.3.1.tgz", - "integrity": "sha512-uf8MYrmzvOIIscW8pJyRj5X+TcyLZex2FsMDOqIrurtF3hCIp3MlHzHYGCQUevdRnS9Bs+7swn8vTUcgSvUSDw==", + "version": "18.0.1", + "resolved": "https://registry.npmjs.org/@scaleleap/amazon-marketplaces/-/amazon-marketplaces-18.0.1.tgz", + "integrity": "sha512-iPpyeXaAM7xAAPqysbuGEHOBXEJZ3psYiNaJhNGPfLLs0RlmrjevAXRBbyiqeXyVpYyFBkC4kHoFZlwF52HXRA==", "requires": { "@lavadrop/ensure": "1.0.0" } @@ -21334,10 +21265,13 @@ "dev": true }, "@types/node": { - "version": "16.11.21", - "resolved": "https://registry.npmjs.org/@types/node/-/node-16.11.21.tgz", - "integrity": "sha512-Pf8M1XD9i1ksZEcCP8vuSNwooJ/bZapNmIzpmsMaL+jMI+8mEYU3PKvs+xDNuQcJWF/x24WzY4qxLtB0zNow9A==", - "dev": true + "version": "18.19.50", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.50.tgz", + "integrity": "sha512-xonK+NRrMBRtkL1hVCc3G+uXtjh1Al4opBLjqVmipe5ZAaBYWW6cNAiBVZ1BvmkBhep698rP3UM3aRAdSALuhg==", + "dev": true, + "requires": { + "undici-types": "~5.26.4" + } }, "@types/normalize-package-data": { "version": "2.4.0", @@ -21874,41 +21808,6 @@ "uri-js": "^4.2.2" } }, - "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==", - "dev": true - }, - "ajv-formats": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-3.0.1.tgz", - "integrity": "sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==", - "dev": true, - "requires": { - "ajv": "^8.0.0" - }, - "dependencies": { - "ajv": { - "version": "8.17.1", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz", - "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==", - "dev": true, - "requires": { - "fast-deep-equal": "^3.1.3", - "fast-uri": "^3.0.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2" - } - }, - "json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", - "dev": true - } - } - }, "ansi-escapes": { "version": "4.3.1", "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.1.tgz", @@ -22641,6 +22540,13 @@ "delayed-stream": "~1.0.0" } }, + "commander": { + "version": "9.5.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-9.5.0.tgz", + "integrity": "sha512-KRs7WVDKg86PWiuAqhDrAQnTXZKraVcCc6vFdL14qrZ/DcWwuRo7VoiYXalXO7S5GKpqYiVEwCbgFDfxNHKJBQ==", + "dev": true, + "optional": true + }, "compare-func": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/compare-func/-/compare-func-2.0.0.tgz", @@ -24030,12 +23936,6 @@ "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=", "dev": true }, - "fast-uri": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.0.1.tgz", - "integrity": "sha512-MWipKbbYiYI0UC7cl8m/i/IWTqfC8YXsqjzybjddLsFjStroQzsHXkc73JutMvBiXmOvapk+axIl79ig5t55Bw==", - "dev": true - }, "fastq": { "version": "1.13.0", "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.13.0.tgz", @@ -27476,6 +27376,18 @@ "integrity": "sha512-TM9YBvyC84ZxE3rgfefxUWiQKLilstD6k7PTGt6wfbtXF8ixIJLOL3VYyV/z+ZiPLsVxAsKAFVwWlWeb2Y8Yyw==", "dev": true }, + "lodash.get": { + "version": "4.4.2", + "resolved": "https://registry.npmjs.org/lodash.get/-/lodash.get-4.4.2.tgz", + "integrity": "sha512-z+Uw/vLuy6gQe8cfaFWD7p0wVv8fJl3mbzXh33RS+0oW2wvUqiRXiQ69gLWSLpgB5/6sU+r6BlQR0MBILadqTQ==", + "dev": true + }, + "lodash.isequal": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.isequal/-/lodash.isequal-4.5.0.tgz", + "integrity": "sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ==", + "dev": true + }, "lodash.ismatch": { "version": "4.4.0", "resolved": "https://registry.npmjs.org/lodash.ismatch/-/lodash.ismatch-4.4.0.tgz", @@ -30498,9 +30410,9 @@ "dev": true }, "prettier": { - "version": "2.8.8", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz", - "integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==", + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.3.3.tgz", + "integrity": "sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew==", "dev": true }, "prettier-linter-helpers": { @@ -30829,12 +30741,6 @@ "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=", "dev": true }, - "require-from-string": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", - "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", - "dev": true - }, "require-main-filename": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", @@ -31855,9 +31761,9 @@ } }, "string-argv": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/string-argv/-/string-argv-0.3.1.tgz", - "integrity": "sha512-a1uQGz7IyVy9YwhqjZIZu1c8JO8dNIe20xBmSS6qu9kv++k3JGzCVmprbNN5Kn+BgzD5E7YYwg1CcjuJMRNsvg==", + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/string-argv/-/string-argv-0.3.2.tgz", + "integrity": "sha512-aqD2Q0144Z+/RqG52NeHEkZauTAUWJO8c6yTftGJKO3Tja5tUgIfmIl6kExvhtxSDP7fXB6DvzkfMpCd/F3G+Q==", "dev": true }, "string-length": { @@ -31997,14 +31903,6 @@ "requires": { "@pkgr/core": "^0.1.0", "tslib": "^2.6.2" - }, - "dependencies": { - "tslib": { - "version": "2.6.3", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.3.tgz", - "integrity": "sha512-xNvxJEOUiWPGhUuUdQgAJPKOOJfGnIyKySOc09XkKsgdUV/3E2zvwZYdejjmRgPCgcym1juLH3226yA7sEFJKQ==", - "dev": true - } } }, "temp-dir": { @@ -32301,6 +32199,12 @@ "integrity": "sha512-Po+Hqetcu0P83zy6WHpT0bJIpXgKS+/N5mtiSpzxcTdjUbPNE2kijqUCZecwERHkVQt/mqNC6xzj/C92hs40qg==", "dev": true }, + "tslib": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.7.0.tgz", + "integrity": "sha512-gLXCKdN1/j47AiHiOkJN69hJmcbGTHI0ImLmbYLHykhgeN0jVGola9yVjFgzCUklsZQMW55o+dW7IXv3RCXDzA==", + "dev": true + }, "type-check": { "version": "0.3.2", "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", @@ -32399,6 +32303,12 @@ "dev": true, "optional": true }, + "undici-types": { + "version": "5.26.5", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", + "dev": true + }, "unified": { "version": "9.2.2", "resolved": "https://registry.npmjs.org/unified/-/unified-9.2.2.tgz", @@ -32648,6 +32558,12 @@ "spdx-expression-parse": "^3.0.0" } }, + "validator": { + "version": "13.12.0", + "resolved": "https://registry.npmjs.org/validator/-/validator-13.12.0.tgz", + "integrity": "sha512-c1Q0mCiPlgdTVVVIJIrBuxNicYE+t/7oKeI9MWLj3fh/uq2Pxh/3eeWbVZ4OcGW1TUf53At0njHw5SMdA3tmMg==", + "dev": true + }, "vary": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", @@ -32907,6 +32823,18 @@ "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", "dev": true }, + "z-schema": { + "version": "5.0.5", + "resolved": "https://registry.npmjs.org/z-schema/-/z-schema-5.0.5.tgz", + "integrity": "sha512-D7eujBWkLa3p2sIpJA0d1pr7es+a7m0vFAnZLlCEKq/Ij2k0MLi9Br2UPxoxdYystm5K1yeBGzub0FlYUEWj2Q==", + "dev": true, + "requires": { + "commander": "^9.4.1", + "lodash.get": "^4.4.2", + "lodash.isequal": "^4.5.0", + "validator": "^13.7.0" + } + }, "zwitch": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/zwitch/-/zwitch-1.0.5.tgz", diff --git a/package.json b/package.json index 3d6e60ca2..48ee3885d 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "build": "tsc --build tsconfig.build.json", "docs": "typedoc", "clean": "rimraf lib", - "lint": "eslint --ext .js,.ts src test examples", + "lint": "ESLINT_USE_FLAT_CONFIG=false eslint --ext .js,.ts src test examples", "lint:fix": "npm run lint -- --fix", "test": "jest", "api-extractor": "api-extractor run --local --verbose", @@ -31,7 +31,7 @@ "author": "", "license": "MIT", "dependencies": { - "@scaleleap/amazon-marketplaces": "^17.1.0", + "@scaleleap/amazon-marketplaces": "^18.0.1", "agentkeepalive": "4.5.0", "axios": "0.28.1", "client-oauth2": "4.3.3", @@ -46,13 +46,13 @@ "ts-error": "1.0.6" }, "devDependencies": { - "@microsoft/api-extractor": "7.47.1", + "@microsoft/api-extractor": "7.43.4", "@scaleleap/config": "2.0.8", "@scaleleap/jest-polly": "1.5.27", "@scaleleap/semantic-release-config": "1.1.41", "@types/jest": "27.4.0", "@types/lodash": "4.17.7", - "@types/node": "16.11.21", + "@types/node": "18.19.50", "@typescript-eslint/eslint-plugin": "7.16.1", "@typescript-eslint/parser": "7.16.1", "eslint": "9.9.0", @@ -60,7 +60,7 @@ "eslint-plugin-jest": "28.8.0", "eslint-plugin-prettier": "5.2.1", "jest": "26.6.3", - "prettier": "2.8.8", + "prettier": "3.3.3", "rimraf": "3.0.2", "ts-jest": "26.5.6", "ts-node": "10.9.2", diff --git a/src/amazon-advertising.ts b/src/amazon-advertising.ts index a30c14518..08296502d 100644 --- a/src/amazon-advertising.ts +++ b/src/amazon-advertising.ts @@ -43,7 +43,10 @@ import { Marketplace } from './maketplace' export class AmazonAdvertising { private operationProvider: OperationProvider - constructor(private marketplace: Marketplace, private auth: HttpClientAuth) { + constructor( + private marketplace: Marketplace, + private auth: HttpClientAuth, + ) { const httpClient: HttpClient = new HttpClient(marketplace.advertising.region.endpoint, auth) this.operationProvider = new OperationProvider(httpClient) } diff --git a/src/decorators.ts b/src/decorators.ts index 964d3273f..42ec7a97b 100644 --- a/src/decorators.ts +++ b/src/decorators.ts @@ -11,7 +11,7 @@ import { Operation } from './operations/operation' type Descriptor = TypedPropertyDescriptor type Decoder = t.Mixed -export function Decode(decoder: Decoder): Function { +export function Decode(decoder: Decoder) { return (target: Operation, propertyKey: string, descriptor: Descriptor) => { const originalMethod = descriptor.value @@ -26,6 +26,6 @@ export function Decode(decoder: Decoder): Function { } } -export function DecodeArray(decoder: Decoder): Function { +export function DecodeArray(decoder: Decoder) { return Decode(t.array(decoder)) } diff --git a/src/http-client.ts b/src/http-client.ts index 32714145e..201ba7541 100644 --- a/src/http-client.ts +++ b/src/http-client.ts @@ -1,4 +1,4 @@ -import { axios, Method, AxiosResponse } from './axios' +import { axios, Method, AxiosResponse, AxiosResponseHeaders } from './axios' import HttpStatus from 'http-status-codes' import { JSON_CONTENT_TYPE } from './constants' @@ -15,7 +15,7 @@ export interface HttpClientAuth { export type RequestBody = object | object[] -export type Headers = Record +export type Headers = AxiosResponseHeaders interface HttpClientRequestParams { method: Method @@ -193,7 +193,7 @@ export class HttpClient { // if any failures are detected this.handleApiResponse(res) - const location: string | null = res.headers['location'] + const location: string | undefined = res.headers['location'] if (res.status !== this.httpStatus.TEMPORARY_REDIRECT || !location) { throw new InvalidProgramStateError(['Expected a signed URL.', res.statusText].join(' ')) } @@ -207,7 +207,7 @@ export class HttpClient { } const buffer = Buffer.from(download.data) - const contentType: string = download.headers['content-type'] + const contentType: string | undefined = download.headers['content-type'] const bufferToJson = (buf: Buffer): T => { return JSON.parse(buf.toString()) diff --git a/src/o-auth-client.ts b/src/o-auth-client.ts index dbcf670b9..83560c7bf 100644 --- a/src/o-auth-client.ts +++ b/src/o-auth-client.ts @@ -36,7 +36,10 @@ export class OAuthClient { private client: ClientOAuth2 - public constructor(private readonly opts: Options, marketplace: Marketplace) { + public constructor( + private readonly opts: Options, + marketplace: Marketplace, + ) { const amazonOptions = { accessTokenUri: marketplace.advertising.region.accessTokenUri, authorizationUri: marketplace.advertising.region.authorizationUri, diff --git a/src/operations/commons/types.ts b/src/operations/commons/types.ts index 27805946c..707fbfe59 100644 --- a/src/operations/commons/types.ts +++ b/src/operations/commons/types.ts @@ -7,7 +7,7 @@ import { } from '@scaleleap/amazon-marketplaces' export class EnumType extends t.Type { - public readonly _tag: 'EnumType' = 'EnumType' + public readonly _tag: 'EnumType' = 'EnumType' as const public enumObject!: object public constructor(e: object, name?: string) { super( diff --git a/src/operations/operation.ts b/src/operations/operation.ts index 1f3676e88..0e088e92e 100644 --- a/src/operations/operation.ts +++ b/src/operations/operation.ts @@ -13,7 +13,7 @@ export type WithOperationParameterKeys = { [K in keyof T]: OperationParameterValues } -export type OperationParameterTransformer = ( +export type OperationParameterTransformer = ( originalQuery: T, clonedQuery: WithOperationParameterKeys, ) => WithOperationParameterKeys @@ -49,11 +49,11 @@ export class Operation { } // eslint-disable-next-line class-methods-use-this - private hasKey(obj: T, key: string | number | symbol): key is keyof T { + private hasKey(obj: T, key: string | number | symbol): key is keyof T { return key in obj } - protected paramsFilterTransformerReal( + protected paramsFilterTransformerReal( params: T, keys?: string[], ): WithOperationParameterKeys { diff --git a/test/o-auth-client.test.ts b/test/o-auth-client.test.ts index 377a037ae..4e18726ec 100644 --- a/test/o-auth-client.test.ts +++ b/test/o-auth-client.test.ts @@ -28,7 +28,7 @@ describe(OAuthClient.name, () => { jestPollyContext.polly.server .post('https://api.amazon.com/auth/o2/token') .on('beforeResponse', (req, res) => { - /* eslint-disable @typescript-eslint/camelcase */ + /* eslint-disable camelcase */ req.body = stringify( Object.assign(parse(req.body), { refresh_token: PLACEHOLDER, @@ -43,7 +43,7 @@ describe(OAuthClient.name, () => { refresh_token: PLACEHOLDER, }), ) - /* eslint-enable @typescript-eslint/camelcase */ + /* eslint-enable camelcase */ }) })