From e20782eb8d974e5babdb45805a48fc6819ab7f8d Mon Sep 17 00:00:00 2001 From: Hui Zhao Date: Thu, 25 Jan 2024 15:22:44 -0800 Subject: [PATCH 1/9] chore(repo): use typescript 5.0.2 across workspace --- package.json | 2 +- packages/adapter-nextjs/package.json | 3 +-- packages/analytics/package.json | 3 +-- packages/api-graphql/package.json | 3 +-- packages/api-rest/package.json | 3 +-- packages/api/package.json | 3 +-- packages/auth/package.json | 3 +-- packages/aws-amplify/package.json | 3 +-- packages/core/package.json | 3 +-- .../datastore-storage-adapter/package.json | 3 +-- packages/datastore/package.json | 3 +-- packages/geo/package.json | 3 +-- packages/interactions/package.json | 3 +-- packages/notifications/package.json | 3 +-- packages/predictions/package.json | 3 +-- packages/pubsub/package.json | 3 +-- packages/react-native/package.json | 3 +-- packages/rtn-push-notification/package.json | 3 +-- packages/rtn-web-browser/package.json | 3 +-- packages/storage/package.json | 3 +-- yarn.lock | 20 +++++-------------- 21 files changed, 25 insertions(+), 54 deletions(-) diff --git a/package.json b/package.json index 533b2c89c14..39c186492e2 100644 --- a/package.json +++ b/package.json @@ -111,7 +111,7 @@ "tslint": "^5.7.0", "tslint-config-airbnb": "^5.8.0", "typedoc": "^0.17.0", - "typescript": "^4.3.5", + "typescript": "~5.0.2", "typescript-coverage-report": "^0.6.4", "uuid-validate": "^0.0.3", "webpack": "^5.75.0", diff --git a/packages/adapter-nextjs/package.json b/packages/adapter-nextjs/package.json index 4e896dffbbe..82015d22877 100644 --- a/packages/adapter-nextjs/package.json +++ b/packages/adapter-nextjs/package.json @@ -19,8 +19,7 @@ "aws-amplify": "6.0.13", "jest-fetch-mock": "3.0.3", "next": ">= 13.5.0 < 15.0.0", - "rollup": "3.29.4", - "typescript": "5.0.2" + "rollup": "3.29.4" }, "publishConfig": { "access": "public" diff --git a/packages/analytics/package.json b/packages/analytics/package.json index ef2f7363ce4..b48f8565fb4 100644 --- a/packages/analytics/package.json +++ b/packages/analytics/package.json @@ -108,7 +108,6 @@ "@aws-amplify/react-native": "1.0.13", "@aws-sdk/types": "3.398.0", "@rollup/plugin-typescript": "11.1.5", - "rollup": "3.29.4", - "typescript": "5.0.2" + "rollup": "3.29.4" } } diff --git a/packages/api-graphql/package.json b/packages/api-graphql/package.json index f6edcac97e2..44d5a4134b7 100644 --- a/packages/api-graphql/package.json +++ b/packages/api-graphql/package.json @@ -74,8 +74,7 @@ "devDependencies": { "@aws-amplify/data-schema": "^0.12.11", "@rollup/plugin-typescript": "11.1.5", - "rollup": "3.29.4", - "typescript": "5.0.2" + "rollup": "3.29.4" }, "files": [ "dist/cjs", diff --git a/packages/api-rest/package.json b/packages/api-rest/package.json index ed42d3d9870..2b020334d5e 100644 --- a/packages/api-rest/package.json +++ b/packages/api-rest/package.json @@ -90,8 +90,7 @@ "@aws-amplify/core": "6.0.13", "@aws-amplify/react-native": "1.0.13", "@rollup/plugin-typescript": "11.1.5", - "rollup": "3.29.4", - "typescript": "5.0.2" + "rollup": "3.29.4" }, "size-limit": [ { diff --git a/packages/api/package.json b/packages/api/package.json index 2c417e9cf9d..fcd01017daa 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -69,8 +69,7 @@ "homepage": "https://aws-amplify.github.io/", "devDependencies": { "@rollup/plugin-typescript": "11.1.5", - "rollup": "3.29.4", - "typescript": "5.0.2" + "rollup": "3.29.4" }, "files": [ "dist/cjs", diff --git a/packages/auth/package.json b/packages/auth/package.json index ab7c384e640..d401586d046 100644 --- a/packages/auth/package.json +++ b/packages/auth/package.json @@ -101,7 +101,6 @@ "@aws-amplify/react-native": "1.0.13", "@jest/test-sequencer": "^29.7.0", "@rollup/plugin-typescript": "11.1.5", - "rollup": "3.29.4", - "typescript": "5.0.2" + "rollup": "3.29.4" } } diff --git a/packages/aws-amplify/package.json b/packages/aws-amplify/package.json index dd6bb55baaf..e1e37530f38 100644 --- a/packages/aws-amplify/package.json +++ b/packages/aws-amplify/package.json @@ -286,8 +286,7 @@ }, "devDependencies": { "@rollup/plugin-typescript": "11.1.5", - "rollup": "3.29.4", - "typescript": "5.0.2" + "rollup": "3.29.4" }, "size-limit": [ { diff --git a/packages/core/package.json b/packages/core/package.json index 4f3be794035..3fb89debb54 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -64,8 +64,7 @@ "@rollup/plugin-typescript": "11.1.5", "@types/js-cookie": "3.0.2", "genversion": "^2.2.0", - "rollup": "3.29.4", - "typescript": "5.0.2" + "rollup": "3.29.4" }, "size-limit": [ { diff --git a/packages/datastore-storage-adapter/package.json b/packages/datastore-storage-adapter/package.json index d40a8c82afa..ba1a7ed3239 100644 --- a/packages/datastore-storage-adapter/package.json +++ b/packages/datastore-storage-adapter/package.json @@ -44,7 +44,6 @@ "expo-sqlite": "10.1.0", "react-native-sqlite-storage": "5.0.0", "rollup": "3.29.4", - "sqlite3": "^5.0.2", - "typescript": "5.0.2" + "sqlite3": "^5.0.2" } } diff --git a/packages/datastore/package.json b/packages/datastore/package.json index c05ad8ceb7d..f627aa6c1f1 100644 --- a/packages/datastore/package.json +++ b/packages/datastore/package.json @@ -63,8 +63,7 @@ "dexie-export-import": "1.0.3", "fake-indexeddb": "^4.0.2", "graphql": "15.8.0", - "rollup": "3.29.4", - "typescript": "5.0.2" + "rollup": "3.29.4" }, "size-limit": [ { diff --git a/packages/geo/package.json b/packages/geo/package.json index 63869eb9d08..68ad9b5c08a 100644 --- a/packages/geo/package.json +++ b/packages/geo/package.json @@ -78,8 +78,7 @@ "devDependencies": { "@aws-amplify/core": "6.0.13", "@rollup/plugin-typescript": "11.1.5", - "rollup": "3.29.4", - "typescript": "5.0.2" + "rollup": "3.29.4" }, "size-limit": [ { diff --git a/packages/interactions/package.json b/packages/interactions/package.json index 863c6fcfd5b..2469ffafe57 100644 --- a/packages/interactions/package.json +++ b/packages/interactions/package.json @@ -83,8 +83,7 @@ "devDependencies": { "@aws-amplify/core": "6.0.13", "@rollup/plugin-typescript": "11.1.5", - "rollup": "3.29.4", - "typescript": "^5.0.2" + "rollup": "3.29.4" }, "size-limit": [ { diff --git a/packages/notifications/package.json b/packages/notifications/package.json index 91fa2ed019f..ebc4563dd03 100644 --- a/packages/notifications/package.json +++ b/packages/notifications/package.json @@ -101,7 +101,6 @@ "@aws-amplify/core": "6.0.13", "@aws-amplify/react-native": "1.0.13", "@rollup/plugin-typescript": "11.1.5", - "rollup": "3.29.4", - "typescript": "5.0.2" + "rollup": "3.29.4" } } diff --git a/packages/predictions/package.json b/packages/predictions/package.json index cdf7bdb2700..7ec8be4c3a0 100644 --- a/packages/predictions/package.json +++ b/packages/predictions/package.json @@ -61,8 +61,7 @@ "devDependencies": { "@aws-amplify/core": "6.0.13", "@rollup/plugin-typescript": "11.1.5", - "rollup": "3.29.4", - "typescript": "5.0.2" + "rollup": "3.29.4" }, "size-limit": [ { diff --git a/packages/pubsub/package.json b/packages/pubsub/package.json index 49573a586f5..b3f4b4e53b1 100644 --- a/packages/pubsub/package.json +++ b/packages/pubsub/package.json @@ -86,8 +86,7 @@ "devDependencies": { "@aws-amplify/core": "6.0.13", "@rollup/plugin-typescript": "11.1.5", - "rollup": "3.29.4", - "typescript": "5.0.2" + "rollup": "3.29.4" }, "size-limit": [ { diff --git a/packages/react-native/package.json b/packages/react-native/package.json index be17d7d89db..8153e4834af 100644 --- a/packages/react-native/package.json +++ b/packages/react-native/package.json @@ -41,8 +41,7 @@ "@types/base-64": "1.0.0", "react-native": "0.71.0", "react-native-get-random-values": "1.9.0", - "rollup": "3.29.4", - "typescript": "5.1.6" + "rollup": "3.29.4" }, "repository": { "type": "git", diff --git a/packages/rtn-push-notification/package.json b/packages/rtn-push-notification/package.json index 38277441598..f6a1e290678 100644 --- a/packages/rtn-push-notification/package.json +++ b/packages/rtn-push-notification/package.json @@ -26,8 +26,7 @@ "devDependencies": { "@rollup/plugin-typescript": "11.1.5", "@types/react-native": "0.70.0", - "rollup": "3.29.4", - "typescript": "5.0.2" + "rollup": "3.29.4" }, "repository": { "type": "git", diff --git a/packages/rtn-web-browser/package.json b/packages/rtn-web-browser/package.json index 41907d56160..4498a651d39 100644 --- a/packages/rtn-web-browser/package.json +++ b/packages/rtn-web-browser/package.json @@ -27,8 +27,7 @@ "@rollup/plugin-typescript": "11.1.5", "@types/react-native": "0.70.0", "react-native": "0.72.3", - "rollup": "3.29.4", - "typescript": "5.1.6" + "rollup": "3.29.4" }, "repository": { "type": "git", diff --git a/packages/storage/package.json b/packages/storage/package.json index 66f2e63a2a6..d8769b0ece6 100644 --- a/packages/storage/package.json +++ b/packages/storage/package.json @@ -105,7 +105,6 @@ "@aws-amplify/react-native": "1.0.13", "@rollup/plugin-json": "6.0.1", "@rollup/plugin-typescript": "11.1.5", - "rollup": "3.29.4", - "typescript": "5.0.2" + "rollup": "3.29.4" } } diff --git a/yarn.lock b/yarn.lock index 994eafe6d1c..67b32a5216e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -13878,25 +13878,15 @@ typescript@4.2.x: resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.2.4.tgz#8610b59747de028fda898a8aef0e103f156d0961" integrity sha512-V+evlYHZnQkaz8TRBuxTA92yZBPotr5H+WhQ7bD3hZUndx5tGOa1fuCgeSjxAzM1RiN5IzvadIXTVefuuwZCRg== -typescript@5.0.2: - version "5.0.2" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.0.2.tgz#891e1a90c5189d8506af64b9ef929fca99ba1ee5" - integrity sha512-wVORMBGO/FAs/++blGNeAVdbNKtIh1rbBL2EyQ1+J9lClJ93KiiKe8PmFIVdXhHcyv44SL9oglmfeSsndo0jRw== - -typescript@5.1.6: - version "5.1.6" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.1.6.tgz#02f8ac202b6dad2c0dd5e0913745b47a37998274" - integrity sha512-zaWCozRZ6DLEWAWFrVDz1H6FVXzUSfTy5FUMWsQlU8Ym5JP9eO4xkTIROFCQvhQf61z6O/G6ugw3SgAnvvm+HA== - -"typescript@>=3 < 6", typescript@^5.0.2: +"typescript@>=3 < 6": version "5.3.2" resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.3.2.tgz#00d1c7c1c46928c5845c1ee8d0cc2791031d4c43" integrity sha512-6l+RyNy7oAHDfxC4FzSJcz9vnjTKxrLpDG5M2Vu4SHRVNg6xzqZp6LYSR9zjqQTu8DU/f5xwxUdADOkbrIX2gQ== -typescript@^4.3.5: - version "4.9.5" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.9.5.tgz#095979f9bcc0d09da324d58d03ce8f8374cbe65a" - integrity sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g== +typescript@~5.0.2: + version "5.0.4" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.0.4.tgz#b217fd20119bd61a94d4011274e0ab369058da3b" + integrity sha512-cW9T5W9xY37cc+jfEnaUvX91foxtHkza3Nw3wkoF4sSlKn0MONdkdEndig/qPBWXNkmplh3NzayQzCiHM4/hqw== typeson-registry@^1.0.0-alpha.20: version "1.0.0-alpha.39" From fa0423d1213e991819a3fb18e939760336ace82d Mon Sep 17 00:00:00 2001 From: Hui Zhao Date: Fri, 26 Jan 2024 11:20:06 -0800 Subject: [PATCH 2/9] chore(repo): refactor tsconfig hierarchy - move the base tsconfig into the root of the workspace - unifying tsconfig tsconfig.build tsconfig.test and tsconfig.watch settings --- packages/adapter-nextjs/package.json | 4 ++-- packages/adapter-nextjs/rollup.config.mjs | 14 ++----------- packages/adapter-nextjs/tsconfig.build.json | 8 ++----- packages/adapter-nextjs/tsconfig.json | 17 ++------------- packages/adapter-nextjs/tsconfig.test.json | 3 +++ packages/analytics/package.json | 6 +++--- packages/analytics/tsconfig.build.json | 4 ++++ packages/analytics/tsconfig.json | 9 ++------ packages/analytics/tsconfig.test.json | 3 +++ packages/api-graphql/package.json | 6 +++--- packages/api-graphql/tsconfig.build.json | 4 ++++ packages/api-graphql/tsconfig.json | 10 +++------ packages/api-graphql/tsconfig.test.json | 7 +++++++ packages/api-rest/package.json | 6 +++--- packages/api-rest/tsconfig.build.json | 4 ++++ packages/api-rest/tsconfig.json | 9 ++------ packages/api-rest/tsconfig.test.json | 3 +++ packages/api/package.json | 6 +++--- packages/api/tsconfig.build.json | 4 ++++ packages/api/tsconfig.json | 10 +++------ packages/api/tsconfig.test.json | 3 +++ packages/auth/package.json | 6 +++--- packages/auth/tsconfig.build.json | 4 ++++ packages/auth/tsconfig.json | 10 ++------- packages/auth/tsconfig.test.json | 7 +++++++ packages/aws-amplify/package.json | 6 +++--- packages/aws-amplify/tsconfig.build.json | 4 ++++ packages/aws-amplify/tsconfig.json | 8 ++----- packages/aws-amplify/tsconfig.test.json | 3 +++ packages/core/package.json | 6 +++--- packages/core/tsconfig.build.json | 4 ++++ packages/core/tsconfig.json | 12 ++--------- packages/core/tsconfig.test.json | 8 +++++++ .../datastore-storage-adapter/package.json | 6 +++--- .../tsconfig.build.json | 4 ++++ .../datastore-storage-adapter/tsconfig.json | 4 +--- .../tsconfig.test.json | 8 +++++++ packages/datastore/package.json | 6 +++--- packages/datastore/tsconfig.build.json | 4 ++++ packages/datastore/tsconfig.json | 7 +++---- packages/datastore/tsconfig.test.json | 7 +++++++ packages/geo/package.json | 6 +++--- packages/geo/tsconfig.build.json | 4 ++++ packages/geo/tsconfig.json | 9 +++----- packages/geo/tsconfig.test.json | 3 +++ packages/interactions/package.json | 6 +++--- packages/interactions/tsconfig.build.json | 4 ++++ packages/interactions/tsconfig.json | 9 ++------ packages/interactions/tsconfig.test.json | 7 +++++++ packages/notifications/package.json | 6 +++--- packages/notifications/tsconfig.build.json | 4 ++++ packages/notifications/tsconfig.json | 10 +++------ packages/notifications/tsconfig.test.json | 7 +++++++ packages/predictions/package.json | 6 +++--- packages/predictions/tsconfig.build.json | 4 ++++ packages/predictions/tsconfig.json | 8 ++----- packages/predictions/tsconfig.test.json | 8 +++++++ packages/pubsub/package.json | 6 +++--- packages/pubsub/tsconfig.build.json | 4 ++++ packages/pubsub/tsconfig.json | 10 ++------- packages/pubsub/tsconfig.test.json | 7 +++++++ packages/react-native/package.json | 4 ++-- packages/react-native/rollup.config.mjs | 14 ++----------- packages/react-native/tsconfig.build.json | 2 +- packages/react-native/tsconfig.json | 16 ++++++-------- packages/react-native/tsconfig.test.json | 3 +++ packages/rtn-push-notification/package.json | 6 +++--- .../rtn-push-notification/tsconfig.build.json | 4 ++++ packages/rtn-push-notification/tsconfig.json | 8 +++---- .../rtn-push-notification/tsconfig.test.json | 3 +++ packages/rtn-web-browser/package.json | 4 ++-- packages/rtn-web-browser/tsconfig.build.json | 4 ++++ packages/rtn-web-browser/tsconfig.json | 8 +++---- packages/rtn-web-browser/tsconfig.test.json | 3 +++ packages/storage/package.json | 4 ++-- packages/storage/tsconfig.build.json | 5 ++--- packages/storage/tsconfig.json | 10 ++------- packages/storage/tsconfig.test.json | 7 +++++++ rollup/common.mjs | 2 +- packages/tsconfig.base.json => tsconfig.json | 21 ++++++++++++------- 80 files changed, 288 insertions(+), 232 deletions(-) create mode 100644 packages/adapter-nextjs/tsconfig.test.json create mode 100644 packages/analytics/tsconfig.build.json create mode 100644 packages/analytics/tsconfig.test.json create mode 100644 packages/api-graphql/tsconfig.build.json create mode 100644 packages/api-graphql/tsconfig.test.json create mode 100644 packages/api-rest/tsconfig.build.json create mode 100644 packages/api-rest/tsconfig.test.json create mode 100644 packages/api/tsconfig.build.json create mode 100644 packages/api/tsconfig.test.json create mode 100644 packages/auth/tsconfig.build.json create mode 100644 packages/auth/tsconfig.test.json create mode 100644 packages/aws-amplify/tsconfig.build.json create mode 100644 packages/aws-amplify/tsconfig.test.json create mode 100644 packages/core/tsconfig.build.json create mode 100644 packages/core/tsconfig.test.json create mode 100644 packages/datastore-storage-adapter/tsconfig.build.json create mode 100644 packages/datastore-storage-adapter/tsconfig.test.json create mode 100644 packages/datastore/tsconfig.build.json create mode 100644 packages/datastore/tsconfig.test.json create mode 100644 packages/geo/tsconfig.build.json create mode 100644 packages/geo/tsconfig.test.json create mode 100644 packages/interactions/tsconfig.build.json create mode 100644 packages/interactions/tsconfig.test.json create mode 100644 packages/notifications/tsconfig.build.json create mode 100644 packages/notifications/tsconfig.test.json create mode 100644 packages/predictions/tsconfig.build.json create mode 100644 packages/predictions/tsconfig.test.json create mode 100644 packages/pubsub/tsconfig.build.json create mode 100644 packages/pubsub/tsconfig.test.json create mode 100644 packages/react-native/tsconfig.test.json create mode 100644 packages/rtn-push-notification/tsconfig.build.json create mode 100644 packages/rtn-push-notification/tsconfig.test.json create mode 100644 packages/rtn-web-browser/tsconfig.build.json create mode 100644 packages/rtn-web-browser/tsconfig.test.json create mode 100644 packages/storage/tsconfig.test.json rename packages/tsconfig.base.json => tsconfig.json (65%) diff --git a/packages/adapter-nextjs/package.json b/packages/adapter-nextjs/package.json index 82015d22877..e4df330fd45 100644 --- a/packages/adapter-nextjs/package.json +++ b/packages/adapter-nextjs/package.json @@ -61,9 +61,9 @@ "scripts": { "build": "npm run clean && npm run build:esm-cjs", "build-with-test": "npm test && npm run build", - "build:cjs:watch": "rimraf dist/cjs && tsc -m commonjs --outDir dist/cjs --watch", "build:esm-cjs": "rollup -c rollup.config.mjs", - "build:esm:watch": "rimraf dist/esm && tsc -m esnext --outDir dist/esm --watch", + "build:cjs:watch": "rimraf dist/cjs && tsc -p tsconfig.watch.json -m commonjs --outDir dist/cjs --watch", + "build:esm:watch": "rimraf dist/esm && tsc -p tsconfig.watch.json -m esnext --outDir dist/esm --watch", "clean": "npm run clean:size && rimraf dist", "clean:size": "rimraf dual-publish-tmp tmp*", "format": "echo \"Not implemented\"", diff --git a/packages/adapter-nextjs/rollup.config.mjs b/packages/adapter-nextjs/rollup.config.mjs index a299129900e..5f2e054bc06 100644 --- a/packages/adapter-nextjs/rollup.config.mjs +++ b/packages/adapter-nextjs/rollup.config.mjs @@ -18,23 +18,13 @@ const config = defineConfig([ { input: input, output: cjsOutput, - plugins: [ - typescript({ - ...cjsTSOptions, - tsconfig: 'tsconfig.build.json', - }), - ], + plugins: [typescript(cjsTSOptions)], }, // ESM config { input: input, output: esmOutput, - plugins: [ - typescript({ - ...esmTSOptions, - tsconfig: 'tsconfig.build.json', - }), - ], + plugins: [typescript(esmTSOptions)], }, ]); diff --git a/packages/adapter-nextjs/tsconfig.build.json b/packages/adapter-nextjs/tsconfig.build.json index aed335f0bbc..b2cce3f37c9 100644 --- a/packages/adapter-nextjs/tsconfig.build.json +++ b/packages/adapter-nextjs/tsconfig.build.json @@ -1,8 +1,4 @@ { - "extends": "../tsconfig.base.json", - "compilerOptions": { - "strict": true, - "noImplicitAny": true - }, - "include": ["./src"] + "extends": "./tsconfig.json", + "exclude": ["__tests__", "coverage", "coverage-ts", "dist"] } diff --git a/packages/adapter-nextjs/tsconfig.json b/packages/adapter-nextjs/tsconfig.json index 4cf76894da1..e58570f395f 100755 --- a/packages/adapter-nextjs/tsconfig.json +++ b/packages/adapter-nextjs/tsconfig.json @@ -1,21 +1,8 @@ -//WARNING: If you are manually specifying files to compile then the tsconfig.json is completely ignored, you must use command line flags { + "extends": "../../tsconfig.json", "compilerOptions": { "allowSyntheticDefaultImports": true, - "target": "es2020", - "noImplicitAny": true, - "lib": ["dom", "es2019", "esnext.asynciterable"], - "module": "commonjs", - "moduleResolution": "node", - "allowJs": true, - "declaration": true, - "typeRoots": ["./node_modules/@types", "../../node_modules/@types"], - "types": ["node"], - "esModuleInterop": true, - "resolveJsonModule": true, - "strict": true, "alwaysStrict": true }, - "include": ["src/**/*"], - "exclude": ["src/setupTests.ts"] + "include": ["./src", "__tests__"] } diff --git a/packages/adapter-nextjs/tsconfig.test.json b/packages/adapter-nextjs/tsconfig.test.json new file mode 100644 index 00000000000..ea6be8e9a50 --- /dev/null +++ b/packages/adapter-nextjs/tsconfig.test.json @@ -0,0 +1,3 @@ +{ + "extends": "./tsconfig.json" +} diff --git a/packages/analytics/package.json b/packages/analytics/package.json index b48f8565fb4..884a15967f6 100644 --- a/packages/analytics/package.json +++ b/packages/analytics/package.json @@ -16,14 +16,14 @@ "build-with-test": "npm run clean && npm run test && npm run build", "build:umd": "webpack && webpack --config ./webpack.config.dev.js", "build:esm-cjs": "rollup -c rollup.config.mjs", - "build:cjs:watch": "rimraf dist/cjs && tsc -m commonjs --outDir dist/cjs --watch", - "build:esm:watch": "rimraf dist/esm && tsc -m esnext --outDir dist/esm --watch", + "build:cjs:watch": "rimraf dist/cjs && tsc -p tsconfig.watch.json -m commonjs --outDir dist/cjs --watch", + "build:esm:watch": "rimraf dist/esm && tsc -p tsconfig.watch.json -m esnext --outDir dist/esm --watch", "build": "npm run clean && npm run build:esm-cjs && npm run build:umd", "clean": "npm run clean:size && rimraf dist lib lib-esm", "clean:size": "rimraf dual-publish-tmp tmp*", "format": "echo \"Not implemented\"", "lint": "tslint 'src/**/*.ts' && npm run ts-coverage", - "ts-coverage": "typescript-coverage-report -p ./tsconfig.json -t 71.4" + "ts-coverage": "typescript-coverage-report -p ./tsconfig.build.json -t 71.4" }, "typesVersions": { ">=4.2": { diff --git a/packages/analytics/tsconfig.build.json b/packages/analytics/tsconfig.build.json new file mode 100644 index 00000000000..b2cce3f37c9 --- /dev/null +++ b/packages/analytics/tsconfig.build.json @@ -0,0 +1,4 @@ +{ + "extends": "./tsconfig.json", + "exclude": ["__tests__", "coverage", "coverage-ts", "dist"] +} diff --git a/packages/analytics/tsconfig.json b/packages/analytics/tsconfig.json index 0a497e00826..dc03839b6c7 100644 --- a/packages/analytics/tsconfig.json +++ b/packages/analytics/tsconfig.json @@ -1,9 +1,4 @@ { - "extends": "../tsconfig.base.json", - "compilerOptions": { - "importHelpers": true, - "strict": true, - "noImplicitAny": true - }, - "include": ["./src", "../core/src/utils/haveCredentialsChanged.ts"] + "extends": "../../tsconfig.json", + "include": ["./src", "__tests__"] } diff --git a/packages/analytics/tsconfig.test.json b/packages/analytics/tsconfig.test.json new file mode 100644 index 00000000000..ea6be8e9a50 --- /dev/null +++ b/packages/analytics/tsconfig.test.json @@ -0,0 +1,3 @@ +{ + "extends": "./tsconfig.json" +} diff --git a/packages/api-graphql/package.json b/packages/api-graphql/package.json index 44d5a4134b7..710f4db7aba 100644 --- a/packages/api-graphql/package.json +++ b/packages/api-graphql/package.json @@ -19,14 +19,14 @@ "build-with-test": "npm test && npm build", "build:umd": "webpack && webpack --config ./webpack.config.dev.js", "build:esm-cjs": "rollup -c rollup.config.mjs", - "build:cjs:watch": "rimraf dist/cjs && tsc -m commonjs --outDir dist/cjs --watch", - "build:esm:watch": "rimraf dist/esm && tsc -m esnext --outDir dist/esm --watch", + "build:cjs:watch": "rimraf dist/cjs && tsc -p tsconfig.watch.json -m commonjs --outDir dist/cjs --watch", + "build:esm:watch": "rimraf dist/esm && tsc -p tsconfig.watch.json -m esnext --outDir dist/esm --watch", "build": "npm run clean && npm run build:esm-cjs && npm run build:umd", "clean": "npm run clean:size && rimraf dist lib lib-esm", "clean:size": "rimraf dual-publish-tmp tmp*", "format": "echo \"Not implemented\"", "lint": "tslint 'src/**/*.ts' && npm run ts-coverage", - "ts-coverage": "typescript-coverage-report -p ./tsconfig.json -t 70.0" + "ts-coverage": "typescript-coverage-report -p ./tsconfig.build.json -t 70.0" }, "exports": { ".": { diff --git a/packages/api-graphql/tsconfig.build.json b/packages/api-graphql/tsconfig.build.json new file mode 100644 index 00000000000..b2cce3f37c9 --- /dev/null +++ b/packages/api-graphql/tsconfig.build.json @@ -0,0 +1,4 @@ +{ + "extends": "./tsconfig.json", + "exclude": ["__tests__", "coverage", "coverage-ts", "dist"] +} diff --git a/packages/api-graphql/tsconfig.json b/packages/api-graphql/tsconfig.json index e477014534b..838b818549e 100644 --- a/packages/api-graphql/tsconfig.json +++ b/packages/api-graphql/tsconfig.json @@ -1,11 +1,7 @@ { - "extends": "../tsconfig.base.json", + "extends": "../../tsconfig.json", "compilerOptions": { - "importHelpers": true, - "strict": true, - "noImplicitAny": true, - "strictNullChecks": true, - "skipLibCheck": true + "strictNullChecks": true }, - "include": ["./src"] + "include": ["./src", "__tests__"] } diff --git a/packages/api-graphql/tsconfig.test.json b/packages/api-graphql/tsconfig.test.json new file mode 100644 index 00000000000..ab13dce0bd9 --- /dev/null +++ b/packages/api-graphql/tsconfig.test.json @@ -0,0 +1,7 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + // TODO(test): enable noImplicitAny for tests + "noImplicitAny": false + } +} diff --git a/packages/api-rest/package.json b/packages/api-rest/package.json index 2b020334d5e..48ef2df5fa7 100644 --- a/packages/api-rest/package.json +++ b/packages/api-rest/package.json @@ -16,14 +16,14 @@ "build-with-test": "npm test && npm build", "build:umd": "webpack && webpack --config ./webpack.config.dev.js", "build:esm-cjs": "rollup -c rollup.config.mjs", - "build:cjs:watch": "rimraf dist/cjs && tsc -m commonjs --outDir dist/cjs --watch", - "build:esm:watch": "rimraf dist/esm && tsc -m esnext --outDir dist/esm --watch", + "build:cjs:watch": "rimraf dist/cjs && tsc -p tsconfig.watch.json -m commonjs --outDir dist/cjs --watch", + "build:esm:watch": "rimraf dist/esm && tsc -p tsconfig.watch.json -m esnext --outDir dist/esm --watch", "build": "npm run clean && npm run build:esm-cjs && npm run build:umd", "clean": "npm run clean:size && rimraf dist lib lib-esm", "clean:size": "rimraf dual-publish-tmp tmp*", "format": "echo \"Not implemented\"", "lint": "tslint 'src/**/*.ts' && npm run ts-coverage", - "ts-coverage": "typescript-coverage-report -p ./tsconfig.json -t 70.0" + "ts-coverage": "typescript-coverage-report -p ./tsconfig.build.json -t 70.0" }, "exports": { ".": { diff --git a/packages/api-rest/tsconfig.build.json b/packages/api-rest/tsconfig.build.json new file mode 100644 index 00000000000..b2cce3f37c9 --- /dev/null +++ b/packages/api-rest/tsconfig.build.json @@ -0,0 +1,4 @@ +{ + "extends": "./tsconfig.json", + "exclude": ["__tests__", "coverage", "coverage-ts", "dist"] +} diff --git a/packages/api-rest/tsconfig.json b/packages/api-rest/tsconfig.json index f907c964821..dc03839b6c7 100644 --- a/packages/api-rest/tsconfig.json +++ b/packages/api-rest/tsconfig.json @@ -1,9 +1,4 @@ { - "extends": "../tsconfig.base.json", - "compilerOptions": { - "importHelpers": true, - "strict": true, - "noImplicitAny": true - }, - "include": ["./src"] + "extends": "../../tsconfig.json", + "include": ["./src", "__tests__"] } diff --git a/packages/api-rest/tsconfig.test.json b/packages/api-rest/tsconfig.test.json new file mode 100644 index 00000000000..ea6be8e9a50 --- /dev/null +++ b/packages/api-rest/tsconfig.test.json @@ -0,0 +1,3 @@ +{ + "extends": "./tsconfig.json" +} diff --git a/packages/api/package.json b/packages/api/package.json index fcd01017daa..edea6353034 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -18,14 +18,14 @@ "build-with-test": "npm test && npm run build", "build:umd": "webpack && webpack --config ./webpack.config.dev.js", "build:esm-cjs": "rollup -c rollup.config.mjs", - "build:cjs:watch": "rimraf dist/cjs && tsc -m commonjs --outDir dist/cjs --watch", - "build:esm:watch": "rimraf dist/esm && tsc -m esnext --outDir dist/esm --watch", + "build:cjs:watch": "rimraf dist/cjs && tsc -p tsconfig.watch.json -m commonjs --outDir dist/cjs --watch", + "build:esm:watch": "rimraf dist/esm && tsc -p tsconfig.watch.json -m esnext --outDir dist/esm --watch", "build": "npm run clean && npm run build:esm-cjs && npm run build:umd", "clean": "npm run clean:size && rimraf dist lib lib-esm", "clean:size": "rimraf dual-publish-tmp tmp*", "format": "echo \"Not implemented\"", "lint": "tslint 'src/**/*.ts' && npm run ts-coverage", - "ts-coverage": "typescript-coverage-report -p ./tsconfig.json -t 88" + "ts-coverage": "typescript-coverage-report -p ./tsconfig.build.json -t 88" }, "exports": { ".": { diff --git a/packages/api/tsconfig.build.json b/packages/api/tsconfig.build.json new file mode 100644 index 00000000000..314ac8e3997 --- /dev/null +++ b/packages/api/tsconfig.build.json @@ -0,0 +1,4 @@ +{ + "extends": "./tsconfig.json", + "exclude": ["__tests__", "__mocks__", "coverage", "coverage-ts", "dist"] +} diff --git a/packages/api/tsconfig.json b/packages/api/tsconfig.json index e477014534b..0ab4c069ecc 100644 --- a/packages/api/tsconfig.json +++ b/packages/api/tsconfig.json @@ -1,11 +1,7 @@ { - "extends": "../tsconfig.base.json", + "extends": "../../tsconfig.json", "compilerOptions": { - "importHelpers": true, - "strict": true, - "noImplicitAny": true, - "strictNullChecks": true, - "skipLibCheck": true + "strictNullChecks": true }, - "include": ["./src"] + "include": ["./src", "__tests__", "__mocks__"] } diff --git a/packages/api/tsconfig.test.json b/packages/api/tsconfig.test.json new file mode 100644 index 00000000000..ea6be8e9a50 --- /dev/null +++ b/packages/api/tsconfig.test.json @@ -0,0 +1,3 @@ +{ + "extends": "./tsconfig.json" +} diff --git a/packages/auth/package.json b/packages/auth/package.json index d401586d046..41f35865be4 100644 --- a/packages/auth/package.json +++ b/packages/auth/package.json @@ -20,14 +20,14 @@ "build-with-test": "npm test && npm run build", "build:umd": "webpack && webpack --config ./webpack.config.dev.js", "build:esm-cjs": "rollup -c rollup.config.mjs", - "build:cjs:watch": "rimraf dist/cjs && tsc -m commonjs --outDir dist/cjs --watch", - "build:esm:watch": "rimraf dist/esm && tsc -m esnext --outDir dist/esm --watch", + "build:cjs:watch": "rimraf dist/cjs && tsc -p tsconfig.watch.json -m commonjs --outDir dist/cjs --watch", + "build:esm:watch": "rimraf dist/esm && tsc -p tsconfig.watch.json -m esnext --outDir dist/esm --watch", "build": "npm run clean && npm run build:esm-cjs && npm run build:umd", "clean": "npm run clean:size && rimraf lib-esm lib dist", "clean:size": "rimraf dual-publish-tmp tmp*", "format": "echo \"Not implemented\"", "lint": "tslint '{src}/**/*.ts' && npm run ts-coverage", - "ts-coverage": "typescript-coverage-report -p ./tsconfig.json -t 91.18" + "ts-coverage": "typescript-coverage-report -p ./tsconfig.build.json -t 91.18" }, "typesVersions": { ">=4.2": { diff --git a/packages/auth/tsconfig.build.json b/packages/auth/tsconfig.build.json new file mode 100644 index 00000000000..b2cce3f37c9 --- /dev/null +++ b/packages/auth/tsconfig.build.json @@ -0,0 +1,4 @@ +{ + "extends": "./tsconfig.json", + "exclude": ["__tests__", "coverage", "coverage-ts", "dist"] +} diff --git a/packages/auth/tsconfig.json b/packages/auth/tsconfig.json index a9f3435dd5a..dc03839b6c7 100644 --- a/packages/auth/tsconfig.json +++ b/packages/auth/tsconfig.json @@ -1,10 +1,4 @@ { - "extends": "../tsconfig.base.json", - "compilerOptions": { - "importHelpers": true, - "types": ["jest", "node"], - "strict": true, - "noImplicitAny": true - }, - "include": ["src"] + "extends": "../../tsconfig.json", + "include": ["./src", "__tests__"] } diff --git a/packages/auth/tsconfig.test.json b/packages/auth/tsconfig.test.json new file mode 100644 index 00000000000..ab13dce0bd9 --- /dev/null +++ b/packages/auth/tsconfig.test.json @@ -0,0 +1,7 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + // TODO(test): enable noImplicitAny for tests + "noImplicitAny": false + } +} diff --git a/packages/aws-amplify/package.json b/packages/aws-amplify/package.json index e1e37530f38..595818f33d2 100644 --- a/packages/aws-amplify/package.json +++ b/packages/aws-amplify/package.json @@ -240,15 +240,15 @@ "build-with-test": "npm run clean && npm test && tsc && webpack -p", "build:umd": "webpack && webpack --config ./webpack.config.dev.js", "build:esm-cjs": "rollup -c rollup.config.mjs", - "build:cjs:watch": "rimraf dist/cjs && tsc -m commonjs --outDir dist/cjs --watch", - "build:esm:watch": "rimraf dist/esm && tsc -m es6 --outDir dist/esm --watch", + "build:cjs:watch": "rimraf dist/cjs && tsc -p tsconfig.watch.json -m commonjs --outDir dist/cjs --watch", + "build:esm:watch": "rimraf dist/esm && tsc -p tsconfig.watch.json -m es6 --outDir dist/esm --watch", "build": "npm run clean && npm run build:esm-cjs && npm run build:umd", "clean": "rimraf lib-esm lib dist", "format": "echo \"Not implemented\"", "lint": "tslint 'src/**/*.ts' && npm run ts-coverage", "generate-docs-local": "typedoc --out docs src", "generate-docs-root": "typedoc --out ../../docs src", - "ts-coverage": "typescript-coverage-report -p ./tsconfig.json -t 93.26" + "ts-coverage": "typescript-coverage-report -p ./tsconfig.build.json -t 93.26" }, "repository": { "type": "git", diff --git a/packages/aws-amplify/tsconfig.build.json b/packages/aws-amplify/tsconfig.build.json new file mode 100644 index 00000000000..b2cce3f37c9 --- /dev/null +++ b/packages/aws-amplify/tsconfig.build.json @@ -0,0 +1,4 @@ +{ + "extends": "./tsconfig.json", + "exclude": ["__tests__", "coverage", "coverage-ts", "dist"] +} diff --git a/packages/aws-amplify/tsconfig.json b/packages/aws-amplify/tsconfig.json index aed335f0bbc..dc03839b6c7 100644 --- a/packages/aws-amplify/tsconfig.json +++ b/packages/aws-amplify/tsconfig.json @@ -1,8 +1,4 @@ { - "extends": "../tsconfig.base.json", - "compilerOptions": { - "strict": true, - "noImplicitAny": true - }, - "include": ["./src"] + "extends": "../../tsconfig.json", + "include": ["./src", "__tests__"] } diff --git a/packages/aws-amplify/tsconfig.test.json b/packages/aws-amplify/tsconfig.test.json new file mode 100644 index 00000000000..ea6be8e9a50 --- /dev/null +++ b/packages/aws-amplify/tsconfig.test.json @@ -0,0 +1,3 @@ +{ + "extends": "./tsconfig.json" +} diff --git a/packages/core/package.json b/packages/core/package.json index 3fb89debb54..ea8696827cc 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -21,8 +21,8 @@ "build-with-test": "npm test && npm run build", "build:umd": "webpack && webpack --config ./webpack.config.dev.js", "build:esm-cjs": "rollup -c rollup.config.mjs", - "build:cjs:watch": "rimraf dist/cjs && tsc -m commonjs --outDir dist/cjs --watch", - "build:esm:watch": "rimraf dist/esm && tsc -m esnext --outDir dist/esm --watch", + "build:cjs:watch": "rimraf dist/cjs && tsc -p tsconfig.watch.json -m commonjs --outDir dist/cjs --watch", + "build:esm:watch": "rimraf dist/esm && tsc -p tsconfig.watch.json -m esnext --outDir dist/esm --watch", "build": "npm run clean && npm run generate-version && npm run build:esm-cjs && npm run build:umd", "generate-version": "genversion src/Platform/version.ts --es6 --semi --source ../aws-amplify", "clean": "npm run clean:size && rimraf dist lib lib-esm", @@ -30,7 +30,7 @@ "format": "echo \"Not implemented\"", "lint": "tslint 'src/**/*.ts' && npm run ts-coverage", "prepublishOnly": "npm run build", - "ts-coverage": "typescript-coverage-report -p ./tsconfig.json -t 92.36" + "ts-coverage": "typescript-coverage-report -p ./tsconfig.build.json -t 92.36" }, "repository": { "type": "git", diff --git a/packages/core/tsconfig.build.json b/packages/core/tsconfig.build.json new file mode 100644 index 00000000000..b2cce3f37c9 --- /dev/null +++ b/packages/core/tsconfig.build.json @@ -0,0 +1,4 @@ +{ + "extends": "./tsconfig.json", + "exclude": ["__tests__", "coverage", "coverage-ts", "dist"] +} diff --git a/packages/core/tsconfig.json b/packages/core/tsconfig.json index 22343ad4f8b..dc03839b6c7 100644 --- a/packages/core/tsconfig.json +++ b/packages/core/tsconfig.json @@ -1,12 +1,4 @@ { - "extends": "../tsconfig.base.json", - "compilerOptions": { - "importHelpers": false, - "strict": true, - "noImplicitAny": true - }, - "include": ["./src"], - "watchOptions": { - "excludeDirectories": ["lib*"] - } + "extends": "../../tsconfig.json", + "include": ["./src", "__tests__"] } diff --git a/packages/core/tsconfig.test.json b/packages/core/tsconfig.test.json new file mode 100644 index 00000000000..f08eadc99db --- /dev/null +++ b/packages/core/tsconfig.test.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + // TODO(test): enable noImplicitAny for tests + "noImplicitAny": false, + "types": ["node", "jest", "jsdom"] + } +} diff --git a/packages/datastore-storage-adapter/package.json b/packages/datastore-storage-adapter/package.json index ba1a7ed3239..6327771cd2d 100644 --- a/packages/datastore-storage-adapter/package.json +++ b/packages/datastore-storage-adapter/package.json @@ -14,13 +14,13 @@ "build-with-test": "npm test && npm run build", "build:umd": "webpack && webpack --config ./webpack.config.dev.js", "build:esm-cjs": "rollup -c rollup.config.mjs", - "build:cjs:watch": "rimraf dist/cjs && tsc -m commonjs --outDir dist/cjs --watch", - "build:esm:watch": "rimraf dist/esm && tsc -m esnext --outDir dist/esm --watch", + "build:cjs:watch": "rimraf dist/cjs && tsc -p tsconfig.watch.json -m commonjs --outDir dist/cjs --watch", + "build:esm:watch": "rimraf dist/esm && tsc -p tsconfig.watch.json -m esnext --outDir dist/esm --watch", "build": "npm run clean && npm run build:esm-cjs && npm run build:umd", "clean": "rimraf dist lib lib-esm", "format": "echo \"Not implemented\"", "lint": "tslint '{__tests__,src}/**/*.ts' && npm run ts-coverage", - "ts-coverage": "typescript-coverage-report -p ./tsconfig.json -t 94.16" + "ts-coverage": "typescript-coverage-report -p ./tsconfig.build.json -t 94.16" }, "repository": { "type": "git", diff --git a/packages/datastore-storage-adapter/tsconfig.build.json b/packages/datastore-storage-adapter/tsconfig.build.json new file mode 100644 index 00000000000..48e8892d1b1 --- /dev/null +++ b/packages/datastore-storage-adapter/tsconfig.build.json @@ -0,0 +1,4 @@ +{ + "extends": "./tsconfig.json", + "exclude": ["__tests__", "ExpoSQLiteAdapter", "SQLiteAdapter"] +} diff --git a/packages/datastore-storage-adapter/tsconfig.json b/packages/datastore-storage-adapter/tsconfig.json index b21bccd02ed..b46af9f634e 100755 --- a/packages/datastore-storage-adapter/tsconfig.json +++ b/packages/datastore-storage-adapter/tsconfig.json @@ -1,4 +1,3 @@ -//WARNING: If you are manually specifying files to compile then the tsconfig.json is completely ignored, you must use command line flags { "compilerOptions": { "target": "es2020", @@ -22,8 +21,7 @@ "allowSyntheticDefaultImports": true, "esModuleInterop": true, "typeRoots": ["./node_modules/@types", "../../node_modules/@types"], - // temporary fix "types": ["jest", "node", "lodash"] }, - "include": ["src/**/*"] + "include": ["src/**/*", "ExpoSQLiteAdapter", "SQLiteAdapter", "__tests__"] } diff --git a/packages/datastore-storage-adapter/tsconfig.test.json b/packages/datastore-storage-adapter/tsconfig.test.json new file mode 100644 index 00000000000..3ab6a9946a1 --- /dev/null +++ b/packages/datastore-storage-adapter/tsconfig.test.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "paths": { + "~/*": ["./*", "../datastore/*"] + } + } +} diff --git a/packages/datastore/package.json b/packages/datastore/package.json index f627aa6c1f1..2b7ca18bc3d 100644 --- a/packages/datastore/package.json +++ b/packages/datastore/package.json @@ -19,14 +19,14 @@ "build-with-test": "npm test && npm run build", "build:umd": "webpack && webpack --config ./webpack.config.dev.js", "build:esm-cjs": "rollup -c rollup.config.mjs", - "build:cjs:watch": "rimraf dist/cjs && tsc -m commonjs --outDir dist/cjs --watch", - "build:esm:watch": "rimraf dist/esm && tsc -m esnext --outDir dist/esm --watch", + "build:cjs:watch": "rimraf dist/cjs && tsc -p tsconfig.watch.json -m commonjs --outDir dist/cjs --watch", + "build:esm:watch": "rimraf dist/esm && tsc -p tsconfig.watch.json -m esnext --outDir dist/esm --watch", "build": "npm run clean && npm run build:esm-cjs && npm run build:umd", "clean": "npm run clean:size && rimraf dist lib lib-esm", "clean:size": "rimraf dual-publish-tmp tmp*", "format": "echo \"Not implemented\" && npm run ts-coverage", "lint": "tslint '{__tests__,src}/**/*.ts' && npm run ts-coverage", - "ts-coverage": "typescript-coverage-report -p ./tsconfig.json -t 92.05" + "ts-coverage": "typescript-coverage-report -p ./tsconfig.build.json -t 92.05" }, "repository": { "type": "git", diff --git a/packages/datastore/tsconfig.build.json b/packages/datastore/tsconfig.build.json new file mode 100644 index 00000000000..b2cce3f37c9 --- /dev/null +++ b/packages/datastore/tsconfig.build.json @@ -0,0 +1,4 @@ +{ + "extends": "./tsconfig.json", + "exclude": ["__tests__", "coverage", "coverage-ts", "dist"] +} diff --git a/packages/datastore/tsconfig.json b/packages/datastore/tsconfig.json index cba85ceb461..09b66161a33 100755 --- a/packages/datastore/tsconfig.json +++ b/packages/datastore/tsconfig.json @@ -1,10 +1,9 @@ { - "extends": "../tsconfig.base.json", + "extends": "../../tsconfig.json", "compilerOptions": { "importHelpers": false, "strict": false, - "noImplicitAny": false, - "skipLibCheck": true + "noImplicitAny": false }, - "include": ["./src"] + "include": ["./src", "__tests__"] } diff --git a/packages/datastore/tsconfig.test.json b/packages/datastore/tsconfig.test.json new file mode 100644 index 00000000000..ab13dce0bd9 --- /dev/null +++ b/packages/datastore/tsconfig.test.json @@ -0,0 +1,7 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + // TODO(test): enable noImplicitAny for tests + "noImplicitAny": false + } +} diff --git a/packages/geo/package.json b/packages/geo/package.json index 68ad9b5c08a..df9fecf660c 100644 --- a/packages/geo/package.json +++ b/packages/geo/package.json @@ -19,14 +19,14 @@ "build-with-test": "npm test && npm run build", "build:umd": "webpack && webpack --config ./webpack.config.dev.js", "build:esm-cjs": "rollup -c rollup.config.mjs", - "build:cjs:watch": "rimraf dist/cjs && tsc -m commonjs --outDir dist/cjs --watch", - "build:esm:watch": "rimraf dist/esm && tsc -m esnext --outDir dist/esm --watch", + "build:cjs:watch": "rimraf dist/cjs && tsc -p tsconfig.watch.json -m commonjs --outDir dist/cjs --watch", + "build:esm:watch": "rimraf dist/esm && tsc -p tsconfig.watch.json -m esnext --outDir dist/esm --watch", "build": "npm run clean && npm run build:esm-cjs && npm run build:umd", "clean": "npm run clean:size && rimraf dist lib lib-esm", "clean:size": "rimraf dual-publish-tmp tmp*", "format": "echo \"Not implemented\"", "lint": "tslint '{__tests__,src}/**/*.ts' && npm run ts-coverage", - "ts-coverage": "typescript-coverage-report -p ./tsconfig.json -t 84.00" + "ts-coverage": "typescript-coverage-report -p ./tsconfig.build.json -t 84.00" }, "exports": { ".": { diff --git a/packages/geo/tsconfig.build.json b/packages/geo/tsconfig.build.json new file mode 100644 index 00000000000..b2cce3f37c9 --- /dev/null +++ b/packages/geo/tsconfig.build.json @@ -0,0 +1,4 @@ +{ + "extends": "./tsconfig.json", + "exclude": ["__tests__", "coverage", "coverage-ts", "dist"] +} diff --git a/packages/geo/tsconfig.json b/packages/geo/tsconfig.json index 3c7d5bf3f32..16ddbdaf8cf 100644 --- a/packages/geo/tsconfig.json +++ b/packages/geo/tsconfig.json @@ -1,10 +1,7 @@ { - "extends": "../tsconfig.base.json", + "extends": "../../tsconfig.json", "compilerOptions": { - "strict": true, - "importHelpers": true, - "typeRoots": ["./node_modules/@types", "../../node_modules/@types"], - "types": ["node", "jest"] + "noImplicitAny": false }, - "include": ["lib*/**/*.ts", "src"] + "include": ["./src", "__tests__"] } diff --git a/packages/geo/tsconfig.test.json b/packages/geo/tsconfig.test.json new file mode 100644 index 00000000000..ea6be8e9a50 --- /dev/null +++ b/packages/geo/tsconfig.test.json @@ -0,0 +1,3 @@ +{ + "extends": "./tsconfig.json" +} diff --git a/packages/interactions/package.json b/packages/interactions/package.json index 2469ffafe57..7a4c4250eac 100644 --- a/packages/interactions/package.json +++ b/packages/interactions/package.json @@ -16,14 +16,14 @@ "build-with-test": "npm run clean && npm run build", "build:umd": "webpack && webpack --config ./webpack.config.dev.js", "build:esm-cjs": "rollup -c rollup.config.mjs", - "build:cjs:watch": "rimraf dist/cjs && tsc -m commonjs --outDir dist/cjs --watch", - "build:esm:watch": "rimraf dist/esm && tsc -m esnext --outDir dist/esm --watch", + "build:cjs:watch": "rimraf dist/cjs && tsc -p tsconfig.watch.json -m commonjs --outDir dist/cjs --watch", + "build:esm:watch": "rimraf dist/esm && tsc -p tsconfig.watch.json -m esnext --outDir dist/esm --watch", "build": "npm run clean && npm run build:esm-cjs && npm run build:umd", "clean": "npm run clean:size && rimraf dist lib lib-esm", "clean:size": "rimraf dual-publish-tmp tmp*", "format": "echo \"Not implemented\"", "lint": "tslint 'src/**/*.ts' && npm run ts-coverage", - "ts-coverage": "typescript-coverage-report -p ./tsconfig.json -t 88.6" + "ts-coverage": "typescript-coverage-report -p ./tsconfig.build.json -t 88.6" }, "typesVersions": { ">=4.2": { diff --git a/packages/interactions/tsconfig.build.json b/packages/interactions/tsconfig.build.json new file mode 100644 index 00000000000..b2cce3f37c9 --- /dev/null +++ b/packages/interactions/tsconfig.build.json @@ -0,0 +1,4 @@ +{ + "extends": "./tsconfig.json", + "exclude": ["__tests__", "coverage", "coverage-ts", "dist"] +} diff --git a/packages/interactions/tsconfig.json b/packages/interactions/tsconfig.json index f907c964821..dc03839b6c7 100644 --- a/packages/interactions/tsconfig.json +++ b/packages/interactions/tsconfig.json @@ -1,9 +1,4 @@ { - "extends": "../tsconfig.base.json", - "compilerOptions": { - "importHelpers": true, - "strict": true, - "noImplicitAny": true - }, - "include": ["./src"] + "extends": "../../tsconfig.json", + "include": ["./src", "__tests__"] } diff --git a/packages/interactions/tsconfig.test.json b/packages/interactions/tsconfig.test.json new file mode 100644 index 00000000000..ab13dce0bd9 --- /dev/null +++ b/packages/interactions/tsconfig.test.json @@ -0,0 +1,7 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + // TODO(test): enable noImplicitAny for tests + "noImplicitAny": false + } +} diff --git a/packages/notifications/package.json b/packages/notifications/package.json index ebc4563dd03..03eebb23e3a 100644 --- a/packages/notifications/package.json +++ b/packages/notifications/package.json @@ -16,14 +16,14 @@ "build-with-test": "npm run clean && npm run build", "build:umd": "webpack && webpack --config ./webpack.config.dev.js", "build:esm-cjs": "rollup -c rollup.config.mjs", - "build:cjs:watch": "rimraf dist/cjs && tsc -m commonjs --outDir dist/cjs --watch", - "build:esm:watch": "rimraf dist/esm && tsc -m esnext --outDir dist/esm --watch", + "build:cjs:watch": "rimraf dist/cjs && tsc -p tsconfig.watch.json -m commonjs --outDir dist/cjs --watch", + "build:esm:watch": "rimraf dist/esm && tsc -p tsconfig.watch.json -m esnext --outDir dist/esm --watch", "build": "npm run clean && npm run build:esm-cjs && npm run build:umd", "clean": "npm run clean:size && rimraf dist lib lib-esm", "clean:size": "rimraf dual-publish-tmp tmp*", "format": "echo \"Not implemented\"", "lint": "tslint 'src/**/*.ts' && npm run ts-coverage", - "ts-coverage": "typescript-coverage-report -p ./tsconfig.json -t 88.21" + "ts-coverage": "typescript-coverage-report -p ./tsconfig.build.json -t 88.21" }, "typesVersions": { ">=4.2": { diff --git a/packages/notifications/tsconfig.build.json b/packages/notifications/tsconfig.build.json new file mode 100644 index 00000000000..b2cce3f37c9 --- /dev/null +++ b/packages/notifications/tsconfig.build.json @@ -0,0 +1,4 @@ +{ + "extends": "./tsconfig.json", + "exclude": ["__tests__", "coverage", "coverage-ts", "dist"] +} diff --git a/packages/notifications/tsconfig.json b/packages/notifications/tsconfig.json index 3c0bca8b5e2..b12eb4ece76 100755 --- a/packages/notifications/tsconfig.json +++ b/packages/notifications/tsconfig.json @@ -1,11 +1,7 @@ { - "extends": "../tsconfig.base.json", + "extends": "../../tsconfig.json", "compilerOptions": { - "target": "esnext", - "lib": ["dom", "es2019", "esnext.asynciterable", "esnext"], - "importHelpers": false, - "strict": true, - "noImplicitAny": true + "importHelpers": false }, - "include": ["./src"] + "include": ["./src", "__tests__"] } diff --git a/packages/notifications/tsconfig.test.json b/packages/notifications/tsconfig.test.json new file mode 100644 index 00000000000..ab13dce0bd9 --- /dev/null +++ b/packages/notifications/tsconfig.test.json @@ -0,0 +1,7 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + // TODO(test): enable noImplicitAny for tests + "noImplicitAny": false + } +} diff --git a/packages/predictions/package.json b/packages/predictions/package.json index 7ec8be4c3a0..e07b38391f6 100644 --- a/packages/predictions/package.json +++ b/packages/predictions/package.json @@ -16,8 +16,8 @@ "build-with-test": "npm run clean && npm run build", "build:umd": "webpack && webpack --config ./webpack.config.dev.js", "build:esm-cjs": "rollup -c rollup.config.mjs", - "build:cjs:watch": "rimraf dist/cjs && tsc -m commonjs --outDir dist/cjs --watch", - "build:esm:watch": "rimraf dist/esm && tsc -m esnext --outDir dist/esm --watch", + "build:cjs:watch": "rimraf dist/cjs && tsc -p tsconfig.watch.json -m commonjs --outDir dist/cjs --watch", + "build:esm:watch": "rimraf dist/esm && tsc -p tsconfig.watch.json -m esnext --outDir dist/esm --watch", "build": "npm run clean && npm run build:esm-cjs && npm run build:umd", "clean": "npm run clean:size && rimraf dist lib lib-esm", "clean:size": "rimraf dual-publish-tmp tmp*", @@ -25,7 +25,7 @@ "lint": "tslint 'src/**/*.ts' && npm run ts-coverage", "generate-docs-local": "typedoc --out docs src", "generate-docs-root": "typedoc --out ../../docs src", - "ts-coverage": "typescript-coverage-report -p ./tsconfig.json -t 87.84" + "ts-coverage": "typescript-coverage-report -p ./tsconfig.build.json -t 87.84" }, "repository": { "type": "git", diff --git a/packages/predictions/tsconfig.build.json b/packages/predictions/tsconfig.build.json new file mode 100644 index 00000000000..b2cce3f37c9 --- /dev/null +++ b/packages/predictions/tsconfig.build.json @@ -0,0 +1,4 @@ +{ + "extends": "./tsconfig.json", + "exclude": ["__tests__", "coverage", "coverage-ts", "dist"] +} diff --git a/packages/predictions/tsconfig.json b/packages/predictions/tsconfig.json index 10adbc8c549..dc03839b6c7 100644 --- a/packages/predictions/tsconfig.json +++ b/packages/predictions/tsconfig.json @@ -1,8 +1,4 @@ { - "extends": "../tsconfig.base.json", - "compilerOptions": { - "strict": true, - "noImplicitAny": true - }, - "include": ["src"] + "extends": "../../tsconfig.json", + "include": ["./src", "__tests__"] } diff --git a/packages/predictions/tsconfig.test.json b/packages/predictions/tsconfig.test.json new file mode 100644 index 00000000000..51b154258d3 --- /dev/null +++ b/packages/predictions/tsconfig.test.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + // TODO(test): enable noImplicitAny for tests + "noImplicitAny": false, + "strict": false + } +} diff --git a/packages/pubsub/package.json b/packages/pubsub/package.json index b3f4b4e53b1..33a17e05362 100644 --- a/packages/pubsub/package.json +++ b/packages/pubsub/package.json @@ -16,14 +16,14 @@ "build-with-test": "npm run clean && npm run build", "build:umd": "webpack && webpack --config ./webpack.config.dev.js", "build:esm-cjs": "rollup -c rollup.config.mjs && cp -R src/vendor dist/cjs/vendor && cp -R src/vendor dist/esm/vendor", - "build:cjs:watch": "rimraf dist/cjs && tsc -m commonjs --outDir dist/cjs --watch", - "build:esm:watch": "rimraf dist/esm && tsc -m esnext --outDir dist/esm --watch", + "build:cjs:watch": "rimraf dist/cjs && tsc -p tsconfig.watch.json -m commonjs --outDir dist/cjs --watch", + "build:esm:watch": "rimraf dist/esm && tsc -p tsconfig.watch.json -m esnext --outDir dist/esm --watch", "build": "npm run clean && npm run build:esm-cjs && npm run build:umd", "clean": "npm run clean:size && rimraf dist lib lib-esm", "clean:size": "rimraf dual-publish-tmp tmp*", "format": "echo \"Not implemented\"", "lint": "tslint 'src/**/*.ts' && npm run ts-coverage", - "ts-coverage": "typescript-coverage-report -p ./tsconfig.json -t 93.0 -i src/vendor/paho-mqtt.js" + "ts-coverage": "typescript-coverage-report -p ./tsconfig.build.json -t 93.0 -i src/vendor/paho-mqtt.js" }, "typesVersions": { ">=4.2": { diff --git a/packages/pubsub/tsconfig.build.json b/packages/pubsub/tsconfig.build.json new file mode 100644 index 00000000000..314ac8e3997 --- /dev/null +++ b/packages/pubsub/tsconfig.build.json @@ -0,0 +1,4 @@ +{ + "extends": "./tsconfig.json", + "exclude": ["__tests__", "__mocks__", "coverage", "coverage-ts", "dist"] +} diff --git a/packages/pubsub/tsconfig.json b/packages/pubsub/tsconfig.json index cb4becbc018..aed9e00cf0f 100644 --- a/packages/pubsub/tsconfig.json +++ b/packages/pubsub/tsconfig.json @@ -1,10 +1,4 @@ { - "extends": "../tsconfig.base.json", - "compilerOptions": { - "importHelpers": true, - "strict": true, - "noImplicitAny": true, - "outDir": "./lib/" - }, - "include": ["./src/**/*.ts"] + "extends": "../../tsconfig.json", + "include": ["./src", "__tests__", "__mocks__"] } diff --git a/packages/pubsub/tsconfig.test.json b/packages/pubsub/tsconfig.test.json new file mode 100644 index 00000000000..ab13dce0bd9 --- /dev/null +++ b/packages/pubsub/tsconfig.test.json @@ -0,0 +1,7 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + // TODO(test): enable noImplicitAny for tests + "noImplicitAny": false + } +} diff --git a/packages/react-native/package.json b/packages/react-native/package.json index 8153e4834af..d7cfcd6cf5c 100644 --- a/packages/react-native/package.json +++ b/packages/react-native/package.json @@ -15,8 +15,8 @@ "test:android": "./android/gradlew test -p ./android", "build-with-test": "npm run clean && npm test && tsc", "build:esm-cjs": "rollup -c rollup.config.mjs", - "build:cjs:watch": "rimraf dist/cjs && tsc -p ./tsconfig.build.json -m commonjs --outDir dist/cjs --watch", - "build:esm:watch": "rimraf dist/esm && tsc -p ./tsconfig.build.json -m esnext --outDir dist/esm --watch", + "build:cjs:watch": "rimraf dist/cjs && tsc -p tsconfig.watch.json -m commonjs --outDir dist/cjs --watch", + "build:esm:watch": "rimraf dist/esm && tsc -p tsconfig.watch.json -m esnext --outDir dist/esm --watch", "build": "npm run clean && npm run build:esm-cjs", "clean": "rimraf lib-esm lib dist", "format": "echo \"Not implemented\"", diff --git a/packages/react-native/rollup.config.mjs b/packages/react-native/rollup.config.mjs index a299129900e..5f2e054bc06 100644 --- a/packages/react-native/rollup.config.mjs +++ b/packages/react-native/rollup.config.mjs @@ -18,23 +18,13 @@ const config = defineConfig([ { input: input, output: cjsOutput, - plugins: [ - typescript({ - ...cjsTSOptions, - tsconfig: 'tsconfig.build.json', - }), - ], + plugins: [typescript(cjsTSOptions)], }, // ESM config { input: input, output: esmOutput, - plugins: [ - typescript({ - ...esmTSOptions, - tsconfig: 'tsconfig.build.json', - }), - ], + plugins: [typescript(esmTSOptions)], }, ]); diff --git a/packages/react-native/tsconfig.build.json b/packages/react-native/tsconfig.build.json index 507d6e739b0..91c33fee6d5 100644 --- a/packages/react-native/tsconfig.build.json +++ b/packages/react-native/tsconfig.build.json @@ -1,5 +1,5 @@ { "extends": "./tsconfig.json", "include": ["src"], - "exclude": ["example"] + "exclude": ["example", "__tests__"] } diff --git a/packages/react-native/tsconfig.json b/packages/react-native/tsconfig.json index eee06a92ae0..7b2a145dbb7 100755 --- a/packages/react-native/tsconfig.json +++ b/packages/react-native/tsconfig.json @@ -1,16 +1,12 @@ -//WARNING: If you are manually specifying files to compile then the tsconfig.json is completely ignored, you must use command line flags { - "extends": "../tsconfig.base.json", + "extends": "../../tsconfig.json", "compilerOptions": { + "rootDirs": ["src"], + "baseUrl": ".", "paths": { "@aws-amplify/react-native": ["./src/index"] }, - "allowSyntheticDefaultImports": true, - "noImplicitAny": true, - "jsx": "react", - "lib": ["esnext"], - "resolveJsonModule": true, - "strict": true, - "skipLibCheck": true - } + "jsx": "react" + }, + "include": ["./src", "example"] } diff --git a/packages/react-native/tsconfig.test.json b/packages/react-native/tsconfig.test.json new file mode 100644 index 00000000000..ea6be8e9a50 --- /dev/null +++ b/packages/react-native/tsconfig.test.json @@ -0,0 +1,3 @@ +{ + "extends": "./tsconfig.json" +} diff --git a/packages/rtn-push-notification/package.json b/packages/rtn-push-notification/package.json index f6a1e290678..f896aa34377 100644 --- a/packages/rtn-push-notification/package.json +++ b/packages/rtn-push-notification/package.json @@ -15,13 +15,13 @@ "test:android": "./android/gradlew test -p ./android", "build-with-test": "npm run clean && npm test && tsc", "build:esm-cjs": "rollup -c rollup.config.mjs", - "build:cjs:watch": "rimraf dist/cjs && tsc -m commonjs --outDir dist/cjs --watch", - "build:esm:watch": "rimraf dist/esm && tsc -m esnext --outDir dist/esm --watch", + "build:cjs:watch": "rimraf dist/cjs && tsc -p tsconfig.watch.json -m commonjs --outDir dist/cjs --watch", + "build:esm:watch": "rimraf dist/esm && tsc -p tsconfig.watch.json -m esnext --outDir dist/esm --watch", "build": "npm run clean && npm run build:esm-cjs", "clean": "rimraf lib-esm lib dist", "format": "echo \"Not implemented\"", "lint": "tslint 'src/**/*.ts' && npm run ts-coverage", - "ts-coverage": "typescript-coverage-report -p ./tsconfig.json -t 99" + "ts-coverage": "typescript-coverage-report -p ./tsconfig.build.json -t 99" }, "devDependencies": { "@rollup/plugin-typescript": "11.1.5", diff --git a/packages/rtn-push-notification/tsconfig.build.json b/packages/rtn-push-notification/tsconfig.build.json new file mode 100644 index 00000000000..b2cce3f37c9 --- /dev/null +++ b/packages/rtn-push-notification/tsconfig.build.json @@ -0,0 +1,4 @@ +{ + "extends": "./tsconfig.json", + "exclude": ["__tests__", "coverage", "coverage-ts", "dist"] +} diff --git a/packages/rtn-push-notification/tsconfig.json b/packages/rtn-push-notification/tsconfig.json index b0bed2b668d..b12eb4ece76 100755 --- a/packages/rtn-push-notification/tsconfig.json +++ b/packages/rtn-push-notification/tsconfig.json @@ -1,9 +1,7 @@ { - "extends": "../tsconfig.base.json", + "extends": "../../tsconfig.json", "compilerOptions": { - "importHelpers": false, - "strict": true, - "noImplicitAny": true + "importHelpers": false }, - "include": ["./src"] + "include": ["./src", "__tests__"] } diff --git a/packages/rtn-push-notification/tsconfig.test.json b/packages/rtn-push-notification/tsconfig.test.json new file mode 100644 index 00000000000..ea6be8e9a50 --- /dev/null +++ b/packages/rtn-push-notification/tsconfig.test.json @@ -0,0 +1,3 @@ +{ + "extends": "./tsconfig.json" +} diff --git a/packages/rtn-web-browser/package.json b/packages/rtn-web-browser/package.json index 4498a651d39..9f254262b17 100644 --- a/packages/rtn-web-browser/package.json +++ b/packages/rtn-web-browser/package.json @@ -15,8 +15,8 @@ "test:android": "./android/gradlew test -p ./android", "build-with-test": "npm run clean && npm test && tsc", "build:esm-cjs": "rollup -c rollup.config.mjs", - "build:cjs:watch": "rimraf dist/cjs && tsc -m commonjs --outDir dist/cjs --watch", - "build:esm:watch": "rimraf dist/esm && tsc -m esnext --outDir dist/esm --watch", + "build:cjs:watch": "rimraf dist/cjs && tsc -p tsconfig.watch.json -m commonjs --outDir dist/cjs --watch", + "build:esm:watch": "rimraf dist/esm && tsc -p tsconfig.watch.json -m esnext --outDir dist/esm --watch", "build": "npm run clean && npm run build:esm-cjs", "clean": "rimraf dist lib lib-esm", "format": "echo \"Not implemented\"", diff --git a/packages/rtn-web-browser/tsconfig.build.json b/packages/rtn-web-browser/tsconfig.build.json new file mode 100644 index 00000000000..b2cce3f37c9 --- /dev/null +++ b/packages/rtn-web-browser/tsconfig.build.json @@ -0,0 +1,4 @@ +{ + "extends": "./tsconfig.json", + "exclude": ["__tests__", "coverage", "coverage-ts", "dist"] +} diff --git a/packages/rtn-web-browser/tsconfig.json b/packages/rtn-web-browser/tsconfig.json index b0bed2b668d..b12eb4ece76 100755 --- a/packages/rtn-web-browser/tsconfig.json +++ b/packages/rtn-web-browser/tsconfig.json @@ -1,9 +1,7 @@ { - "extends": "../tsconfig.base.json", + "extends": "../../tsconfig.json", "compilerOptions": { - "importHelpers": false, - "strict": true, - "noImplicitAny": true + "importHelpers": false }, - "include": ["./src"] + "include": ["./src", "__tests__"] } diff --git a/packages/rtn-web-browser/tsconfig.test.json b/packages/rtn-web-browser/tsconfig.test.json new file mode 100644 index 00000000000..ea6be8e9a50 --- /dev/null +++ b/packages/rtn-web-browser/tsconfig.test.json @@ -0,0 +1,3 @@ +{ + "extends": "./tsconfig.json" +} diff --git a/packages/storage/package.json b/packages/storage/package.json index d8769b0ece6..81fab8e6519 100644 --- a/packages/storage/package.json +++ b/packages/storage/package.json @@ -26,8 +26,8 @@ "build-with-test": "npm test && npm run build", "build:umd": "webpack && webpack --config ./webpack.config.dev.js", "build:esm-cjs": "rollup -c rollup.config.mjs", - "build:cjs:watch": "rimraf dist/cjs && tsc -m commonjs --outDir dist/cjs --watch", - "build:esm:watch": "rimraf dist/esm && tsc -m esnext --outDir dist/esm --watch", + "build:cjs:watch": "rimraf dist/cjs && tsc -p tsconfig.watch.json -m commonjs --outDir dist/cjs --watch", + "build:esm:watch": "rimraf dist/esm && tsc -p tsconfig.watch.json -m esnext --outDir dist/esm --watch", "build": "npm run clean && npm run build:esm-cjs && npm run build:umd", "clean": "npm run clean:size && rimraf lib-esm lib dist", "clean:size": "rimraf dual-publish-tmp tmp*", diff --git a/packages/storage/tsconfig.build.json b/packages/storage/tsconfig.build.json index af6adca185d..b2cce3f37c9 100644 --- a/packages/storage/tsconfig.build.json +++ b/packages/storage/tsconfig.build.json @@ -1,5 +1,4 @@ { - "extends": "../tsconfig.base.json", - "compilerOptions": {}, - "include": ["lib*/**/*.ts", "src"] + "extends": "./tsconfig.json", + "exclude": ["__tests__", "coverage", "coverage-ts", "dist"] } diff --git a/packages/storage/tsconfig.json b/packages/storage/tsconfig.json index df37be20748..dc03839b6c7 100644 --- a/packages/storage/tsconfig.json +++ b/packages/storage/tsconfig.json @@ -1,10 +1,4 @@ { - "extends": "../tsconfig.base.json", - "compilerOptions": { - "importHelpers": true, - "strict": true, - "noImplicitAny": true, - "resolveJsonModule": true - }, - "include": ["./src"] + "extends": "../../tsconfig.json", + "include": ["./src", "__tests__"] } diff --git a/packages/storage/tsconfig.test.json b/packages/storage/tsconfig.test.json new file mode 100644 index 00000000000..ab13dce0bd9 --- /dev/null +++ b/packages/storage/tsconfig.test.json @@ -0,0 +1,7 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + // TODO(test): enable noImplicitAny for tests + "noImplicitAny": false + } +} diff --git a/rollup/common.mjs b/rollup/common.mjs index a054b04f82a..93aa3ad872e 100644 --- a/rollup/common.mjs +++ b/rollup/common.mjs @@ -1,7 +1,7 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 -const defaultTSConfigPath = './tsconfig.json'; +const defaultTSConfigPath = './tsconfig.build.json'; /** @type {import("rollup").OutputOptions}*/ export const cjsOutput = { diff --git a/packages/tsconfig.base.json b/tsconfig.json similarity index 65% rename from packages/tsconfig.base.json rename to tsconfig.json index 1c06ec0456d..7a38e92756a 100644 --- a/packages/tsconfig.base.json +++ b/tsconfig.json @@ -1,7 +1,10 @@ { "compilerOptions": { + "declaration": true, + "downlevelIteration": true, "esModuleInterop": true, - "noImplicitAny": false, + "importHelpers": true, + "incremental": true, "lib": [ "dom", "dom.iterable", @@ -11,14 +14,16 @@ "es2019", "es2020.promise" ], - "downlevelIteration": true, - "target": "es2020", "moduleResolution": "node", - "declaration": true, "noEmitOnError": true, - "incremental": true, - "importHelpers": true, + "noImplicitAny": true, "skipLibCheck": true, - "types": ["node"] - } + "strict": true, + "sourceMap": true, + "resolveJsonModule": true, + "target": "es2020", + "module": "es2020", + "types": ["node", "jest"] + }, + "exclude": ["node_modules", "dist", ".eslintrc.js", "scripts"] } From 8b3b20461289873f53f6c77bb231d2dea3a39743 Mon Sep 17 00:00:00 2001 From: Hui Zhao Date: Mon, 29 Jan 2024 09:39:16 -0800 Subject: [PATCH 3/9] chore(repo): promote rollup dependencies into workspace - remove unused build.js script --- package.json | 9 +- packages/adapter-nextjs/package.json | 5 +- packages/analytics/package.json | 4 +- packages/api-graphql/package.json | 4 +- packages/api-rest/package.json | 4 +- packages/api/package.json | 4 - packages/auth/package.json | 4 +- packages/aws-amplify/package.json | 4 - packages/core/package.json | 4 +- .../datastore-storage-adapter/package.json | 2 - .../datastore-storage-adapter/tsconfig.json | 1 + packages/datastore/package.json | 4 +- packages/geo/package.json | 4 +- packages/interactions/package.json | 4 +- packages/notifications/package.json | 4 +- packages/predictions/package.json | 4 +- packages/pubsub/package.json | 4 +- packages/react-native/package.json | 4 +- packages/rtn-push-notification/package.json | 4 +- packages/rtn-web-browser/package.json | 4 +- packages/storage/package.json | 5 +- rollup/common.mjs | 7 +- scripts/build.js | 251 ----------- scripts/rollup-externals.js | 83 ---- scripts/utility.js | 51 --- yarn.lock | 392 +++++------------- 26 files changed, 120 insertions(+), 750 deletions(-) delete mode 100644 scripts/build.js delete mode 100644 scripts/rollup-externals.js delete mode 100644 scripts/utility.js diff --git a/package.json b/package.json index 39c186492e2..cb926b74190 100644 --- a/package.json +++ b/package.json @@ -81,6 +81,7 @@ "@babel/preset-env": "^7.0.0", "@babel/preset-react": "^7.0.0", "@lerna/legacy-package-management": "^7.4.2", + "@rollup/plugin-typescript": "^11.1.6", "@size-limit/dual-publish": "^8.1.0", "@size-limit/file": "^8.1.0", "@size-limit/webpack": "^8.1.0", @@ -98,12 +99,7 @@ "license-check-and-add": "^4.0.5", "prettier": "^3.1.0", "rimraf": "^2.6.2", - "rollup": "^0.67.4", - "rollup-plugin-commonjs": "^9.2.0", - "rollup-plugin-json": "^3.1.0", - "rollup-plugin-node-resolve": "^4.0.0", - "rollup-plugin-sourcemaps": "^0.4.2", - "rollup-plugin-typescript": "^1.0.0", + "rollup": "^4.9.6", "size-limit": "^8.1.0", "terser-webpack-plugin": "^5.3.6", "ts-jest": "^29.1.1", @@ -117,7 +113,6 @@ "webpack": "^5.75.0", "webpack-bundle-analyzer": "^4.7.0", "webpack-cli": "^5.0.0", - "winston": "^3.2.1", "wml": "0.0.83" }, "resolutions": { diff --git a/packages/adapter-nextjs/package.json b/packages/adapter-nextjs/package.json index e4df330fd45..ad2590a2255 100644 --- a/packages/adapter-nextjs/package.json +++ b/packages/adapter-nextjs/package.json @@ -11,15 +11,13 @@ "cookie": "0.5.0" }, "devDependencies": { - "@rollup/plugin-typescript": "11.1.5", "@types/cookie": "0.5.1", "@types/node": "^20.3.1", "@types/react": "^18.2.13", "@types/react-dom": "^18.2.6", "aws-amplify": "6.0.13", "jest-fetch-mock": "3.0.3", - "next": ">= 13.5.0 < 15.0.0", - "rollup": "3.29.4" + "next": ">= 13.5.0 < 15.0.0" }, "publishConfig": { "access": "public" @@ -62,6 +60,7 @@ "build": "npm run clean && npm run build:esm-cjs", "build-with-test": "npm test && npm run build", "build:esm-cjs": "rollup -c rollup.config.mjs", + "build:esm-cjs:watch": "npm run build:esm-cjs -- --watch", "build:cjs:watch": "rimraf dist/cjs && tsc -p tsconfig.watch.json -m commonjs --outDir dist/cjs --watch", "build:esm:watch": "rimraf dist/esm && tsc -p tsconfig.watch.json -m esnext --outDir dist/esm --watch", "clean": "npm run clean:size && rimraf dist", diff --git a/packages/analytics/package.json b/packages/analytics/package.json index 884a15967f6..1ea661f8014 100644 --- a/packages/analytics/package.json +++ b/packages/analytics/package.json @@ -106,8 +106,6 @@ "devDependencies": { "@aws-amplify/core": "6.0.13", "@aws-amplify/react-native": "1.0.13", - "@aws-sdk/types": "3.398.0", - "@rollup/plugin-typescript": "11.1.5", - "rollup": "3.29.4" + "@aws-sdk/types": "3.398.0" } } diff --git a/packages/api-graphql/package.json b/packages/api-graphql/package.json index 710f4db7aba..a3c59a24c9b 100644 --- a/packages/api-graphql/package.json +++ b/packages/api-graphql/package.json @@ -72,9 +72,7 @@ }, "homepage": "https://aws-amplify.github.io/", "devDependencies": { - "@aws-amplify/data-schema": "^0.12.11", - "@rollup/plugin-typescript": "11.1.5", - "rollup": "3.29.4" + "@aws-amplify/data-schema": "^0.12.11" }, "files": [ "dist/cjs", diff --git a/packages/api-rest/package.json b/packages/api-rest/package.json index 48ef2df5fa7..dae870611bb 100644 --- a/packages/api-rest/package.json +++ b/packages/api-rest/package.json @@ -88,9 +88,7 @@ }, "devDependencies": { "@aws-amplify/core": "6.0.13", - "@aws-amplify/react-native": "1.0.13", - "@rollup/plugin-typescript": "11.1.5", - "rollup": "3.29.4" + "@aws-amplify/react-native": "1.0.13" }, "size-limit": [ { diff --git a/packages/api/package.json b/packages/api/package.json index edea6353034..797a8f9f08c 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -67,10 +67,6 @@ "url": "https://github.com/aws/aws-amplify/issues" }, "homepage": "https://aws-amplify.github.io/", - "devDependencies": { - "@rollup/plugin-typescript": "11.1.5", - "rollup": "3.29.4" - }, "files": [ "dist/cjs", "dist/esm", diff --git a/packages/auth/package.json b/packages/auth/package.json index 41f35865be4..30b9183d788 100644 --- a/packages/auth/package.json +++ b/packages/auth/package.json @@ -99,8 +99,6 @@ "devDependencies": { "@aws-amplify/core": "6.0.13", "@aws-amplify/react-native": "1.0.13", - "@jest/test-sequencer": "^29.7.0", - "@rollup/plugin-typescript": "11.1.5", - "rollup": "3.29.4" + "@jest/test-sequencer": "^29.7.0" } } diff --git a/packages/aws-amplify/package.json b/packages/aws-amplify/package.json index 595818f33d2..93f581e7576 100644 --- a/packages/aws-amplify/package.json +++ b/packages/aws-amplify/package.json @@ -284,10 +284,6 @@ "@aws-amplify/storage": "6.0.13", "tslib": "^2.5.0" }, - "devDependencies": { - "@rollup/plugin-typescript": "11.1.5", - "rollup": "3.29.4" - }, "size-limit": [ { "name": "[Analytics] record (Pinpoint)", diff --git a/packages/core/package.json b/packages/core/package.json index ea8696827cc..3215a21c678 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -61,10 +61,8 @@ }, "devDependencies": { "@aws-amplify/react-native": "1.0.13", - "@rollup/plugin-typescript": "11.1.5", "@types/js-cookie": "3.0.2", - "genversion": "^2.2.0", - "rollup": "3.29.4" + "genversion": "^2.2.0" }, "size-limit": [ { diff --git a/packages/datastore-storage-adapter/package.json b/packages/datastore-storage-adapter/package.json index 6327771cd2d..a7a8572b6e9 100644 --- a/packages/datastore-storage-adapter/package.json +++ b/packages/datastore-storage-adapter/package.json @@ -38,12 +38,10 @@ "devDependencies": { "@aws-amplify/core": "6.0.13", "@aws-amplify/datastore": "5.0.13", - "@rollup/plugin-typescript": "11.1.5", "@types/react-native-sqlite-storage": "5.0.1", "expo-file-system": "13.1.4", "expo-sqlite": "10.1.0", "react-native-sqlite-storage": "5.0.0", - "rollup": "3.29.4", "sqlite3": "^5.0.2" } } diff --git a/packages/datastore-storage-adapter/tsconfig.json b/packages/datastore-storage-adapter/tsconfig.json index b46af9f634e..7032f9a2cf5 100755 --- a/packages/datastore-storage-adapter/tsconfig.json +++ b/packages/datastore-storage-adapter/tsconfig.json @@ -3,6 +3,7 @@ "target": "es2020", "noImplicitAny": false, "downlevelIteration": true, + "incremental": true, "lib": [ "es5", "es2015", diff --git a/packages/datastore/package.json b/packages/datastore/package.json index 2b7ca18bc3d..eec00515bb7 100644 --- a/packages/datastore/package.json +++ b/packages/datastore/package.json @@ -57,13 +57,11 @@ "devDependencies": { "@aws-amplify/core": "6.0.13", "@aws-amplify/react-native": "1.0.13", - "@rollup/plugin-typescript": "11.1.5", "@types/uuid-validate": "^0.0.1", "dexie": "3.2.2", "dexie-export-import": "1.0.3", "fake-indexeddb": "^4.0.2", - "graphql": "15.8.0", - "rollup": "3.29.4" + "graphql": "15.8.0" }, "size-limit": [ { diff --git a/packages/geo/package.json b/packages/geo/package.json index df9fecf660c..fd6e247063d 100644 --- a/packages/geo/package.json +++ b/packages/geo/package.json @@ -76,9 +76,7 @@ "@aws-amplify/core": "^6.0.0" }, "devDependencies": { - "@aws-amplify/core": "6.0.13", - "@rollup/plugin-typescript": "11.1.5", - "rollup": "3.29.4" + "@aws-amplify/core": "6.0.13" }, "size-limit": [ { diff --git a/packages/interactions/package.json b/packages/interactions/package.json index 7a4c4250eac..9b09a10d73f 100644 --- a/packages/interactions/package.json +++ b/packages/interactions/package.json @@ -81,9 +81,7 @@ "uuid": "^9.0.0" }, "devDependencies": { - "@aws-amplify/core": "6.0.13", - "@rollup/plugin-typescript": "11.1.5", - "rollup": "3.29.4" + "@aws-amplify/core": "6.0.13" }, "size-limit": [ { diff --git a/packages/notifications/package.json b/packages/notifications/package.json index 03eebb23e3a..d634211bfe8 100644 --- a/packages/notifications/package.json +++ b/packages/notifications/package.json @@ -99,8 +99,6 @@ }, "devDependencies": { "@aws-amplify/core": "6.0.13", - "@aws-amplify/react-native": "1.0.13", - "@rollup/plugin-typescript": "11.1.5", - "rollup": "3.29.4" + "@aws-amplify/react-native": "1.0.13" } } diff --git a/packages/predictions/package.json b/packages/predictions/package.json index e07b38391f6..9b57980d452 100644 --- a/packages/predictions/package.json +++ b/packages/predictions/package.json @@ -59,9 +59,7 @@ "@aws-amplify/core": "^6.0.0" }, "devDependencies": { - "@aws-amplify/core": "6.0.13", - "@rollup/plugin-typescript": "11.1.5", - "rollup": "3.29.4" + "@aws-amplify/core": "6.0.13" }, "size-limit": [ { diff --git a/packages/pubsub/package.json b/packages/pubsub/package.json index 33a17e05362..861fbe830d5 100644 --- a/packages/pubsub/package.json +++ b/packages/pubsub/package.json @@ -84,9 +84,7 @@ "@aws-amplify/core": "^6.0.0" }, "devDependencies": { - "@aws-amplify/core": "6.0.13", - "@rollup/plugin-typescript": "11.1.5", - "rollup": "3.29.4" + "@aws-amplify/core": "6.0.13" }, "size-limit": [ { diff --git a/packages/react-native/package.json b/packages/react-native/package.json index d7cfcd6cf5c..14ef481d580 100644 --- a/packages/react-native/package.json +++ b/packages/react-native/package.json @@ -37,11 +37,9 @@ "@aws-amplify/rtn-web-browser": "1.0.13", "@react-native-async-storage/async-storage": "^1.17.12", "@react-native-community/netinfo": "4.7.0", - "@rollup/plugin-typescript": "11.1.5", "@types/base-64": "1.0.0", "react-native": "0.71.0", - "react-native-get-random-values": "1.9.0", - "rollup": "3.29.4" + "react-native-get-random-values": "1.9.0" }, "repository": { "type": "git", diff --git a/packages/rtn-push-notification/package.json b/packages/rtn-push-notification/package.json index f896aa34377..db09334a983 100644 --- a/packages/rtn-push-notification/package.json +++ b/packages/rtn-push-notification/package.json @@ -24,9 +24,7 @@ "ts-coverage": "typescript-coverage-report -p ./tsconfig.build.json -t 99" }, "devDependencies": { - "@rollup/plugin-typescript": "11.1.5", - "@types/react-native": "0.70.0", - "rollup": "3.29.4" + "@types/react-native": "0.70.0" }, "repository": { "type": "git", diff --git a/packages/rtn-web-browser/package.json b/packages/rtn-web-browser/package.json index 9f254262b17..ec40e417f56 100644 --- a/packages/rtn-web-browser/package.json +++ b/packages/rtn-web-browser/package.json @@ -24,10 +24,8 @@ "ts-coverage": "typescript-coverage-report -p ./tsconfig.build.json -t 88.21" }, "devDependencies": { - "@rollup/plugin-typescript": "11.1.5", "@types/react-native": "0.70.0", - "react-native": "0.72.3", - "rollup": "3.29.4" + "react-native": "0.72.3" }, "repository": { "type": "git", diff --git a/packages/storage/package.json b/packages/storage/package.json index 81fab8e6519..82e8d36a987 100644 --- a/packages/storage/package.json +++ b/packages/storage/package.json @@ -102,9 +102,6 @@ }, "devDependencies": { "@aws-amplify/core": "6.0.13", - "@aws-amplify/react-native": "1.0.13", - "@rollup/plugin-json": "6.0.1", - "@rollup/plugin-typescript": "11.1.5", - "rollup": "3.29.4" + "@aws-amplify/react-native": "1.0.13" } } diff --git a/rollup/common.mjs b/rollup/common.mjs index 93aa3ad872e..7049b5a7b32 100644 --- a/rollup/common.mjs +++ b/rollup/common.mjs @@ -3,6 +3,8 @@ const defaultTSConfigPath = './tsconfig.build.json'; +const isWatch = process.env.ROLLUP_WATCH === 'true'; + /** @type {import("rollup").OutputOptions}*/ export const cjsOutput = { dir: 'dist/cjs', @@ -17,9 +19,9 @@ export const cjsTSOptions = { outDir: 'dist/cjs', declaration: false, // declarations are handled by the ESM build module: 'CommonJS', - sourceMap: false, tsconfig: defaultTSConfigPath, tsBuildInfoFile: 'dist/meta/cjs.tsbuildinfo', + noEmitOnError: !isWatch, }; /** @type {import("rollup").OutputOptions}*/ @@ -34,8 +36,7 @@ export const esmOutput = { export const esmTSOptions = { outDir: 'dist/esm', - declaration: true, - sourceMap: false, tsconfig: defaultTSConfigPath, tsBuildInfoFile: 'dist/meta/cjs.tsbuildinfo', + noEmitOnError: !isWatch, }; diff --git a/scripts/build.js b/scripts/build.js deleted file mode 100644 index 1b91e92c8bf..00000000000 --- a/scripts/build.js +++ /dev/null @@ -1,251 +0,0 @@ -// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. -// SPDX-License-Identifier: Apache-2.0 -'use strict'; - -const path = require('path'); -const utility = require('./utility'); -const ts = require('typescript'); -const externals = require('./rollup-externals'); -const winston = require('winston'); -const logger = winston.createLogger({ - level: process.env.LOG_LEVEL ? process.env.LOG_LEVEL.toLowerCase() : 'info', - transports: [ - new winston.transports.Console({ - format: winston.format.combine( - winston.format.prettyPrint(2), - winston.format.colorize({ all: true }) - ), - }), - ], -}); - -// path of root -const rootPath = path.resolve(__dirname, '../'); -// path of each package -const pkgRootPath = process.cwd(); - -const pkgTscES5OutDir = path.join(pkgRootPath, 'lib'); -const pkgTscES6OutDir = path.join(pkgRootPath, 'lib-esm'); -const pkgSrcDir = path.join(pkgRootPath, 'src'); -const typeRoots = [rootPath, pkgRootPath].map(basePath => - path.join(basePath, 'node_modules/@types') -); -const packageJsonPath = path.join(pkgRootPath, 'package'); -const packageInfo = require(packageJsonPath); -const pkgRollUpInputFile = path.join(pkgTscES5OutDir, 'index.js'); -const pkgRollUpOutputFile = path.join(pkgRootPath, packageInfo.main); - -// path of tsconfig.json file on every package -const tsconfigPath = path.join(pkgRootPath, 'tsconfig.build'); -const tsconfigInfo = require(tsconfigPath); - -const es5TsBuildInfoFilePath = path.join(pkgTscES5OutDir, '.tsbuildinfo'); -const es6TsBuildInfoFilePath = path.join(pkgTscES6OutDir, '.tsbuildinfo'); - -async function buildRollUp() { - logger.info(`Building Roll up bundle file under ${pkgRootPath}`); - const rollup = require('rollup'); - const resolve = require('rollup-plugin-node-resolve'); - const sourceMaps = require('rollup-plugin-sourcemaps'); - const json = require('rollup-plugin-json'); - - // For more info see: https://github.com/rollup/rollup/issues/1518#issuecomment-321875784 - const onwarn = warning => { - if (warning.code === 'THIS_IS_UNDEFINED') { - return; - } - console.warn(warning.message); - }; - - const inputOptions = { - pkgRollUpInputFile, - plugins: [json(), resolve({ extensions: ['.js', '.json'] }), sourceMaps()], - external: externals[packageInfo.name], - onwarn, - }; - - const outputOptions = { - pkgRollUpOutputFile, - format: 'cjs', - name: 'index', - sourcemap: true, - exports: 'named', - }; - - logger.info(`Using the rollup configuration:`); - logger.info(inputOptions); - logger.info(outputOptions); - - try { - const bundle = await rollup.rollup(inputOptions); - await bundle.write(outputOptions); - } catch (e) { - logger.error(e); - } -} - -const formatHost = { - getCanonicalFileName: path => path, - getCurrentDirectory: ts.sys.getCurrentDirectory, - getNewLine: () => ts.sys.newLine, -}; - -function runTypeScriptWithoutWatchMode(fileNames, options) { - let program = ts.createProgram(fileNames, options); - let emitResult = program.emit(); - - let allDiagnostics = ts - .getPreEmitDiagnostics(program) - .concat(emitResult.diagnostics); - - allDiagnostics.forEach(diagnostic => { - reportErrorDiagnostic(diagnostic); - }); - - let exitCode = emitResult.emitSkipped ? 1 : 0; - logger.info(`Process exiting with code '${exitCode}'.`); - process.exit(exitCode); -} - -function runTypeScriptWithWatchMode(fileNames, options) { - // https://github.com/Microsoft/TypeScript/wiki/Using-the-Compiler-API#writing-an-incremental-program-watcher - const createProgram = ts.createEmitAndSemanticDiagnosticsBuilderProgram; - - const host = ts.createWatchCompilerHost( - fileNames, - options, - ts.sys, - createProgram, - reportErrorDiagnostic, - reportWatchStatusChanged, - null - ); - - // `createWatchProgram` creates an initial program, watches files, and updates - // the program over time. - ts.createWatchProgram(host); -} - -function reportErrorDiagnostic(diagnostic) { - if (diagnostic.file) { - let { line, character } = diagnostic.file.getLineAndCharacterOfPosition( - diagnostic.start - ); - let message = ts.flattenDiagnosticMessageText(diagnostic.messageText, '\n'); - logger.error( - `${diagnostic.file.fileName} (${line + 1},${character + 1}): ${message}` - ); - } else { - logger.error( - `${ts.flattenDiagnosticMessageText( - diagnostic.messageText, - formatHost.getNewLine() - )}` - ); - } -} - -/** - * Prints a diagnostic every time the watch status changes. - * This is mainly for messages like "Starting compilation" or "Compilation completed". - */ -function reportWatchStatusChanged(diagnostic, newLine, options, errorCount) { - logger.info(ts.formatDiagnostic(diagnostic, formatHost)); -} - -async function buildES5(typeScriptCompiler, watchMode) { - if (!tsconfigInfo.extends) throw new Error('extends flag no detected'); - - const extendsCompilerOptions = ts.readConfigFile( - tsconfigInfo.extends, - ts.sys.readFile - ).config.compilerOptions; - - let compilerOptions = { - ...tsconfigInfo.compilerOptions, - ...extendsCompilerOptions, - module: 'commonjs', - tsBuildInfoFile: es5TsBuildInfoFilePath, - typeRoots, - outDir: pkgTscES5OutDir, - }; - - if (watchMode) { - compilerOptions.inlineSourceMap = true; - compilerOptions.inlineSources = true; - } else { - compilerOptions.sourceMap = true; - } - - compilerOptions = ts.convertCompilerOptionsFromJson(compilerOptions); - const include = [pkgSrcDir]; - logger.debug(`Using the typescript compiler options:`); - logger.debug(compilerOptions); - - let fileList = []; - Promise.all( - include.map(async source => { - const list = await utility.iterateFiles(source); - return (fileList = fileList.concat(list)); - }) - ).then(() => { - logger.debug('Files to be transpiled by tsc:'); - logger.debug(fileList); - typeScriptCompiler(fileList, compilerOptions.options); - }); -} - -function buildES6(typeScriptCompiler, watchMode) { - if (!tsconfigInfo.extends) throw new Error('extends flag no detected'); - - const extendsCompilerOptions = ts.readConfigFile( - tsconfigInfo.extends, - ts.sys.readFile - ).config.compilerOptions; - - let compilerOptions = { - ...tsconfigInfo.compilerOptions, - ...extendsCompilerOptions, - module: 'es2015', - tsBuildInfoFile: es6TsBuildInfoFilePath, - typeRoots, - outDir: pkgTscES6OutDir, - }; - - if (watchMode) { - compilerOptions.inlineSourceMap = true; - compilerOptions.inlineSources = true; - } else { - compilerOptions.sourceMap = true; - } - - compilerOptions = ts.convertCompilerOptionsFromJson(compilerOptions); - const include = [pkgSrcDir]; - logger.debug(`Using the typescript compiler options:`); - logger.debug(compilerOptions); - - let fileList = []; - Promise.all( - include.map(async source => { - const list = await utility.iterateFiles(source); - return (fileList = fileList.concat(list)); - }) - ).then(() => { - logger.debug('Files to be transpiled by tsc:'); - logger.debug(fileList); - typeScriptCompiler(fileList, compilerOptions.options); - }); -} - -function build(type, watchMode) { - if (type === 'rollup') buildRollUp(); - - var typeScriptCompiler = watchMode - ? runTypeScriptWithWatchMode - : runTypeScriptWithoutWatchMode; - - if (type === 'es5') buildES5(typeScriptCompiler, watchMode); - if (type === 'es6') buildES6(typeScriptCompiler, watchMode); -} - -module.exports = build; diff --git a/scripts/rollup-externals.js b/scripts/rollup-externals.js deleted file mode 100644 index 40a963b137a..00000000000 --- a/scripts/rollup-externals.js +++ /dev/null @@ -1,83 +0,0 @@ -// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. -// SPDX-License-Identifier: Apache-2.0 -const core_externals = ['aws-sdk', 'aws-sdk/global', 'react-native', 'url']; - -const analytics_externals = [ - '@aws-amplify/core', - 'uuid', - 'aws-sdk/clients/pinpoint', - 'react-native', - 'aws-sdk/clients/kinesis', -]; - -const api_externals = [ - 'axios', - 'graphql', - 'graphql/language/ast', - 'graphql/language/parser', - 'graphql/language/printer', - 'uuid', - 'zen-observable', - '@aws-amplify/core', -]; - -const auth_externals = ['@aws-amplify/core', 'amazon-cognito-auth-js']; - -const cache_externals = ['@aws-amplify/core']; - -const storage_externals = ['@aws-amplify/core', 'aws-sdk/clients/s3']; - -const interactions_externals = [ - 'aws-sdk/clients/lexruntime', - '@aws-amplify/core', - 'handlebars', -]; - -const xr_externals = ['@aws-amplify/core']; - -const pubsub_externals = [ - '@aws-amplify/core', - '@types/zen-observable', - 'uuid', - 'zen-observable', - 'paho-mqtt', -]; - -const amplify_externals = [ - '@aws-amplify/analytics', - '@aws-amplify/api', - '@aws-amplify/auth', - '@aws-amplify/core', - '@aws-amplify/interactions', - '@aws-amplify/pubsub', - '@aws-amplify/storage', - '@aws-amplify/xr', -]; - -const aws_amplify_react = [ - '@aws-amplify/auth', - '@aws-amplify/analytics', - '@aws-amplify/api', - '@aws-amplify/core', - '@aws-amplify/interactions', - '@aws-amplify/storage', - '@aws-amplify/xr', - 'react', - 'regenerator-runtime/runtime', - 'qrcode.react', -]; - -const rollup_externals = { - '@aws-amplify/analytics': analytics_externals, - '@aws-amplify/api': api_externals, - '@aws-amplify/auth': auth_externals, - 'aws-amplify': amplify_externals, - 'aws-amplify-react': aws_amplify_react, - '@aws-amplify/core': core_externals, - '@aws-amplify/interactions': interactions_externals, - '@aws-amplify/pubsub': pubsub_externals, - '@aws-amplify/storage': storage_externals, - '@aws-amplify/xr': xr_externals, -}; - -module.exports = rollup_externals; diff --git a/scripts/utility.js b/scripts/utility.js deleted file mode 100644 index 23cc809af45..00000000000 --- a/scripts/utility.js +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. -// SPDX-License-Identifier: Apache-2.0 -const fs = require('fs'); -const path = require('path'); - -/** - * get an array of the files under the give path - */ -function iterateFiles(source) { - let fileList = []; - return new Promise((res, rej) => { - fs.readdir(source, function (err, files) { - if (err) { - console.error('Could not list the directory.', err); - return rej(err); - } - - Promise.all( - files.map(file => { - const filePath = path.join(source, file); - return new Promise((res, rej) => { - fs.stat(filePath, (error, stat) => { - if (error) { - console.error('Error stating file.', error); - return rej(error); - } - - if (stat.isFile()) { - fileList.push(filePath); - return res(); - } else if (stat.isDirectory()) { - iterateFiles(filePath).then(list => { - fileList = fileList.concat(list); - return res(); - }); - } else { - return res(); - } - }); - }); - }) - ).then(() => { - return res(fileList); - }); - }); - }); -} - -const utility = {}; -utility.iterateFiles = iterateFiles; -module.exports = utility; diff --git a/yarn.lock b/yarn.lock index 67b32a5216e..9be84512799 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2136,20 +2136,6 @@ resolved "https://registry.yarnpkg.com/@colors/colors/-/colors-1.5.0.tgz#bb504579c1cae923e6576a4f5da43d25f97bdbd9" integrity sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ== -"@colors/colors@1.6.0", "@colors/colors@^1.6.0": - version "1.6.0" - resolved "https://registry.yarnpkg.com/@colors/colors/-/colors-1.6.0.tgz#ec6cd237440700bc23ca23087f513c75508958b0" - integrity sha512-Ir+AOibqzrIsL6ajt3Rz3LskB7OiMVHqltZmspbW/TJuTVuyOMirVqAkjfY6JISiLHgyNqicAC8AyHHGzNd/dA== - -"@dabh/diagnostics@^2.0.2": - version "2.0.3" - resolved "https://registry.yarnpkg.com/@dabh/diagnostics/-/diagnostics-2.0.3.tgz#7f7e97ee9a725dffc7808d93668cc984e1dc477a" - integrity sha512-hrlQOIi7hAfzsMqlGSFyVucrx38O+j6wiGOf//H2ecvIEqYN4ADBSS2iLMh5UFyDunCNniUIPk/q3riFv45xRA== - dependencies: - colorspace "1.1.x" - enabled "2.0.x" - kuler "^2.0.0" - "@discoveryjs/json-ext@0.5.7", "@discoveryjs/json-ext@^0.5.0", "@discoveryjs/json-ext@^0.5.7": version "0.5.7" resolved "https://registry.yarnpkg.com/@discoveryjs/json-ext/-/json-ext-0.5.7.tgz#1d572bfbbe14b7704e0ba0f39b74815b84870d70" @@ -3774,30 +3760,88 @@ invariant "^2.2.4" nullthrows "^1.1.1" -"@rollup/plugin-json@6.0.1": - version "6.0.1" - resolved "https://registry.yarnpkg.com/@rollup/plugin-json/-/plugin-json-6.0.1.tgz#7e2efcf5ed549963f1444e010611d22f463931c0" - integrity sha512-RgVfl5hWMkxN1h/uZj8FVESvPuBJ/uf6ly6GTj0GONnkfoBN5KC0MSz+PN2OLDgYXMhtG0mWpTrkiOjoxAIevw== +"@rollup/plugin-typescript@^11.1.6": + version "11.1.6" + resolved "https://registry.yarnpkg.com/@rollup/plugin-typescript/-/plugin-typescript-11.1.6.tgz#724237d5ec12609ec01429f619d2a3e7d4d1b22b" + integrity sha512-R92yOmIACgYdJ7dJ97p4K69I8gg6IEHt8M7dUBxN3W6nrO8uUxX5ixl0yU/N3aZTi8WhPuICvOHXQvF6FaykAA== dependencies: - "@rollup/pluginutils" "^5.0.1" - -"@rollup/plugin-typescript@11.1.5": - version "11.1.5" - resolved "https://registry.yarnpkg.com/@rollup/plugin-typescript/-/plugin-typescript-11.1.5.tgz#039c763bf943a5921f3f42be255895e75764cb91" - integrity sha512-rnMHrGBB0IUEv69Q8/JGRD/n4/n6b3nfpufUu26axhUcboUzv/twfZU8fIBbTOphRAe0v8EyxzeDpKXqGHfyDA== - dependencies: - "@rollup/pluginutils" "^5.0.1" + "@rollup/pluginutils" "^5.1.0" resolve "^1.22.1" -"@rollup/pluginutils@^5.0.1": - version "5.0.5" - resolved "https://registry.yarnpkg.com/@rollup/pluginutils/-/pluginutils-5.0.5.tgz#bbb4c175e19ebfeeb8c132c2eea0ecb89941a66c" - integrity sha512-6aEYR910NyP73oHiJglti74iRyOwgFU4x3meH/H8OJx6Ry0j6cOVZ5X/wTvub7G7Ao6qaHBEaNsV3GLJkSsF+Q== +"@rollup/pluginutils@^5.1.0": + version "5.1.0" + resolved "https://registry.yarnpkg.com/@rollup/pluginutils/-/pluginutils-5.1.0.tgz#7e53eddc8c7f483a4ad0b94afb1f7f5fd3c771e0" + integrity sha512-XTIWOPPcpvyKI6L1NHo0lFlCyznUEyPmPY1mc3KpPVDYulHSTvyeLNVW00QTLIAFNhR3kYnJTQHeGqU4M3n09g== dependencies: "@types/estree" "^1.0.0" estree-walker "^2.0.2" picomatch "^2.3.1" +"@rollup/rollup-android-arm-eabi@4.9.6": + version "4.9.6" + resolved "https://registry.yarnpkg.com/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.9.6.tgz#66b8d9cb2b3a474d115500f9ebaf43e2126fe496" + integrity sha512-MVNXSSYN6QXOulbHpLMKYi60ppyO13W9my1qogeiAqtjb2yR4LSmfU2+POvDkLzhjYLXz9Rf9+9a3zFHW1Lecg== + +"@rollup/rollup-android-arm64@4.9.6": + version "4.9.6" + resolved "https://registry.yarnpkg.com/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.9.6.tgz#46327d5b86420d2307946bec1535fdf00356e47d" + integrity sha512-T14aNLpqJ5wzKNf5jEDpv5zgyIqcpn1MlwCrUXLrwoADr2RkWA0vOWP4XxbO9aiO3dvMCQICZdKeDrFl7UMClw== + +"@rollup/rollup-darwin-arm64@4.9.6": + version "4.9.6" + resolved "https://registry.yarnpkg.com/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.9.6.tgz#166987224d2f8b1e2fd28ee90c447d52271d5e90" + integrity sha512-CqNNAyhRkTbo8VVZ5R85X73H3R5NX9ONnKbXuHisGWC0qRbTTxnF1U4V9NafzJbgGM0sHZpdO83pLPzq8uOZFw== + +"@rollup/rollup-darwin-x64@4.9.6": + version "4.9.6" + resolved "https://registry.yarnpkg.com/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.9.6.tgz#a2e6e096f74ccea6e2f174454c26aef6bcdd1274" + integrity sha512-zRDtdJuRvA1dc9Mp6BWYqAsU5oeLixdfUvkTHuiYOHwqYuQ4YgSmi6+/lPvSsqc/I0Omw3DdICx4Tfacdzmhog== + +"@rollup/rollup-linux-arm-gnueabihf@4.9.6": + version "4.9.6" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.9.6.tgz#09fcd4c55a2d6160c5865fec708a8e5287f30515" + integrity sha512-oNk8YXDDnNyG4qlNb6is1ojTOGL/tRhbbKeE/YuccItzerEZT68Z9gHrY3ROh7axDc974+zYAPxK5SH0j/G+QQ== + +"@rollup/rollup-linux-arm64-gnu@4.9.6": + version "4.9.6" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.9.6.tgz#19a3c0b6315c747ca9acf86e9b710cc2440f83c9" + integrity sha512-Z3O60yxPtuCYobrtzjo0wlmvDdx2qZfeAWTyfOjEDqd08kthDKexLpV97KfAeUXPosENKd8uyJMRDfFMxcYkDQ== + +"@rollup/rollup-linux-arm64-musl@4.9.6": + version "4.9.6" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.9.6.tgz#94aaf95fdaf2ad9335983a4552759f98e6b2e850" + integrity sha512-gpiG0qQJNdYEVad+1iAsGAbgAnZ8j07FapmnIAQgODKcOTjLEWM9sRb+MbQyVsYCnA0Im6M6QIq6ax7liws6eQ== + +"@rollup/rollup-linux-riscv64-gnu@4.9.6": + version "4.9.6" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.9.6.tgz#160510e63f4b12618af4013bddf1761cf9fc9880" + integrity sha512-+uCOcvVmFUYvVDr27aiyun9WgZk0tXe7ThuzoUTAukZJOwS5MrGbmSlNOhx1j80GdpqbOty05XqSl5w4dQvcOA== + +"@rollup/rollup-linux-x64-gnu@4.9.6": + version "4.9.6" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.9.6.tgz#5ac5d068ce0726bd0a96ca260d5bd93721c0cb98" + integrity sha512-HUNqM32dGzfBKuaDUBqFB7tP6VMN74eLZ33Q9Y1TBqRDn+qDonkAUyKWwF9BR9unV7QUzffLnz9GrnKvMqC/fw== + +"@rollup/rollup-linux-x64-musl@4.9.6": + version "4.9.6" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.9.6.tgz#bafa759ab43e8eab9edf242a8259ffb4f2a57a5d" + integrity sha512-ch7M+9Tr5R4FK40FHQk8VnML0Szi2KRujUgHXd/HjuH9ifH72GUmw6lStZBo3c3GB82vHa0ZoUfjfcM7JiiMrQ== + +"@rollup/rollup-win32-arm64-msvc@4.9.6": + version "4.9.6" + resolved "https://registry.yarnpkg.com/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.9.6.tgz#1cc3416682e5a20d8f088f26657e6e47f8db468e" + integrity sha512-VD6qnR99dhmTQ1mJhIzXsRcTBvTjbfbGGwKAHcu+52cVl15AC/kplkhxzW/uT0Xl62Y/meBKDZvoJSJN+vTeGA== + +"@rollup/rollup-win32-ia32-msvc@4.9.6": + version "4.9.6" + resolved "https://registry.yarnpkg.com/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.9.6.tgz#7d2251e1aa5e8a1e47c86891fe4547a939503461" + integrity sha512-J9AFDq/xiRI58eR2NIDfyVmTYGyIZmRcvcAoJ48oDld/NTR8wyiPUu2X/v1navJ+N/FGg68LEbX3Ejd6l8B7MQ== + +"@rollup/rollup-win32-x64-msvc@4.9.6": + version "4.9.6" + resolved "https://registry.yarnpkg.com/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.9.6.tgz#2c1fb69e02a3f1506f52698cfdc3a8b6386df9a6" + integrity sha512-jqzNLhNDvIZOrt69Ce4UjGRpXJBzhUBzawMwnaDAwyHriki3XollsewxWzOzz+4yOFDkuJHtTsZFwMxhYJWmLQ== + "@semantic-ui-react/event-stack@^3.1.0": version "3.1.3" resolved "https://registry.yarnpkg.com/@semantic-ui-react/event-stack/-/event-stack-3.1.3.tgz#2862d2631d67dd846c705db2fc1ede1c468be3a1" @@ -4602,16 +4646,11 @@ "@types/estree" "*" "@types/json-schema" "*" -"@types/estree@*", "@types/estree@^1.0.0": +"@types/estree@*", "@types/estree@1.0.5", "@types/estree@^1.0.0": version "1.0.5" resolved "https://registry.yarnpkg.com/@types/estree/-/estree-1.0.5.tgz#a6ce3e556e00fd9895dd872dd172ad0d4bd687f4" integrity sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw== -"@types/estree@0.0.39": - version "0.0.39" - resolved "https://registry.yarnpkg.com/@types/estree/-/estree-0.0.39.tgz#e177e699ee1b8c22d23174caaa7422644389509f" - integrity sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw== - "@types/events@*": version "3.0.3" resolved "https://registry.yarnpkg.com/@types/events/-/events-3.0.3.tgz#a8ef894305af28d1fc6d2dfdfc98e899591ea529" @@ -4778,13 +4817,6 @@ "@types/scheduler" "*" csstype "^3.0.2" -"@types/resolve@0.0.8": - version "0.0.8" - resolved "https://registry.yarnpkg.com/@types/resolve/-/resolve-0.0.8.tgz#f26074d238e02659e323ce1a13d041eee280e194" - integrity sha512-auApPaJf3NPfe18hSoJkp8EbZzer2ISk7o8mCC3M9he/a04+gbMF97NkpD2S8riMGvm4BMRI59/SZQSaLTKpsQ== - dependencies: - "@types/node" "*" - "@types/scheduler@*": version "0.16.7" resolved "https://registry.yarnpkg.com/@types/scheduler/-/scheduler-0.16.7.tgz#d62f1bd54724c84089f51f9218393930ba4abcf4" @@ -4805,11 +4837,6 @@ resolved "https://registry.yarnpkg.com/@types/tough-cookie/-/tough-cookie-4.0.5.tgz#cb6e2a691b70cb177c6e3ae9c1d2e8b2ea8cd304" integrity sha512-/Ad8+nIOV7Rl++6f1BdKxFSMgmoqEoYbHRpPcx3JEfv8VRsQe9Z4mCXeJBzxs7mbHY/XOZZuXlRNfhpVPbs6ZA== -"@types/triple-beam@^1.3.2": - version "1.3.5" - resolved "https://registry.yarnpkg.com/@types/triple-beam/-/triple-beam-1.3.5.tgz#74fef9ffbaa198eb8b588be029f38b00299caa2c" - integrity sha512-6WaYesThRMCl19iryMYP7/x2OVgCtbIVflDGFpWnb9irXI3UjYE4AzmYuiUKY1AJstGijoY+MgUszMgRxIYTYw== - "@types/uuid-validate@^0.0.1": version "0.0.1" resolved "https://registry.yarnpkg.com/@types/uuid-validate/-/uuid-validate-0.0.1.tgz#b4eedecbd9db25851490d65a58f13feaa89dd509" @@ -5340,11 +5367,6 @@ asynckit@^0.4.0: resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" integrity sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q== -atob@^2.1.2: - version "2.1.2" - resolved "https://registry.yarnpkg.com/atob/-/atob-2.1.2.tgz#6d9517eb9e030d2436666651e86bd9f6f13533c9" - integrity sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg== - axios@^1.0.0: version "1.6.2" resolved "https://registry.yarnpkg.com/axios/-/axios-1.6.2.tgz#de67d42c755b571d3e698df1b6504cde9b0ee9f2" @@ -5675,11 +5697,6 @@ builtin-modules@^1.1.1: resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-1.1.1.tgz#270f076c5a72c02f5b65a47df94c5fe3a278892f" integrity sha512-wxXCdllwGhI2kCC0MnvTGYTMvnVZTvqgypkiTI8Pa5tcz2i6VqsqwYGgqwXji+4RgCzms6EajE4IxiUH6HH8nQ== -builtin-modules@^3.1.0: - version "3.3.0" - resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-3.3.0.tgz#cae62812b89801e9656336e46223e030386be7b6" - integrity sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw== - builtins@^1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/builtins/-/builtins-1.0.3.tgz#cb94faeb61c8696451db36534e1422f94f0aee88" @@ -6085,7 +6102,7 @@ collect-v8-coverage@^1.0.0: resolved "https://registry.yarnpkg.com/collect-v8-coverage/-/collect-v8-coverage-1.0.2.tgz#c0b29bcd33bcd0779a1344c2136051e6afd3d9e9" integrity sha512-lHl4d5/ONEbLlJvaJNtsF/Lz+WvB07u2ycqTYbdrq7UypDXailES4valYb2eWiJFxZlVmpGekfqoxQhzyFdT4Q== -color-convert@^1.9.0, color-convert@^1.9.3: +color-convert@^1.9.0: version "1.9.3" resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.3.tgz#bb71850690e1f136567de629d2d5471deda4c1e8" integrity sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg== @@ -6104,32 +6121,16 @@ color-name@1.1.3: resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25" integrity sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw== -color-name@^1.0.0, color-name@~1.1.4: +color-name@~1.1.4: version "1.1.4" resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== -color-string@^1.6.0: - version "1.9.1" - resolved "https://registry.yarnpkg.com/color-string/-/color-string-1.9.1.tgz#4467f9146f036f855b764dfb5bf8582bf342c7a4" - integrity sha512-shrVawQFojnZv6xM40anx4CkoDP+fZsw/ZerEMsW/pyzsRbElpsL/DBVW7q3ExxwusdNXI3lXpuhEZkzs8p5Eg== - dependencies: - color-name "^1.0.0" - simple-swizzle "^0.2.2" - color-support@^1.1.2, color-support@^1.1.3: version "1.1.3" resolved "https://registry.yarnpkg.com/color-support/-/color-support-1.1.3.tgz#93834379a1cc9a0c61f82f52f0d04322251bd5a2" integrity sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg== -color@^3.1.3: - version "3.2.1" - resolved "https://registry.yarnpkg.com/color/-/color-3.2.1.tgz#3544dc198caf4490c3ecc9a790b54fe9ff45e164" - integrity sha512-aBl7dZI9ENN6fUGC7mWpMTPNHmWUSNan9tuWN6ahh5ZLNk9baLJOnSMlrQkHcrfFgz2/RigjUVAjdx36VcemKA== - dependencies: - color-convert "^1.9.3" - color-string "^1.6.0" - colorette@^1.0.7: version "1.4.0" resolved "https://registry.yarnpkg.com/colorette/-/colorette-1.4.0.tgz#5190fbb87276259a86ad700bff2c6d6faa3fca40" @@ -6145,14 +6146,6 @@ colors@^1.1.2: resolved "https://registry.yarnpkg.com/colors/-/colors-1.4.0.tgz#c50491479d4c1bdaed2c9ced32cf7c7dc2360f78" integrity sha512-a+UqTh4kgZg/SlGvfbzDHpgRu7AAQOmmqRHJnxhRZICKFUT91brVhNNt58CMWU9PsBbv3PDCZUHbVxuDiH2mtA== -colorspace@1.1.x: - version "1.1.4" - resolved "https://registry.yarnpkg.com/colorspace/-/colorspace-1.1.4.tgz#8d442d1186152f60453bf8070cd66eb364e59243" - integrity sha512-BgvKJiuVu1igBUF2kEjRCZXol6wiiGbY5ipL/oVPwm0BL9sIpMIzM8IK7vwuxIIzOXMV3Ey5w+vxhm0rR/TN8w== - dependencies: - color "^3.1.3" - text-hex "1.0.x" - columnify@1.6.0: version "1.6.0" resolved "https://registry.yarnpkg.com/columnify/-/columnify-1.6.0.tgz#6989531713c9008bb29735e61e37acf5bd553cf3" @@ -6544,11 +6537,6 @@ decimal.js@^10.4.2: resolved "https://registry.yarnpkg.com/decimal.js/-/decimal.js-10.4.3.tgz#1044092884d245d1b7f65725fa4ad4c6f781cc23" integrity sha512-VBBaLc1MgL5XpzgIP7ny5Z6Nx3UrRkIViUkPUdtl9aya5amy3De1gsUUSB1g3+3sExYNjCAsAznmukyxCb1GRA== -decode-uri-component@^0.2.0: - version "0.2.2" - resolved "https://registry.yarnpkg.com/decode-uri-component/-/decode-uri-component-0.2.2.tgz#e69dbe25d37941171dd540e024c444cd5188e1e9" - integrity sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ== - dedent@0.7.0: version "0.7.0" resolved "https://registry.yarnpkg.com/dedent/-/dedent-0.7.0.tgz#2495ddbaf6eb874abb0e1be9df22d2e5a544326c" @@ -6820,11 +6808,6 @@ emojis-list@^3.0.0: resolved "https://registry.yarnpkg.com/emojis-list/-/emojis-list-3.0.0.tgz#5570662046ad29e2e916e71aae260abdff4f6a78" integrity sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q== -enabled@2.0.x: - version "2.0.0" - resolved "https://registry.yarnpkg.com/enabled/-/enabled-2.0.0.tgz#f9dd92ec2d6f4bbc0d5d1e64e21d61cd4665e7c2" - integrity sha512-AKrN98kuwOzMIdAizXGI86UFBoo26CL21UM763y1h/GMSJ4/OHU9k2YlsmBpyScFo/wbLzWQJBMCW4+IO3/+OQ== - encodeurl@~1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/encodeurl/-/encodeurl-1.0.2.tgz#ad3ff4c86ec2d029322f5a02c3a9a606c95b3f59" @@ -6977,11 +6960,6 @@ estraverse@^5.2.0: resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-5.3.0.tgz#2eea5290702f26ab8fe5370370ff86c965d21123" integrity sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA== -estree-walker@^0.6.0, estree-walker@^0.6.1: - version "0.6.1" - resolved "https://registry.yarnpkg.com/estree-walker/-/estree-walker-0.6.1.tgz#53049143f40c6eb918b23671d1fe3219f3a1b362" - integrity sha512-SqmZANLWS0mnatqbSfRP5g8OXZC12Fgg1IwNtLsyHDzJizORW4khDfjPqJZsemPWBB2uqykUah5YpQ6epsqC/w== - estree-walker@^2.0.2: version "2.0.2" resolved "https://registry.yarnpkg.com/estree-walker/-/estree-walker-2.0.2.tgz#52f010178c2a4c117a7757cfe942adb7d2da4cac" @@ -7213,11 +7191,6 @@ fb-watchman@^2.0.0: dependencies: bser "2.1.1" -fecha@^4.2.0: - version "4.2.3" - resolved "https://registry.yarnpkg.com/fecha/-/fecha-4.2.3.tgz#4d9ccdbc61e8629b259fdca67e65891448d569fd" - integrity sha512-OP2IUU6HeYKJi3i0z4A19kHMQoLVs4Hc+DPqqxI2h/DPZHTm/vjsfC6P0b4jCMy14XizLBqvndQ+UilD7707Jw== - fflate@0.7.3: version "0.7.3" resolved "https://registry.yarnpkg.com/fflate/-/fflate-0.7.3.tgz#288b034ff0e9c380eaa2feff48c787b8371b7fa5" @@ -7366,11 +7339,6 @@ flow-parser@^0.206.0: resolved "https://registry.yarnpkg.com/flow-parser/-/flow-parser-0.206.0.tgz#f4f794f8026535278393308e01ea72f31000bfef" integrity sha512-HVzoK3r6Vsg+lKvlIZzaWNBVai+FXTX1wdYhz/wVlH13tb/gOdLXmlTqy6odmTBhT5UoWUbq0k8263Qhr9d88w== -fn.name@1.x.x: - version "1.1.0" - resolved "https://registry.yarnpkg.com/fn.name/-/fn.name-1.1.0.tgz#26cad8017967aea8731bc42961d04a3d5988accc" - integrity sha512-GRnmB5gPyJpAhTQdSZTSp9uaPSvl09KoYcMQtsB9rQoOmzs9dH6ffeccH+Z+cv6P68Hu5bC6JjRh4Ah/mHSNRw== - follow-redirects@^1.15.0: version "1.15.4" resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.4.tgz#cdc7d308bf6493126b17ea2191ea0ccf3e535adf" @@ -8227,11 +8195,6 @@ is-arrayish@^0.2.1: resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d" integrity sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg== -is-arrayish@^0.3.1: - version "0.3.2" - resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.3.2.tgz#4574a2ae56f7ab206896fb431eaeed066fdf8f03" - integrity sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ== - is-binary-path@~2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-2.1.0.tgz#ea1f7f3b80f064236e83470f86c09c254fb45b09" @@ -8319,11 +8282,6 @@ is-lambda@^1.0.1: resolved "https://registry.yarnpkg.com/is-lambda/-/is-lambda-1.0.1.tgz#3d9877899e6a53efc0160504cde15f82e6f061d5" integrity sha512-z7CMFGNrENq5iFB9Bqo64Xk6Y9sg+epq1myIcdHaGnbMTYOxvzsEtdYqQUylB7LxfkvgrrjP32T6Ywciio9UIQ== -is-module@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-module/-/is-module-1.0.0.tgz#3258fb69f78c14d5b815d664336b4cffb6441591" - integrity sha512-51ypPSPCoTEIN9dy5Oy+h4pShgJmPCygKfyRCISBI+JoWT/2oJvK8QPxmwv7b/p239jXrm9M1mlQbyKJ5A152g== - is-number@^7.0.0: version "7.0.0" resolved "https://registry.yarnpkg.com/is-number/-/is-number-7.0.0.tgz#7535345b896734d5f80c4d06c50955527a14f12b" @@ -9202,11 +9160,6 @@ kleur@^3.0.3: resolved "https://registry.yarnpkg.com/kleur/-/kleur-3.0.3.tgz#a79c9ecc86ee1ce3fa6206d1216c501f147fc07e" integrity sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w== -kuler@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/kuler/-/kuler-2.0.0.tgz#e2c570a3800388fb44407e851531c1d670b061b3" - integrity sha512-Xq9nH7KlWZmXAtodXDDRE7vs6DU1gTU8zYDHDiWLSip45Egwq3plLHzPn27NgvzL2r1LMPC1vdqh98sQxtqj4A== - lcid@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/lcid/-/lcid-1.0.0.tgz#308accafa0bc483a3867b4b6f2b9506251d1b835" @@ -9469,18 +9422,6 @@ log-symbols@^4.1.0: chalk "^4.1.0" is-unicode-supported "^0.1.0" -logform@^2.3.2, logform@^2.4.0: - version "2.6.0" - resolved "https://registry.yarnpkg.com/logform/-/logform-2.6.0.tgz#8c82a983f05d6eaeb2d75e3decae7a768b2bf9b5" - integrity sha512-1ulHeNPp6k/LD8H91o7VYFBng5i1BDE7HoKxVbZiGFidS1Rj65qcywLxX+pVfAPoQJEjRdvKcusKwOupHCVOVQ== - dependencies: - "@colors/colors" "1.6.0" - "@types/triple-beam" "^1.3.2" - fecha "^4.2.0" - ms "^2.1.1" - safe-stable-stringify "^2.3.1" - triple-beam "^1.3.0" - logkitty@^0.7.1: version "0.7.1" resolved "https://registry.yarnpkg.com/logkitty/-/logkitty-0.7.1.tgz#8e8d62f4085a826e8d38987722570234e33c6aa7" @@ -9526,13 +9467,6 @@ lunr@^2.3.8: resolved "https://registry.yarnpkg.com/lunr/-/lunr-2.3.9.tgz#18b123142832337dd6e964df1a5a7707b25d35e1" integrity sha512-zTU3DaZaF3Rt9rhN3uBMGQD3dD2/vFQqnvZCDv4dl5iOzq2IZQqTxu90r4E5J+nP70J3ilqVCrbho2eWaeW8Ow== -magic-string@^0.25.2: - version "0.25.9" - resolved "https://registry.yarnpkg.com/magic-string/-/magic-string-0.25.9.tgz#de7f9faf91ef8a1c91d02c2e5314c8277dbcdd1c" - integrity sha512-RmF0AsMzgt25qzqqLc1+MbHmhdx0ojF2Fvs4XnOqz2ZOBXzzkEwc/dJQZCYHAn7v1jbVOjAZfK8msRn4BxO4VQ== - dependencies: - sourcemap-codec "^1.4.8" - make-dir@4.0.0, make-dir@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-4.0.0.tgz#c3c2307a771277cd9638305f915c29ae741b614e" @@ -10826,7 +10760,7 @@ ms@2.1.2: resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== -ms@2.1.3, ms@^2.0.0, ms@^2.1.1: +ms@2.1.3, ms@^2.0.0: version "2.1.3" resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2" integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA== @@ -11343,13 +11277,6 @@ once@^1.3.0, once@^1.3.1, once@^1.4.0: dependencies: wrappy "1" -one-time@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/one-time/-/one-time-1.0.0.tgz#e06bc174aed214ed58edede573b433bbf827cb45" - integrity sha512-5DXOiRKwuSEcQ/l0kGCF6Q3jcADFv5tSmRaJck/OqkVFcOzutB134KRSfF0xDrL39MNnqxbHBbUUcjZIhTgb2g== - dependencies: - fn.name "1.x.x" - onetime@^1.0.0: version "1.1.0" resolved "https://registry.yarnpkg.com/onetime/-/onetime-1.1.0.tgz#a1f7838f8314c516f05ecefcbc4ccfe04b4ed789" @@ -12511,11 +12438,6 @@ resolve-from@^4.0.0: resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-4.0.0.tgz#4abcd852ad32dd7baabfe9b40e00a36db5f392e6" integrity sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g== -resolve-url@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/resolve-url/-/resolve-url-0.2.1.tgz#2c637fe77c893afd2a663fe21aa9080068e2052a" - integrity sha512-ZuF55hVUQaaczgOIwqWzkEcEidmlD/xl44x1UZnhOXcYuFN2S6+rcxpG+C1N3So0wvNI3DmJICUFfu2SxhBmvg== - resolve.exports@^2.0.0: version "2.0.2" resolved "https://registry.yarnpkg.com/resolve.exports/-/resolve.exports-2.0.2.tgz#f8c934b8e6a13f539e38b7098e2e36134f01e800" @@ -12589,71 +12511,28 @@ rimraf@~2.6.2: dependencies: glob "^7.1.3" -rollup-plugin-commonjs@^9.2.0: - version "9.3.4" - resolved "https://registry.yarnpkg.com/rollup-plugin-commonjs/-/rollup-plugin-commonjs-9.3.4.tgz#2b3dddbbbded83d45c36ff101cdd29e924fd23bc" - integrity sha512-DTZOvRoiVIHHLFBCL4pFxOaJt8pagxsVldEXBOn6wl3/V21wVaj17HFfyzTsQUuou3sZL3lEJZVWKPFblJfI6w== - dependencies: - estree-walker "^0.6.0" - magic-string "^0.25.2" - resolve "^1.10.0" - rollup-pluginutils "^2.6.0" - -rollup-plugin-json@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/rollup-plugin-json/-/rollup-plugin-json-3.1.0.tgz#7c1daf60c46bc21021ea016bd00863561a03321b" - integrity sha512-BlYk5VspvGpjz7lAwArVzBXR60JK+4EKtPkCHouAWg39obk9S61hZYJDBfMK+oitPdoe11i69TlxKlMQNFC/Uw== - dependencies: - rollup-pluginutils "^2.3.1" - -rollup-plugin-node-resolve@^4.0.0: - version "4.2.4" - resolved "https://registry.yarnpkg.com/rollup-plugin-node-resolve/-/rollup-plugin-node-resolve-4.2.4.tgz#7d370f8d6fd3031006a0032c38262dd9be3c6250" - integrity sha512-t/64I6l7fZ9BxqD3XlX4ZeO6+5RLKyfpwE2CiPNUKa+GocPlQhf/C208ou8y3AwtNsc6bjSk/8/6y/YAyxCIvw== - dependencies: - "@types/resolve" "0.0.8" - builtin-modules "^3.1.0" - is-module "^1.0.0" - resolve "^1.10.0" - -rollup-plugin-sourcemaps@^0.4.2: - version "0.4.2" - resolved "https://registry.yarnpkg.com/rollup-plugin-sourcemaps/-/rollup-plugin-sourcemaps-0.4.2.tgz#62125aa94087aadf7b83ef4dfaf629b473135e87" - integrity sha512-pHUvzofmQx/C3zCkX14h9J9MbRfMjaARED8j8qOY+au4prtk2d567GD29WAHQTeGsDAVeStms3cPnRboC41YzA== +rollup@^4.9.6: + version "4.9.6" + resolved "https://registry.yarnpkg.com/rollup/-/rollup-4.9.6.tgz#4515facb0318ecca254a2ee1315e22e09efc50a0" + integrity sha512-05lzkCS2uASX0CiLFybYfVkwNbKZG5NFQ6Go0VWyogFTXXbR039UVsegViTntkk4OglHBdF54ccApXRRuXRbsg== dependencies: - rollup-pluginutils "^2.0.1" - source-map-resolve "^0.5.0" - -rollup-plugin-typescript@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/rollup-plugin-typescript/-/rollup-plugin-typescript-1.0.1.tgz#86565033b714c3d1f3aba510aad3dc519f7091e9" - integrity sha512-rwJDNn9jv/NsKZuyBb/h0jsclP4CJ58qbvZt2Q9zDIGILF2LtdtvCqMOL+Gq9IVq5MTrTlHZNrn8h7VjQgd8tw== - dependencies: - resolve "^1.10.0" - rollup-pluginutils "^2.5.0" - -rollup-pluginutils@^2.0.1, rollup-pluginutils@^2.3.1, rollup-pluginutils@^2.5.0, rollup-pluginutils@^2.6.0: - version "2.8.2" - resolved "https://registry.yarnpkg.com/rollup-pluginutils/-/rollup-pluginutils-2.8.2.tgz#72f2af0748b592364dbd3389e600e5a9444a351e" - integrity sha512-EEp9NhnUkwY8aif6bxgovPHMoMoNr2FulJziTndpt5H9RdwC47GSGuII9XxpSdzVGM0GWrNPHV6ie1LTNJPaLQ== - dependencies: - estree-walker "^0.6.1" - -rollup@3.29.4: - version "3.29.4" - resolved "https://registry.yarnpkg.com/rollup/-/rollup-3.29.4.tgz#4d70c0f9834146df8705bfb69a9a19c9e1109981" - integrity sha512-oWzmBZwvYrU0iJHtDmhsm662rC15FRXmcjCk1xD771dFDx5jJ02ufAQQTn0etB2emNk4J9EZg/yWKpsn9BWGRw== + "@types/estree" "1.0.5" optionalDependencies: + "@rollup/rollup-android-arm-eabi" "4.9.6" + "@rollup/rollup-android-arm64" "4.9.6" + "@rollup/rollup-darwin-arm64" "4.9.6" + "@rollup/rollup-darwin-x64" "4.9.6" + "@rollup/rollup-linux-arm-gnueabihf" "4.9.6" + "@rollup/rollup-linux-arm64-gnu" "4.9.6" + "@rollup/rollup-linux-arm64-musl" "4.9.6" + "@rollup/rollup-linux-riscv64-gnu" "4.9.6" + "@rollup/rollup-linux-x64-gnu" "4.9.6" + "@rollup/rollup-linux-x64-musl" "4.9.6" + "@rollup/rollup-win32-arm64-msvc" "4.9.6" + "@rollup/rollup-win32-ia32-msvc" "4.9.6" + "@rollup/rollup-win32-x64-msvc" "4.9.6" fsevents "~2.3.2" -rollup@^0.67.4: - version "0.67.4" - resolved "https://registry.yarnpkg.com/rollup/-/rollup-0.67.4.tgz#8ed6b0993337f84ec8a0387f824fa6c197e833ec" - integrity sha512-AVuP73mkb4BBMUmksQ3Jw0jTrBTU1i7rLiUYjFxLZGb3xiFmtVEg40oByphkZAsiL0bJC3hRAJUQos/e5EBd+w== - dependencies: - "@types/estree" "0.0.39" - "@types/node" "*" - run-async@^2.2.0, run-async@^2.4.0: version "2.4.1" resolved "https://registry.yarnpkg.com/run-async/-/run-async-2.4.1.tgz#8440eccf99ea3e70bd409d49aab88e10c189a455" @@ -12688,11 +12567,6 @@ safe-buffer@^5.1.0, safe-buffer@~5.2.0: resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6" integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ== -safe-stable-stringify@^2.3.1: - version "2.4.3" - resolved "https://registry.yarnpkg.com/safe-stable-stringify/-/safe-stable-stringify-2.4.3.tgz#138c84b6f6edb3db5f8ef3ef7115b8f55ccbf886" - integrity sha512-e2bDA2WJT0wxseVd4lsDP4+3ONX6HpMXQa1ZhFQ7SU+GjvORCmShbCMltrtIDfkYhVHrOcPtj+KhmDBdPdZD1g== - "safer-buffer@>= 2.1.2 < 3", "safer-buffer@>= 2.1.2 < 3.0.0": version "2.1.2" resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" @@ -12948,13 +12822,6 @@ simple-plist@^1.1.0: bplist-parser "0.3.1" plist "^3.0.5" -simple-swizzle@^0.2.2: - version "0.2.2" - resolved "https://registry.yarnpkg.com/simple-swizzle/-/simple-swizzle-0.2.2.tgz#a4da6b635ffcccca33f70d17cb92592de95e557a" - integrity sha512-JA//kQgZtbuY83m+xT+tXJkmJncGMTFT+C+g2h2R9uxkYIrE2yy9sgmcLhCnw57/WSD+Eh3J97FPEDFnbXnDUg== - dependencies: - is-arrayish "^0.3.1" - sirv@^2.0.3: version "2.0.3" resolved "https://registry.yarnpkg.com/sirv/-/sirv-2.0.3.tgz#ca5868b87205a74bef62a469ed0296abceccd446" @@ -13043,17 +12910,6 @@ source-map-js@^1.0.2: resolved "https://registry.yarnpkg.com/source-map-js/-/source-map-js-1.0.2.tgz#adbc361d9c62df380125e7f161f71c826f1e490c" integrity sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw== -source-map-resolve@^0.5.0: - version "0.5.3" - resolved "https://registry.yarnpkg.com/source-map-resolve/-/source-map-resolve-0.5.3.tgz#190866bece7553e1f8f267a2ee82c606b5509a1a" - integrity sha512-Htz+RnsXWk5+P2slx5Jh3Q66vhQj1Cllm0zvnaY98+NFx+Dv2CF/f5O/t8x+KaNdrdIAsruNzoh/KpialbqAnw== - dependencies: - atob "^2.1.2" - decode-uri-component "^0.2.0" - resolve-url "^0.2.1" - source-map-url "^0.4.0" - urix "^0.1.0" - source-map-support@0.5.13: version "0.5.13" resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.13.tgz#31b24a9c2e73c2de85066c0feb7d44767ed52932" @@ -13070,11 +12926,6 @@ source-map-support@^0.5.16, source-map-support@~0.5.20: buffer-from "^1.0.0" source-map "^0.6.0" -source-map-url@^0.4.0: - version "0.4.1" - resolved "https://registry.yarnpkg.com/source-map-url/-/source-map-url-0.4.1.tgz#0af66605a745a5a2f91cf1bbf8a7afbc283dec56" - integrity sha512-cPiFOTLUKvJFIg4SKVScy4ilPPW6rFgMgfuZJPNoDuMs3nC1HbMUycBoJw77xFIp6z1UJQJOfx6C9GMH80DiTw== - source-map@^0.5.0, source-map@^0.5.6: version "0.5.7" resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc" @@ -13090,11 +12941,6 @@ source-map@^0.7.3, source-map@^0.7.4: resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.7.4.tgz#a9bbe705c9d8846f4e08ff6765acf0f1b0898656" integrity sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA== -sourcemap-codec@^1.4.8: - version "1.4.8" - resolved "https://registry.yarnpkg.com/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz#ea804bd94857402e6992d05a38ef1ae35a9ab4c4" - integrity sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA== - spawn-sync@^1.0.15: version "1.0.15" resolved "https://registry.yarnpkg.com/spawn-sync/-/spawn-sync-1.0.15.tgz#b00799557eb7fb0c8376c29d44e8a1ea67e57476" @@ -13180,11 +13026,6 @@ ssri@^9.0.0, ssri@^9.0.1: dependencies: minipass "^3.1.1" -stack-trace@0.0.x: - version "0.0.10" - resolved "https://registry.yarnpkg.com/stack-trace/-/stack-trace-0.0.10.tgz#547c70b347e8d32b4e108ea1a2a159e5fdde19c0" - integrity sha512-KGzahc7puUKkzyMt+IqAep+TVNbKP+k2Lmwhub39m1AsTSkaDutx56aDCo+HLDzf/D26BIHTJWNiTG1KAJiQCg== - stack-utils@^2.0.3: version "2.0.6" resolved "https://registry.yarnpkg.com/stack-utils/-/stack-utils-2.0.6.tgz#aaf0748169c02fc33c8232abccf933f54a1cc34f" @@ -13522,11 +13363,6 @@ text-extensions@^1.0.0: resolved "https://registry.yarnpkg.com/text-extensions/-/text-extensions-1.9.0.tgz#1853e45fee39c945ce6f6c36b2d659b5aabc2a26" integrity sha512-wiBrwC1EhBelW12Zy26JeOUkQ5mRu+5o8rpsJk5+2t+Y5vE7e842qtZDQ2g1NpX/29HdyFeJ4nSIhI47ENSxlQ== -text-hex@1.0.x: - version "1.0.0" - resolved "https://registry.yarnpkg.com/text-hex/-/text-hex-1.0.0.tgz#69dc9c1b17446ee79a92bf5b884bb4b9127506f5" - integrity sha512-uuVGNWzgJ4yhRaNSiubPY7OjISw4sw4E5Uv0wbjp+OzcbmVU/rsT8ujgcXJhn9ypzsgr5vlzpPqP+MBBKcGvbg== - throat@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/throat/-/throat-5.0.0.tgz#c5199235803aad18754a667d659b5e72ce16764b" @@ -13637,11 +13473,6 @@ trim-newlines@^3.0.0: resolved "https://registry.yarnpkg.com/trim-newlines/-/trim-newlines-3.0.1.tgz#260a5d962d8b752425b32f3a7db0dcacd176c144" integrity sha512-c1PTsA3tYrIsLGkJkzHF+w9F2EyxfXGo4UyJc4pFL++FMjnq0HJS69T3M7d//gKrFKwy429bouPescbjecU+Zw== -triple-beam@^1.3.0: - version "1.4.1" - resolved "https://registry.yarnpkg.com/triple-beam/-/triple-beam-1.4.1.tgz#6fde70271dc6e5d73ca0c3b24e2d92afb7441984" - integrity sha512-aZbgViZrg1QNcG+LULa7nhZpJTZSLm/mXnHXnbAbjmN5aSa0y7V+wvv6+4WaBtpISJzThKy+PIPxc1Nq1EJ9mg== - ts-jest@^29.1.1: version "29.1.1" resolved "https://registry.yarnpkg.com/ts-jest/-/ts-jest-29.1.1.tgz#f58fe62c63caf7bfcc5cc6472082f79180f0815b" @@ -14047,11 +13878,6 @@ uri-js@^4.2.2: dependencies: punycode "^2.1.0" -urix@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/urix/-/urix-0.1.0.tgz#da937f7a62e21fec1fd18d49b35c2935067a6c72" - integrity sha512-Am1ousAhSLBeB9cG/7k7r2R0zj50uDRlZHPGbazid5s9rlF1F/QKYObEKSIunSjIOkJZqwRRLpvewjEkM7pSqg== - url-parse@^1.5.3: version "1.5.10" resolved "https://registry.yarnpkg.com/url-parse/-/url-parse-1.5.10.tgz#9d3c2f736c1d75dd3bd2be507dcc111f1e2ea9c1" @@ -14406,32 +14232,6 @@ window-size@^0.2.0: resolved "https://registry.yarnpkg.com/window-size/-/window-size-0.2.0.tgz#b4315bb4214a3d7058ebeee892e13fa24d98b075" integrity sha512-UD7d8HFA2+PZsbKyaOCEy8gMh1oDtHgJh1LfgjQ4zVXmYjAT/kvz3PueITKuqDiIXQe7yzpPnxX3lNc+AhQMyw== -winston-transport@^4.5.0: - version "4.6.0" - resolved "https://registry.yarnpkg.com/winston-transport/-/winston-transport-4.6.0.tgz#f1c1a665ad1b366df72199e27892721832a19e1b" - integrity sha512-wbBA9PbPAHxKiygo7ub7BYRiKxms0tpfU2ljtWzb3SjRjv5yl6Ozuy/TkXf00HTAt+Uylo3gSkNwzc4ME0wiIg== - dependencies: - logform "^2.3.2" - readable-stream "^3.6.0" - triple-beam "^1.3.0" - -winston@^3.2.1: - version "3.11.0" - resolved "https://registry.yarnpkg.com/winston/-/winston-3.11.0.tgz#2d50b0a695a2758bb1c95279f0a88e858163ed91" - integrity sha512-L3yR6/MzZAOl0DsysUXHVjOwv8mKZ71TrA/41EIduGpOOV5LQVodqN+QdQ6BS6PJ/RdIshZhq84P/fStEZkk7g== - dependencies: - "@colors/colors" "^1.6.0" - "@dabh/diagnostics" "^2.0.2" - async "^3.2.3" - is-stream "^2.0.0" - logform "^2.4.0" - one-time "^1.0.0" - readable-stream "^3.4.0" - safe-stable-stringify "^2.3.1" - stack-trace "0.0.x" - triple-beam "^1.3.0" - winston-transport "^4.5.0" - wml@0.0.83: version "0.0.83" resolved "https://registry.yarnpkg.com/wml/-/wml-0.0.83.tgz#dac784f24f06c5f007262908d229a4bdbd730457" From dd497d0ca6ef53906bff56a104ebd81c7b7d94bb Mon Sep 17 00:00:00 2001 From: Hui Zhao Date: Mon, 29 Jan 2024 12:57:55 -0800 Subject: [PATCH 4/9] chore(repo): add build:watch using rollup --- package.json | 5 ++--- packages/adapter-nextjs/package.json | 4 +--- packages/analytics/package.json | 3 +-- packages/api-graphql/package.json | 3 +-- packages/api-rest/package.json | 3 +-- packages/api/package.json | 3 +-- packages/auth/package.json | 3 +-- packages/aws-amplify/package.json | 3 +-- packages/core/package.json | 3 +-- packages/datastore-storage-adapter/package.json | 3 +-- packages/datastore/package.json | 3 +-- packages/geo/package.json | 3 +-- packages/interactions/package.json | 3 +-- packages/notifications/package.json | 3 +-- packages/predictions/package.json | 3 +-- packages/pubsub/package.json | 3 +-- packages/react-native/package.json | 3 +-- packages/rtn-push-notification/package.json | 3 +-- packages/rtn-web-browser/package.json | 3 +-- packages/storage/package.json | 3 +-- yarn.lock | 5 +++++ 21 files changed, 26 insertions(+), 42 deletions(-) diff --git a/package.json b/package.json index cb926b74190..e2feac11966 100644 --- a/package.json +++ b/package.json @@ -17,9 +17,7 @@ "test:tsc-compliance": "yarn workspace tsc-compliance-test test:compliance", "docs": "typedoc packages/**/src --name amplify-js --hideGenerator --excludePrivate --ignoreCompilerErrors --mode file --out docs/api --theme docs/amplify-theme/typedoc/ --readme README.md", "build": "lerna run build --stream && yarn test:duplicates", - "build:watch": "concurrently 'lerna run build:cjs:watch --parallel' 'lerna run build:esm:watch --parallel' --raw", - "build:esm:watch": "lerna run build:esm:watch --parallel", - "build:cjs:watch": "lerna run build:cjs:watch --parallel", + "build:watch": "concurrently 'lerna run build:watch --parallel' --raw", "build:client-types": "cd scripts/dts-bundler && yarn && yarn run build", "clean": "lerna run clean --parallel", "clean:size": "lerna run clean:size --parallel", @@ -97,6 +95,7 @@ "json-loader": "^0.5.7", "lerna": "^7.4.2", "license-check-and-add": "^4.0.5", + "mkdirp": "^3.0.1", "prettier": "^3.1.0", "rimraf": "^2.6.2", "rollup": "^4.9.6", diff --git a/packages/adapter-nextjs/package.json b/packages/adapter-nextjs/package.json index ad2590a2255..be4f88bd909 100644 --- a/packages/adapter-nextjs/package.json +++ b/packages/adapter-nextjs/package.json @@ -60,9 +60,7 @@ "build": "npm run clean && npm run build:esm-cjs", "build-with-test": "npm test && npm run build", "build:esm-cjs": "rollup -c rollup.config.mjs", - "build:esm-cjs:watch": "npm run build:esm-cjs -- --watch", - "build:cjs:watch": "rimraf dist/cjs && tsc -p tsconfig.watch.json -m commonjs --outDir dist/cjs --watch", - "build:esm:watch": "rimraf dist/esm && tsc -p tsconfig.watch.json -m esnext --outDir dist/esm --watch", + "build:watch": "npm run build:esm-cjs -- --watch", "clean": "npm run clean:size && rimraf dist", "clean:size": "rimraf dual-publish-tmp tmp*", "format": "echo \"Not implemented\"", diff --git a/packages/analytics/package.json b/packages/analytics/package.json index 1ea661f8014..58c8b746cc2 100644 --- a/packages/analytics/package.json +++ b/packages/analytics/package.json @@ -16,8 +16,7 @@ "build-with-test": "npm run clean && npm run test && npm run build", "build:umd": "webpack && webpack --config ./webpack.config.dev.js", "build:esm-cjs": "rollup -c rollup.config.mjs", - "build:cjs:watch": "rimraf dist/cjs && tsc -p tsconfig.watch.json -m commonjs --outDir dist/cjs --watch", - "build:esm:watch": "rimraf dist/esm && tsc -p tsconfig.watch.json -m esnext --outDir dist/esm --watch", + "build:watch": "npm run build:esm-cjs -- --watch", "build": "npm run clean && npm run build:esm-cjs && npm run build:umd", "clean": "npm run clean:size && rimraf dist lib lib-esm", "clean:size": "rimraf dual-publish-tmp tmp*", diff --git a/packages/api-graphql/package.json b/packages/api-graphql/package.json index a3c59a24c9b..15ec546487f 100644 --- a/packages/api-graphql/package.json +++ b/packages/api-graphql/package.json @@ -19,8 +19,7 @@ "build-with-test": "npm test && npm build", "build:umd": "webpack && webpack --config ./webpack.config.dev.js", "build:esm-cjs": "rollup -c rollup.config.mjs", - "build:cjs:watch": "rimraf dist/cjs && tsc -p tsconfig.watch.json -m commonjs --outDir dist/cjs --watch", - "build:esm:watch": "rimraf dist/esm && tsc -p tsconfig.watch.json -m esnext --outDir dist/esm --watch", + "build:watch": "npm run build:esm-cjs -- --watch", "build": "npm run clean && npm run build:esm-cjs && npm run build:umd", "clean": "npm run clean:size && rimraf dist lib lib-esm", "clean:size": "rimraf dual-publish-tmp tmp*", diff --git a/packages/api-rest/package.json b/packages/api-rest/package.json index dae870611bb..e0178f57a04 100644 --- a/packages/api-rest/package.json +++ b/packages/api-rest/package.json @@ -16,8 +16,7 @@ "build-with-test": "npm test && npm build", "build:umd": "webpack && webpack --config ./webpack.config.dev.js", "build:esm-cjs": "rollup -c rollup.config.mjs", - "build:cjs:watch": "rimraf dist/cjs && tsc -p tsconfig.watch.json -m commonjs --outDir dist/cjs --watch", - "build:esm:watch": "rimraf dist/esm && tsc -p tsconfig.watch.json -m esnext --outDir dist/esm --watch", + "build:watch": "npm run build:esm-cjs -- --watch", "build": "npm run clean && npm run build:esm-cjs && npm run build:umd", "clean": "npm run clean:size && rimraf dist lib lib-esm", "clean:size": "rimraf dual-publish-tmp tmp*", diff --git a/packages/api/package.json b/packages/api/package.json index 797a8f9f08c..c08c0f424f6 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -18,8 +18,7 @@ "build-with-test": "npm test && npm run build", "build:umd": "webpack && webpack --config ./webpack.config.dev.js", "build:esm-cjs": "rollup -c rollup.config.mjs", - "build:cjs:watch": "rimraf dist/cjs && tsc -p tsconfig.watch.json -m commonjs --outDir dist/cjs --watch", - "build:esm:watch": "rimraf dist/esm && tsc -p tsconfig.watch.json -m esnext --outDir dist/esm --watch", + "build:watch": "npm run build:esm-cjs -- --watch", "build": "npm run clean && npm run build:esm-cjs && npm run build:umd", "clean": "npm run clean:size && rimraf dist lib lib-esm", "clean:size": "rimraf dual-publish-tmp tmp*", diff --git a/packages/auth/package.json b/packages/auth/package.json index 30b9183d788..5eccee3f880 100644 --- a/packages/auth/package.json +++ b/packages/auth/package.json @@ -20,8 +20,7 @@ "build-with-test": "npm test && npm run build", "build:umd": "webpack && webpack --config ./webpack.config.dev.js", "build:esm-cjs": "rollup -c rollup.config.mjs", - "build:cjs:watch": "rimraf dist/cjs && tsc -p tsconfig.watch.json -m commonjs --outDir dist/cjs --watch", - "build:esm:watch": "rimraf dist/esm && tsc -p tsconfig.watch.json -m esnext --outDir dist/esm --watch", + "build:watch": "npm run build:esm-cjs -- --watch", "build": "npm run clean && npm run build:esm-cjs && npm run build:umd", "clean": "npm run clean:size && rimraf lib-esm lib dist", "clean:size": "rimraf dual-publish-tmp tmp*", diff --git a/packages/aws-amplify/package.json b/packages/aws-amplify/package.json index 93f581e7576..9df883111cb 100644 --- a/packages/aws-amplify/package.json +++ b/packages/aws-amplify/package.json @@ -240,8 +240,7 @@ "build-with-test": "npm run clean && npm test && tsc && webpack -p", "build:umd": "webpack && webpack --config ./webpack.config.dev.js", "build:esm-cjs": "rollup -c rollup.config.mjs", - "build:cjs:watch": "rimraf dist/cjs && tsc -p tsconfig.watch.json -m commonjs --outDir dist/cjs --watch", - "build:esm:watch": "rimraf dist/esm && tsc -p tsconfig.watch.json -m es6 --outDir dist/esm --watch", + "build:watch": "npm run build:esm-cjs -- --watch", "build": "npm run clean && npm run build:esm-cjs && npm run build:umd", "clean": "rimraf lib-esm lib dist", "format": "echo \"Not implemented\"", diff --git a/packages/core/package.json b/packages/core/package.json index 3215a21c678..3e59f46bfdd 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -21,8 +21,7 @@ "build-with-test": "npm test && npm run build", "build:umd": "webpack && webpack --config ./webpack.config.dev.js", "build:esm-cjs": "rollup -c rollup.config.mjs", - "build:cjs:watch": "rimraf dist/cjs && tsc -p tsconfig.watch.json -m commonjs --outDir dist/cjs --watch", - "build:esm:watch": "rimraf dist/esm && tsc -p tsconfig.watch.json -m esnext --outDir dist/esm --watch", + "build:watch": "npm run build:esm-cjs -- --watch", "build": "npm run clean && npm run generate-version && npm run build:esm-cjs && npm run build:umd", "generate-version": "genversion src/Platform/version.ts --es6 --semi --source ../aws-amplify", "clean": "npm run clean:size && rimraf dist lib lib-esm", diff --git a/packages/datastore-storage-adapter/package.json b/packages/datastore-storage-adapter/package.json index a7a8572b6e9..1d498dd1195 100644 --- a/packages/datastore-storage-adapter/package.json +++ b/packages/datastore-storage-adapter/package.json @@ -14,8 +14,7 @@ "build-with-test": "npm test && npm run build", "build:umd": "webpack && webpack --config ./webpack.config.dev.js", "build:esm-cjs": "rollup -c rollup.config.mjs", - "build:cjs:watch": "rimraf dist/cjs && tsc -p tsconfig.watch.json -m commonjs --outDir dist/cjs --watch", - "build:esm:watch": "rimraf dist/esm && tsc -p tsconfig.watch.json -m esnext --outDir dist/esm --watch", + "build:watch": "npm run build:esm-cjs -- --watch", "build": "npm run clean && npm run build:esm-cjs && npm run build:umd", "clean": "rimraf dist lib lib-esm", "format": "echo \"Not implemented\"", diff --git a/packages/datastore/package.json b/packages/datastore/package.json index eec00515bb7..06602e81c1f 100644 --- a/packages/datastore/package.json +++ b/packages/datastore/package.json @@ -19,8 +19,7 @@ "build-with-test": "npm test && npm run build", "build:umd": "webpack && webpack --config ./webpack.config.dev.js", "build:esm-cjs": "rollup -c rollup.config.mjs", - "build:cjs:watch": "rimraf dist/cjs && tsc -p tsconfig.watch.json -m commonjs --outDir dist/cjs --watch", - "build:esm:watch": "rimraf dist/esm && tsc -p tsconfig.watch.json -m esnext --outDir dist/esm --watch", + "build:watch": "npm run build:esm-cjs -- --watch", "build": "npm run clean && npm run build:esm-cjs && npm run build:umd", "clean": "npm run clean:size && rimraf dist lib lib-esm", "clean:size": "rimraf dual-publish-tmp tmp*", diff --git a/packages/geo/package.json b/packages/geo/package.json index fd6e247063d..f96db6de802 100644 --- a/packages/geo/package.json +++ b/packages/geo/package.json @@ -19,8 +19,7 @@ "build-with-test": "npm test && npm run build", "build:umd": "webpack && webpack --config ./webpack.config.dev.js", "build:esm-cjs": "rollup -c rollup.config.mjs", - "build:cjs:watch": "rimraf dist/cjs && tsc -p tsconfig.watch.json -m commonjs --outDir dist/cjs --watch", - "build:esm:watch": "rimraf dist/esm && tsc -p tsconfig.watch.json -m esnext --outDir dist/esm --watch", + "build:watch": "npm run build:esm-cjs -- --watch", "build": "npm run clean && npm run build:esm-cjs && npm run build:umd", "clean": "npm run clean:size && rimraf dist lib lib-esm", "clean:size": "rimraf dual-publish-tmp tmp*", diff --git a/packages/interactions/package.json b/packages/interactions/package.json index 9b09a10d73f..fbf2c7e1006 100644 --- a/packages/interactions/package.json +++ b/packages/interactions/package.json @@ -16,8 +16,7 @@ "build-with-test": "npm run clean && npm run build", "build:umd": "webpack && webpack --config ./webpack.config.dev.js", "build:esm-cjs": "rollup -c rollup.config.mjs", - "build:cjs:watch": "rimraf dist/cjs && tsc -p tsconfig.watch.json -m commonjs --outDir dist/cjs --watch", - "build:esm:watch": "rimraf dist/esm && tsc -p tsconfig.watch.json -m esnext --outDir dist/esm --watch", + "build:watch": "npm run build:esm-cjs -- --watch", "build": "npm run clean && npm run build:esm-cjs && npm run build:umd", "clean": "npm run clean:size && rimraf dist lib lib-esm", "clean:size": "rimraf dual-publish-tmp tmp*", diff --git a/packages/notifications/package.json b/packages/notifications/package.json index d634211bfe8..c6436b7b509 100644 --- a/packages/notifications/package.json +++ b/packages/notifications/package.json @@ -16,8 +16,7 @@ "build-with-test": "npm run clean && npm run build", "build:umd": "webpack && webpack --config ./webpack.config.dev.js", "build:esm-cjs": "rollup -c rollup.config.mjs", - "build:cjs:watch": "rimraf dist/cjs && tsc -p tsconfig.watch.json -m commonjs --outDir dist/cjs --watch", - "build:esm:watch": "rimraf dist/esm && tsc -p tsconfig.watch.json -m esnext --outDir dist/esm --watch", + "build:watch": "npm run build:esm-cjs -- --watch", "build": "npm run clean && npm run build:esm-cjs && npm run build:umd", "clean": "npm run clean:size && rimraf dist lib lib-esm", "clean:size": "rimraf dual-publish-tmp tmp*", diff --git a/packages/predictions/package.json b/packages/predictions/package.json index 9b57980d452..9509df20564 100644 --- a/packages/predictions/package.json +++ b/packages/predictions/package.json @@ -16,8 +16,7 @@ "build-with-test": "npm run clean && npm run build", "build:umd": "webpack && webpack --config ./webpack.config.dev.js", "build:esm-cjs": "rollup -c rollup.config.mjs", - "build:cjs:watch": "rimraf dist/cjs && tsc -p tsconfig.watch.json -m commonjs --outDir dist/cjs --watch", - "build:esm:watch": "rimraf dist/esm && tsc -p tsconfig.watch.json -m esnext --outDir dist/esm --watch", + "build:watch": "npm run build:esm-cjs -- --watch", "build": "npm run clean && npm run build:esm-cjs && npm run build:umd", "clean": "npm run clean:size && rimraf dist lib lib-esm", "clean:size": "rimraf dual-publish-tmp tmp*", diff --git a/packages/pubsub/package.json b/packages/pubsub/package.json index 861fbe830d5..7fad5a366c4 100644 --- a/packages/pubsub/package.json +++ b/packages/pubsub/package.json @@ -16,8 +16,7 @@ "build-with-test": "npm run clean && npm run build", "build:umd": "webpack && webpack --config ./webpack.config.dev.js", "build:esm-cjs": "rollup -c rollup.config.mjs && cp -R src/vendor dist/cjs/vendor && cp -R src/vendor dist/esm/vendor", - "build:cjs:watch": "rimraf dist/cjs && tsc -p tsconfig.watch.json -m commonjs --outDir dist/cjs --watch", - "build:esm:watch": "rimraf dist/esm && tsc -p tsconfig.watch.json -m esnext --outDir dist/esm --watch", + "build:watch": "mkdirp dist/esm/vendor && mkdirp dist/cjs/vendor && cp -R src/vendor dist/cjs/vendor && cp -R src/vendor dist/esm/vendor && rollup -c rollup.config.mjs --watch", "build": "npm run clean && npm run build:esm-cjs && npm run build:umd", "clean": "npm run clean:size && rimraf dist lib lib-esm", "clean:size": "rimraf dual-publish-tmp tmp*", diff --git a/packages/react-native/package.json b/packages/react-native/package.json index 14ef481d580..efc58ed7728 100644 --- a/packages/react-native/package.json +++ b/packages/react-native/package.json @@ -15,8 +15,7 @@ "test:android": "./android/gradlew test -p ./android", "build-with-test": "npm run clean && npm test && tsc", "build:esm-cjs": "rollup -c rollup.config.mjs", - "build:cjs:watch": "rimraf dist/cjs && tsc -p tsconfig.watch.json -m commonjs --outDir dist/cjs --watch", - "build:esm:watch": "rimraf dist/esm && tsc -p tsconfig.watch.json -m esnext --outDir dist/esm --watch", + "build:watch": "npm run build:esm-cjs -- --watch", "build": "npm run clean && npm run build:esm-cjs", "clean": "rimraf lib-esm lib dist", "format": "echo \"Not implemented\"", diff --git a/packages/rtn-push-notification/package.json b/packages/rtn-push-notification/package.json index db09334a983..913a6fcd5fa 100644 --- a/packages/rtn-push-notification/package.json +++ b/packages/rtn-push-notification/package.json @@ -15,8 +15,7 @@ "test:android": "./android/gradlew test -p ./android", "build-with-test": "npm run clean && npm test && tsc", "build:esm-cjs": "rollup -c rollup.config.mjs", - "build:cjs:watch": "rimraf dist/cjs && tsc -p tsconfig.watch.json -m commonjs --outDir dist/cjs --watch", - "build:esm:watch": "rimraf dist/esm && tsc -p tsconfig.watch.json -m esnext --outDir dist/esm --watch", + "build:watch": "npm run build:esm-cjs -- --watch", "build": "npm run clean && npm run build:esm-cjs", "clean": "rimraf lib-esm lib dist", "format": "echo \"Not implemented\"", diff --git a/packages/rtn-web-browser/package.json b/packages/rtn-web-browser/package.json index ec40e417f56..5ce9bd740f6 100644 --- a/packages/rtn-web-browser/package.json +++ b/packages/rtn-web-browser/package.json @@ -15,8 +15,7 @@ "test:android": "./android/gradlew test -p ./android", "build-with-test": "npm run clean && npm test && tsc", "build:esm-cjs": "rollup -c rollup.config.mjs", - "build:cjs:watch": "rimraf dist/cjs && tsc -p tsconfig.watch.json -m commonjs --outDir dist/cjs --watch", - "build:esm:watch": "rimraf dist/esm && tsc -p tsconfig.watch.json -m esnext --outDir dist/esm --watch", + "build:watch": "npm run build:esm-cjs -- --watch", "build": "npm run clean && npm run build:esm-cjs", "clean": "rimraf dist lib lib-esm", "format": "echo \"Not implemented\"", diff --git a/packages/storage/package.json b/packages/storage/package.json index 82e8d36a987..74ff0c2e57a 100644 --- a/packages/storage/package.json +++ b/packages/storage/package.json @@ -26,8 +26,7 @@ "build-with-test": "npm test && npm run build", "build:umd": "webpack && webpack --config ./webpack.config.dev.js", "build:esm-cjs": "rollup -c rollup.config.mjs", - "build:cjs:watch": "rimraf dist/cjs && tsc -p tsconfig.watch.json -m commonjs --outDir dist/cjs --watch", - "build:esm:watch": "rimraf dist/esm && tsc -p tsconfig.watch.json -m esnext --outDir dist/esm --watch", + "build:watch": "npm run build:esm-cjs -- --watch", "build": "npm run clean && npm run build:esm-cjs && npm run build:umd", "clean": "npm run clean:size && rimraf lib-esm lib dist", "clean:size": "rimraf dual-publish-tmp tmp*", diff --git a/yarn.lock b/yarn.lock index 9be84512799..b41be18dbd5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -10740,6 +10740,11 @@ mkdirp@^1.0.3, mkdirp@^1.0.4: resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-1.0.4.tgz#3eb5ed62622756d79a5f0e2a221dfebad75c2f7e" integrity sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw== +mkdirp@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-3.0.1.tgz#e44e4c5607fb279c168241713cc6e0fea9adcb50" + integrity sha512-+NsyUUAZDmo6YVHzL/stxSu3t9YS1iljliy3BSDrXJ/dkn1KYdmtZODGGjLcc9XLgVVpH4KshHB8XmZgMhaBXg== + modify-values@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/modify-values/-/modify-values-1.0.1.tgz#b3939fa605546474e3e3e3c63d64bd43b4ee6022" From 872d8254320452d224458ed7b32fe389cd930dee Mon Sep 17 00:00:00 2001 From: Hui Zhao Date: Mon, 29 Jan 2024 12:07:39 -0800 Subject: [PATCH 5/9] chore(repo): setup eslint --- .eslintrc.js | 190 +++++++ .prettierignore | 1 - .vscode/extensions.json | 3 +- .vscode/settings.json | 10 +- package.json | 14 + prettier.config.js | 3 +- yarn.lock | 1124 ++++++++++++++++++++++++++++++++++++++- 7 files changed, 1312 insertions(+), 33 deletions(-) create mode 100644 .eslintrc.js diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 00000000000..f48f12b4c3c --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,190 @@ +/** @type {import("eslint").ESLint.ConfigData}*/ +module.exports = { + root: true, + parser: '@typescript-eslint/parser', + parserOptions: { + project: './tsconfig.json', + }, + extends: [ + 'eslint:recommended', + 'standard', + 'plugin:import/errors', + 'plugin:import/recommended', + 'plugin:import/typescript', + 'plugin:@typescript-eslint/stylistic', + 'plugin:@typescript-eslint/recommended', + "plugin:prettier/recommended", + ], + plugins: [ + '@stylistic', + '@typescript-eslint', + 'unused-imports', + 'import', + 'jsdoc', + ], + env: { + es6: true, + node: true, + }, + ignorePatterns: [ + 'dist', + 'node_modules', + '.eslintrc.*', + 'rollup', + 'rollup.config.*', + 'setupTests.ts', + 'jest.setup.*', + 'jest.config.*', + // temporarily disable lint on __tests__ + '__tests__', + // will enable lint by packages + // 'adapter-nextjs', + 'analytics', + 'api', + 'api-graphql', + 'auth', + 'aws-amplify', + 'core', + 'datastore', + 'datastore-storage-adapter', + 'geo', + 'interactions', + 'notifications', + 'predictions', + 'pubsub', + 'react-native', + 'rtn-push-notification', + 'rtn-web-browser', + 'storage', + ], + rules: { + camelcase: [ + 'error', + { + allow: [ + 'graphql_headers', + // exceptions for the legacy config + /^(aws_|amazon_)/, + 'access_key', + 'secret_key', + 'session_token', + // exceptions for the auth package + 'redirect_uri', + 'response_type', + 'client_id', + 'identity_provider', + 'code_challenge', + 'code_challenge_method', + 'grant_type', + 'code_verifier', + 'logout_uri', + 'id_token', + 'access_token', + 'token_type', + 'expires_in', + 'error_description', + // exceptions for the notifications package + 'campaign_id', + 'delivery_type', + 'treatment_id', + 'campaign_activity_id', + ], + }, + ], + 'import/no-deprecated': 'warn', + 'import/no-empty-named-blocks': 'error', + 'import/no-mutable-exports': 'error', + 'import/no-relative-packages': 'error', + 'import/newline-after-import': 'error', + 'import/order': ['error', { 'newlines-between': 'always' }], + 'no-eval': 'error', + 'no-param-reassign': 'error', + 'no-shadow': 'off', + 'no-use-before-define': 'off', + 'no-useless-constructor': 'off', + 'no-trailing-spaces': 'error', + 'no-return-await': 'error', + 'object-shorthand': 'error', + 'prefer-destructuring': 'off', + 'promise/catch-or-return': [ + 'error', + { terminationMethod: ['then', 'catch', 'asCallback', 'finally'] }, + ], + 'space-before-function-paren': 'off', + 'sort-imports': ['error', { ignoreDeclarationSort: true }], + 'unused-imports/no-unused-imports': 'error', + 'unused-imports/no-unused-vars': [ + 'error', + { + vars: 'all', + varsIgnorePattern: '^_', + args: 'after-used', + argsIgnorePattern: '^_', + }, + ], + 'valid-typeof': ['error', { requireStringLiterals: false }], + '@stylistic/comma-dangle': [ + 'error', + { + arrays: 'always-multiline', + objects: 'always-multiline', + imports: 'always-multiline', + exports: 'always-multiline', + functions: 'always-multiline', + enums: 'always-multiline', + generics: 'always-multiline', + tuples: 'always-multiline', + }, + ], + '@stylistic/function-call-argument-newline': ['error', 'consistent'], + '@stylistic/indent': 'off', + '@stylistic/max-len': [ + 'error', + { + code: 120, + ignoreComments: true, + ignoreUrls: true, + ignoreStrings: true, + ignoreTemplateLiterals: true, + ignoreRegExpLiterals: true, + }, + ], + '@stylistic/padding-line-between-statements': [ + 'error', + { blankLine: 'always', prev: '*', next: 'return' }, + ], + '@typescript-eslint/method-signature-style': ['error', 'method'], + '@typescript-eslint/no-confusing-void-expression': 'error', + '@typescript-eslint/no-explicit-any': 'off', + '@typescript-eslint/no-namespace': ['error', { allowDeclarations: true }], + '@typescript-eslint/no-shadow': 'error', + '@typescript-eslint/no-var-requires': 'off', + '@typescript-eslint/no-unused-vars': 'off', + '@typescript-eslint/no-use-before-define': [ + 'error', + { functions: false, variables: false, classes: false }, + ], + '@typescript-eslint/no-useless-constructor': 'error', + '@typescript-eslint/prefer-destructuring': [ + 'error', + { object: true, array: false }, + ], + '@typescript-eslint/space-before-function-paren': [ + 'error', + { anonymous: 'never', named: 'never', asyncArrow: 'always' }, + ], + 'jsdoc/no-undefined-types': 1, + }, + settings: { + 'import/parsers': { + '@typescript-eslint/parser': ['.ts', '.tsx'], + }, + 'import/resolver': { + typescript: { + alwaysTryTypes: true, + project: ['packages/*/tsconfig.json', 'tsconfig.json'], + }, + }, + 'import/ignore': ['react-native'], + }, +}; diff --git a/.prettierignore b/.prettierignore index e92f704c401..058540b46e3 100644 --- a/.prettierignore +++ b/.prettierignore @@ -5,7 +5,6 @@ docs package.json yarn.lock package-lock.json -.eslintrc.js www .stencil PULL_REQUEST_TEMPLATE.md diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 12cb1778d76..a2352c92874 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -4,7 +4,8 @@ // List of extensions which should be recommended for users of this workspace. "recommendations": [ "esbenp.prettier-vscode", - "tombonnike.vscode-status-bar-format-toggle" + "tombonnike.vscode-status-bar-format-toggle", + "dbaeumer.vscode-eslint" ], // List of extensions recommended by VS Code that should not be recommended for users of this workspace. "unwantedRecommendations": [] diff --git a/.vscode/settings.json b/.vscode/settings.json index 7600d0c25b3..04f11be859d 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,12 +1,10 @@ { - "[typescript]": { - "editor.defaultFormatter": "esbenp.prettier-vscode" - }, - "editor.defaultFormatter": "esbenp.prettier-vscode", "editor.detectIndentation": false, - "editor.formatOnSave": true, "editor.insertSpaces": false, "editor.tabSize": 4, "prettier.requireConfig": true, - "typescript.tsdk": "node_modules/typescript/lib" + "typescript.tsdk": "node_modules/typescript/lib", + "formattingToggle.affects": [ + "editor.codeActionsOnSave.source.fixAll.eslint" + ] } diff --git a/package.json b/package.json index e2feac11966..61e3b3a0671 100644 --- a/package.json +++ b/package.json @@ -23,6 +23,7 @@ "clean:size": "lerna run clean:size --parallel", "format": "lerna run format", "lint": "lerna run lint", + "lint:fix": "lerna run lint:fix", "lint:license": "license-check-and-add add -f license_config.json", "link-all": "yarn unlink-all && lerna exec --no-bail --parallel yarn link", "unlink-all": "lerna exec --no-bail --parallel -- yarn unlink; exit 0", @@ -84,11 +85,24 @@ "@size-limit/file": "^8.1.0", "@size-limit/webpack": "^8.1.0", "@size-limit/webpack-why": "^8.1.0", + "@stylistic/eslint-plugin": "^1.5.4", "@types/jest": "^29.5.8", "@types/lodash": "4.14.182", "@types/node": "^8.9.5", "@types/puppeteer": "1.3.0", + "@typescript-eslint/eslint-plugin": "^6.20.0", + "@typescript-eslint/parser": "^6.20.0", "babel-loader": "^8.3.0", + "eslint": "^8.56.0", + "eslint-config-prettier": "^9.1.0", + "eslint-config-standard": "^17.1.0", + "eslint-import-resolver-typescript": "^3.6.1", + "eslint-plugin-import": "^2.29.1", + "eslint-plugin-jsdoc": "^48.0.4", + "eslint-plugin-n": "^16.6.2", + "eslint-plugin-prettier": "^5.1.3", + "eslint-plugin-promise": "^6.1.1", + "eslint-plugin-unused-imports": "^3.0.0", "glob": "^10.3.10", "jest": "^29.7.0", "jest-environment-jsdom": "^29.7.0", diff --git a/prettier.config.js b/prettier.config.js index e2b1a6a467c..b721b05ad0e 100644 --- a/prettier.config.js +++ b/prettier.config.js @@ -1,6 +1,7 @@ /** @type {import('prettier').Config} */ module.exports = { - trailingComma: 'es5', + trailingComma: 'all', + printWidth: 80, singleQuote: true, useTabs: true, arrowParens: 'avoid', diff --git a/yarn.lock b/yarn.lock index b41be18dbd5..e9f3f96ff3a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2,6 +2,11 @@ # yarn lockfile v1 +"@aashutoshrathi/word-wrap@^1.2.3": + version "1.2.6" + resolved "https://registry.yarnpkg.com/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz#bd9154aec9983f77b3a034ecaa015c2e4201f6cf" + integrity sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA== + "@ampproject/remapping@^2.0.0", "@ampproject/remapping@^2.2.0": version "2.2.1" resolved "https://registry.yarnpkg.com/@ampproject/remapping/-/remapping-2.2.1.tgz#99e8e11851128b8702cd57c33684f1d0f260b630" @@ -2146,6 +2151,47 @@ resolved "https://registry.yarnpkg.com/@discoveryjs/natural-compare/-/natural-compare-1.1.0.tgz#75f0642ad64701ffa9d42f1d7ada3b83f4e67cf3" integrity sha512-yuctPJs5lRXoI8LkpVZGAV6n+DKOuEsfpfcIDQ8ZjWHwazqk1QjBc4jMlof0UlZHyUqv4dwsOTooMiAmtzvwXA== +"@es-joy/jsdoccomment@~0.41.0": + version "0.41.0" + resolved "https://registry.yarnpkg.com/@es-joy/jsdoccomment/-/jsdoccomment-0.41.0.tgz#4a2f7db42209c0425c71a1476ef1bdb6dcd836f6" + integrity sha512-aKUhyn1QI5Ksbqcr3fFJj16p99QdjUxXAEuFst1Z47DRyoiMwivIH9MV/ARcJOCXVjPfjITciej8ZD2O/6qUmw== + dependencies: + comment-parser "1.4.1" + esquery "^1.5.0" + jsdoc-type-pratt-parser "~4.0.0" + +"@eslint-community/eslint-utils@^4.1.2", "@eslint-community/eslint-utils@^4.2.0", "@eslint-community/eslint-utils@^4.4.0": + version "4.4.0" + resolved "https://registry.yarnpkg.com/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz#a23514e8fb9af1269d5f7788aa556798d61c6b59" + integrity sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA== + dependencies: + eslint-visitor-keys "^3.3.0" + +"@eslint-community/regexpp@^4.5.1", "@eslint-community/regexpp@^4.6.0", "@eslint-community/regexpp@^4.6.1": + version "4.10.0" + resolved "https://registry.yarnpkg.com/@eslint-community/regexpp/-/regexpp-4.10.0.tgz#548f6de556857c8bb73bbee70c35dc82a2e74d63" + integrity sha512-Cu96Sd2By9mCNTx2iyKOmq10v22jUVQv0lQnlGNy16oE9589yE+QADPbrMGCkA51cKZSg3Pu/aTJVTGfL/qjUA== + +"@eslint/eslintrc@^2.1.4": + version "2.1.4" + resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-2.1.4.tgz#388a269f0f25c1b6adc317b5a2c55714894c70ad" + integrity sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ== + dependencies: + ajv "^6.12.4" + debug "^4.3.2" + espree "^9.6.0" + globals "^13.19.0" + ignore "^5.2.0" + import-fresh "^3.2.1" + js-yaml "^4.1.0" + minimatch "^3.1.2" + strip-json-comments "^3.1.1" + +"@eslint/js@8.56.0": + version "8.56.0" + resolved "https://registry.yarnpkg.com/@eslint/js/-/js-8.56.0.tgz#ef20350fec605a7f7035a01764731b2de0f3782b" + integrity sha512-gMsVel9D7f2HLkBma9VbtzZRehRogVRfbr++f06nL2vnCGCNlzOD+/MUov/F4p8myyAHspEhVobgjpX64q5m6A== + "@expo/config-plugins@^4.0.2": version "4.1.5" resolved "https://registry.yarnpkg.com/@expo/config-plugins/-/config-plugins-4.1.5.tgz#9d357d2cda9c095e511b51583ede8a3b76174068" @@ -2242,6 +2288,25 @@ dependencies: "@hapi/hoek" "^9.0.0" +"@humanwhocodes/config-array@^0.11.13": + version "0.11.14" + resolved "https://registry.yarnpkg.com/@humanwhocodes/config-array/-/config-array-0.11.14.tgz#d78e481a039f7566ecc9660b4ea7fe6b1fec442b" + integrity sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg== + dependencies: + "@humanwhocodes/object-schema" "^2.0.2" + debug "^4.3.1" + minimatch "^3.0.5" + +"@humanwhocodes/module-importer@^1.0.1": + version "1.0.1" + resolved "https://registry.yarnpkg.com/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz#af5b2691a22b44be847b0ca81641c5fb6ad0172c" + integrity sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA== + +"@humanwhocodes/object-schema@^2.0.2": + version "2.0.2" + resolved "https://registry.yarnpkg.com/@humanwhocodes/object-schema/-/object-schema-2.0.2.tgz#d9fae00a2d5cb40f92cfe64b47ad749fbc38f917" + integrity sha512-6EwiSjwWYP7pTckG6I5eyFANjPhmPjUX9JRLUSfNPC7FX7zK9gyZAfUEaECL6ALTpGX5AjnBq3C9XmVWPitNpw== + "@hutson/parse-repository-url@^3.0.0": version "3.0.2" resolved "https://registry.yarnpkg.com/@hutson/parse-repository-url/-/parse-repository-url-3.0.2.tgz#98c23c950a3d9b6c8f0daed06da6c3af06981340" @@ -2781,7 +2846,7 @@ resolved "https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz#5bd262af94e9d25bd1e71b05deed44876a222e8b" integrity sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A== -"@nodelib/fs.walk@^1.2.3": +"@nodelib/fs.walk@^1.2.3", "@nodelib/fs.walk@^1.2.8": version "1.2.8" resolved "https://registry.yarnpkg.com/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz#e95737e8bb6746ddedf69c556953494f196fe69a" integrity sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg== @@ -3163,6 +3228,11 @@ resolved "https://registry.yarnpkg.com/@pkgjs/parseargs/-/parseargs-0.11.0.tgz#a77ea742fab25775145434eb1d2328cf5013ac33" integrity sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg== +"@pkgr/core@^0.1.0": + version "0.1.1" + resolved "https://registry.yarnpkg.com/@pkgr/core/-/core-0.1.1.tgz#1ec17e2edbec25c8306d424ecfbf13c7de1aaa31" + integrity sha512-cq8o4cWH0ibXh9VGi5P20Tu9XF/0fFXl9EUinr9QfTM7a7p0oTA4iJRCQWppXR1Pg8dSM0UCItCkPwsk9qWWYA== + "@polka/url@^1.0.0-next.20": version "1.0.0-next.23" resolved "https://registry.yarnpkg.com/@polka/url/-/url-1.0.0-next.23.tgz#498e41218ab3b6a1419c735e5c6ae2c5ed609b6c" @@ -4532,6 +4602,49 @@ "@statoscope/types" "5.28.1" "@types/md5" "^2.3.2" +"@stylistic/eslint-plugin-js@1.5.4", "@stylistic/eslint-plugin-js@^1.5.4": + version "1.5.4" + resolved "https://registry.yarnpkg.com/@stylistic/eslint-plugin-js/-/eslint-plugin-js-1.5.4.tgz#8636ddfc75f40e94721ecc96fb564b0641bd31cf" + integrity sha512-3ctWb3NvJNV1MsrZN91cYp2EGInLPSoZKphXIbIRx/zjZxKwLDr9z4LMOWtqjq14li/OgqUUcMq5pj8fgbLoTw== + dependencies: + acorn "^8.11.3" + escape-string-regexp "^4.0.0" + eslint-visitor-keys "^3.4.3" + espree "^9.6.1" + +"@stylistic/eslint-plugin-jsx@1.5.4": + version "1.5.4" + resolved "https://registry.yarnpkg.com/@stylistic/eslint-plugin-jsx/-/eslint-plugin-jsx-1.5.4.tgz#be661004e7a775c3ca60b4cf4fa1bfe4d2df1f0a" + integrity sha512-JUfrpCkeBCqt1IZ4QsP4WgxGza4PhK4LPbc0VnCjHKygl+rgqoDAovqOuzFJ49wJ4Ix3r6OIHFuwiBGswZEVvg== + dependencies: + "@stylistic/eslint-plugin-js" "^1.5.4" + estraverse "^5.3.0" + +"@stylistic/eslint-plugin-plus@1.5.4": + version "1.5.4" + resolved "https://registry.yarnpkg.com/@stylistic/eslint-plugin-plus/-/eslint-plugin-plus-1.5.4.tgz#39a4a6245fa56c3f8fa9ececd44cf3dbd0d16b7c" + integrity sha512-dI0Cs5vYX/0uMhQDY+NK0cKQ0Pe9B6jWYxd0Ndud+mNloDaVLrsmJocK4zn+YfhGEDs1E4Nk5uAPZEumIpDuSg== + dependencies: + "@typescript-eslint/utils" "^6.19.0" + +"@stylistic/eslint-plugin-ts@1.5.4": + version "1.5.4" + resolved "https://registry.yarnpkg.com/@stylistic/eslint-plugin-ts/-/eslint-plugin-ts-1.5.4.tgz#d90141ab6f45b03dfe9d4c3750dd94a2fe27d4ca" + integrity sha512-NZDFVIlVNjuPvhT+0Cidm5IS3emtx338xbJTqs2xfOVRDGTpYwRHhNVEGa1rFOpYHmv0sAj6+OXbMDn7ul0K/g== + dependencies: + "@stylistic/eslint-plugin-js" "1.5.4" + "@typescript-eslint/utils" "^6.19.0" + +"@stylistic/eslint-plugin@^1.5.4": + version "1.5.4" + resolved "https://registry.yarnpkg.com/@stylistic/eslint-plugin/-/eslint-plugin-1.5.4.tgz#e39d940023be47f79b45e849a5a16a40551c8517" + integrity sha512-zWPXr+O67GC9KDAFkbL1U9UVqE6Iv69YMKhkIECCmE0GvClUJwdfsimm4XebEDondV7kfjMrTDZaYfrI5aS0Jg== + dependencies: + "@stylistic/eslint-plugin-js" "1.5.4" + "@stylistic/eslint-plugin-jsx" "1.5.4" + "@stylistic/eslint-plugin-plus" "1.5.4" + "@stylistic/eslint-plugin-ts" "1.5.4" + "@swc/helpers@0.5.2": version "0.5.2" resolved "https://registry.yarnpkg.com/@swc/helpers/-/helpers-0.5.2.tgz#85ea0c76450b61ad7d10a37050289eded783c27d" @@ -4712,11 +4825,16 @@ "@types/tough-cookie" "*" parse5 "^7.0.0" -"@types/json-schema@*", "@types/json-schema@^7.0.5", "@types/json-schema@^7.0.8": +"@types/json-schema@*", "@types/json-schema@^7.0.12", "@types/json-schema@^7.0.5", "@types/json-schema@^7.0.8": version "7.0.15" resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.15.tgz#596a1747233694d50f6ad8a7869fcb6f56cf5841" integrity sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA== +"@types/json5@^0.0.29": + version "0.0.29" + resolved "https://registry.yarnpkg.com/@types/json5/-/json5-0.0.29.tgz#ee28707ae94e11d2b827bcbe5270bcea7f3e71ee" + integrity sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ== + "@types/lodash@4.14.182": version "4.14.182" resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.182.tgz#05301a4d5e62963227eaafe0ce04dd77c54ea5c2" @@ -4822,7 +4940,7 @@ resolved "https://registry.yarnpkg.com/@types/scheduler/-/scheduler-0.16.7.tgz#d62f1bd54724c84089f51f9218393930ba4abcf4" integrity sha512-8g25Nl3AuB1KulTlSUsUhUo/oBgBU6XIXQ+XURpeioEbEJvkO7qI4vDfREv3vJYHHzqXjcAHvoJy4pTtSQNZtA== -"@types/semver@^7.5.1": +"@types/semver@^7.5.0", "@types/semver@^7.5.1": version "7.5.6" resolved "https://registry.yarnpkg.com/@types/semver/-/semver-7.5.6.tgz#c65b2bfce1bec346582c07724e3f8c1017a20339" integrity sha512-dn1l8LaMea/IjDoHNd9J52uBbInB796CDffS6VdIxvqYCPSG0V0DzHp76GpaWnlhg88uYyPbXCDIowa86ybd5A== @@ -4882,6 +5000,97 @@ dependencies: "@types/yargs-parser" "*" +"@typescript-eslint/eslint-plugin@^6.20.0": + version "6.20.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.20.0.tgz#9cf31546d2d5e884602626d89b0e0d2168ac25ed" + integrity sha512-fTwGQUnjhoYHeSF6m5pWNkzmDDdsKELYrOBxhjMrofPqCkoC2k3B2wvGHFxa1CTIqkEn88nlW1HVMztjo2K8Hg== + dependencies: + "@eslint-community/regexpp" "^4.5.1" + "@typescript-eslint/scope-manager" "6.20.0" + "@typescript-eslint/type-utils" "6.20.0" + "@typescript-eslint/utils" "6.20.0" + "@typescript-eslint/visitor-keys" "6.20.0" + debug "^4.3.4" + graphemer "^1.4.0" + ignore "^5.2.4" + natural-compare "^1.4.0" + semver "^7.5.4" + ts-api-utils "^1.0.1" + +"@typescript-eslint/parser@^6.20.0": + version "6.20.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-6.20.0.tgz#17e314177304bdf498527e3c4b112e41287b7416" + integrity sha512-bYerPDF/H5v6V76MdMYhjwmwgMA+jlPVqjSDq2cRqMi8bP5sR3Z+RLOiOMad3nsnmDVmn2gAFCyNgh/dIrfP/w== + dependencies: + "@typescript-eslint/scope-manager" "6.20.0" + "@typescript-eslint/types" "6.20.0" + "@typescript-eslint/typescript-estree" "6.20.0" + "@typescript-eslint/visitor-keys" "6.20.0" + debug "^4.3.4" + +"@typescript-eslint/scope-manager@6.20.0": + version "6.20.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-6.20.0.tgz#8a926e60f6c47feb5bab878246dc2ae465730151" + integrity sha512-p4rvHQRDTI1tGGMDFQm+GtxP1ZHyAh64WANVoyEcNMpaTFn3ox/3CcgtIlELnRfKzSs/DwYlDccJEtr3O6qBvA== + dependencies: + "@typescript-eslint/types" "6.20.0" + "@typescript-eslint/visitor-keys" "6.20.0" + +"@typescript-eslint/type-utils@6.20.0": + version "6.20.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-6.20.0.tgz#d395475cd0f3610dd80c7d8716fa0db767da3831" + integrity sha512-qnSobiJQb1F5JjN0YDRPHruQTrX7ICsmltXhkV536mp4idGAYrIyr47zF/JmkJtEcAVnIz4gUYJ7gOZa6SmN4g== + dependencies: + "@typescript-eslint/typescript-estree" "6.20.0" + "@typescript-eslint/utils" "6.20.0" + debug "^4.3.4" + ts-api-utils "^1.0.1" + +"@typescript-eslint/types@6.20.0": + version "6.20.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-6.20.0.tgz#5ccd74c29011ae7714ae6973e4ec0c634708b448" + integrity sha512-MM9mfZMAhiN4cOEcUOEx+0HmuaW3WBfukBZPCfwSqFnQy0grXYtngKCqpQN339X3RrwtzspWJrpbrupKYUSBXQ== + +"@typescript-eslint/typescript-estree@6.20.0": + version "6.20.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-6.20.0.tgz#5b2d0975949e6bdd8d45ee1471461ef5fadc5542" + integrity sha512-RnRya9q5m6YYSpBN7IzKu9FmLcYtErkDkc8/dKv81I9QiLLtVBHrjz+Ev/crAqgMNW2FCsoZF4g2QUylMnJz+g== + dependencies: + "@typescript-eslint/types" "6.20.0" + "@typescript-eslint/visitor-keys" "6.20.0" + debug "^4.3.4" + globby "^11.1.0" + is-glob "^4.0.3" + minimatch "9.0.3" + semver "^7.5.4" + ts-api-utils "^1.0.1" + +"@typescript-eslint/utils@6.20.0", "@typescript-eslint/utils@^6.19.0": + version "6.20.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-6.20.0.tgz#0e52afcfaa51af5656490ba4b7437cc3aa28633d" + integrity sha512-/EKuw+kRu2vAqCoDwDCBtDRU6CTKbUmwwI7SH7AashZ+W+7o8eiyy6V2cdOqN49KsTcASWsC5QeghYuRDTyOOg== + dependencies: + "@eslint-community/eslint-utils" "^4.4.0" + "@types/json-schema" "^7.0.12" + "@types/semver" "^7.5.0" + "@typescript-eslint/scope-manager" "6.20.0" + "@typescript-eslint/types" "6.20.0" + "@typescript-eslint/typescript-estree" "6.20.0" + semver "^7.5.4" + +"@typescript-eslint/visitor-keys@6.20.0": + version "6.20.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-6.20.0.tgz#f7ada27f2803de89df0edd9fd7be22c05ce6a498" + integrity sha512-E8Cp98kRe4gKHjJD4NExXKz/zOJ1A2hhZc+IMVD6i7w4yjIvh6VyuRI0gRtxAsXtoC35uGMaQ9rjI2zJaXDEAw== + dependencies: + "@typescript-eslint/types" "6.20.0" + eslint-visitor-keys "^3.4.1" + +"@ungap/structured-clone@^1.2.0": + version "1.2.0" + resolved "https://registry.yarnpkg.com/@ungap/structured-clone/-/structured-clone-1.2.0.tgz#756641adb587851b5ccb3e095daf27ae581c8406" + integrity sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ== + "@webassemblyjs/ast@1.11.6", "@webassemblyjs/ast@^1.11.5": version "1.11.6" resolved "https://registry.yarnpkg.com/@webassemblyjs/ast/-/ast-1.11.6.tgz#db046555d3c413f8966ca50a95176a0e2c642e24" @@ -5114,6 +5323,11 @@ acorn-import-assertions@^1.9.0: resolved "https://registry.yarnpkg.com/acorn-import-assertions/-/acorn-import-assertions-1.9.0.tgz#507276249d684797c84e0734ef84860334cfb1ac" integrity sha512-cmMwop9x+8KFhxvKrKfPYmN6/pKTYYHBqLa0DfvVZcKMJWNyWLnaqND7dx/qn66R7ewM1UX5XMaDVP5wlVTaVA== +acorn-jsx@^5.3.2: + version "5.3.2" + resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.3.2.tgz#7ed5bb55908b3b2f1bc55c6af1653bada7f07937" + integrity sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ== + acorn-walk@^8.0.0, acorn-walk@^8.0.2: version "8.3.0" resolved "https://registry.yarnpkg.com/acorn-walk/-/acorn-walk-8.3.0.tgz#2097665af50fd0cf7a2dfccd2b9368964e66540f" @@ -5124,6 +5338,11 @@ acorn@^8.0.4, acorn@^8.1.0, acorn@^8.7.1, acorn@^8.8.1, acorn@^8.8.2: resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.11.2.tgz#ca0d78b51895be5390a5903c5b3bdcdaf78ae40b" integrity sha512-nc0Axzp/0FILLEVsm4fNwLCwMttvhEI263QtVPQcbpfZZ3ts0hLsZGOpE6czNlid7CJ9MlyH8reXkpsf3YUY4w== +acorn@^8.11.3, acorn@^8.9.0: + version "8.11.3" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.11.3.tgz#71e0b14e13a4ec160724b38fb7b0f233b1b81d7a" + integrity sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg== + add-stream@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/add-stream/-/add-stream-1.0.0.tgz#6a7990437ca736d5e1288db92bd3266d5f5cb2aa" @@ -5269,6 +5488,11 @@ archy@~1.0.0: resolved "https://registry.yarnpkg.com/archy/-/archy-1.0.0.tgz#f9c8c13757cc1dd7bc379ac77b2c62a5c2868c40" integrity sha512-Xg+9RwCg/0p32teKdGMPTPnVXKD0w3DfHnFTficozsAgsvq2XenPJq/MYpzzQ/v8zrOyJn6Ds39VA4JIDwFfqw== +are-docs-informative@^0.0.2: + version "0.0.2" + resolved "https://registry.yarnpkg.com/are-docs-informative/-/are-docs-informative-0.0.2.tgz#387f0e93f5d45280373d387a59d34c96db321963" + integrity sha512-ixiS0nLNNG5jNQzgZJNoUpBKdo9yTYZMGJ+QgT2jmjR7G7+QHRCc4v6LQ3NgE7EBJq+o0ams3waJwkrlBom8Ig== + are-we-there-yet@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/are-we-there-yet/-/are-we-there-yet-2.0.0.tgz#372e0e7bd279d8e94c653aaa1f67200884bf3e1c" @@ -5310,6 +5534,14 @@ argsarray@^0.0.1: resolved "https://registry.yarnpkg.com/argsarray/-/argsarray-0.0.1.tgz#6e7207b4ecdb39b0af88303fa5ae22bda8df61cb" integrity sha512-u96dg2GcAKtpTrBdDoFIM7PjcBA+6rSP0OR94MOReNRyUECL6MtQt5XXmRr4qrftYaef9+l5hcpO5te7sML1Cg== +array-buffer-byte-length@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/array-buffer-byte-length/-/array-buffer-byte-length-1.0.0.tgz#fabe8bc193fea865f317fe7807085ee0dee5aead" + integrity sha512-LPuwb2P+NrQw3XhxGc36+XSvuBPopovXYTR9Ew++Du9Yb/bx5AzBfrIsBoj0EZUifjQU+sHL21sseZ3jerWO/A== + dependencies: + call-bind "^1.0.2" + is-array-buffer "^3.0.1" + array-differ@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/array-differ/-/array-differ-3.0.0.tgz#3cbb3d0f316810eafcc47624734237d6aee4ae6b" @@ -5320,11 +5552,66 @@ array-ify@^1.0.0: resolved "https://registry.yarnpkg.com/array-ify/-/array-ify-1.0.0.tgz#9e528762b4a9066ad163a6962a364418e9626ece" integrity sha512-c5AMf34bKdvPhQ7tBGhqkgKNUzMr4WUs+WDtC2ZUGOUncbxKMTvqxYctiseW3+L4bA8ec+GcZ6/A/FW4m8ukng== +array-includes@^3.1.7: + version "3.1.7" + resolved "https://registry.yarnpkg.com/array-includes/-/array-includes-3.1.7.tgz#8cd2e01b26f7a3086cbc87271593fe921c62abda" + integrity sha512-dlcsNBIiWhPkHdOEEKnehA+RNUWDc4UqFtnIXU4uuYDPtA4LDkr7qip2p0VvFAEXNDr0yWZ9PJyIRiGjRLQzwQ== + dependencies: + call-bind "^1.0.2" + define-properties "^1.2.0" + es-abstract "^1.22.1" + get-intrinsic "^1.2.1" + is-string "^1.0.7" + array-union@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/array-union/-/array-union-2.1.0.tgz#b798420adbeb1de828d84acd8a2e23d3efe85e8d" integrity sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw== +array.prototype.findlastindex@^1.2.3: + version "1.2.3" + resolved "https://registry.yarnpkg.com/array.prototype.findlastindex/-/array.prototype.findlastindex-1.2.3.tgz#b37598438f97b579166940814e2c0493a4f50207" + integrity sha512-LzLoiOMAxvy+Gd3BAq3B7VeIgPdo+Q8hthvKtXybMvRV0jrXfJM/t8mw7nNlpEcVlVUnCnM2KSX4XU5HmpodOA== + dependencies: + call-bind "^1.0.2" + define-properties "^1.2.0" + es-abstract "^1.22.1" + es-shim-unscopables "^1.0.0" + get-intrinsic "^1.2.1" + +array.prototype.flat@^1.3.2: + version "1.3.2" + resolved "https://registry.yarnpkg.com/array.prototype.flat/-/array.prototype.flat-1.3.2.tgz#1476217df8cff17d72ee8f3ba06738db5b387d18" + integrity sha512-djYB+Zx2vLewY8RWlNCUdHjDXs2XOgm602S9E7P/UpHgfeHL00cRiIF+IN/G/aUJ7kGPb6yO/ErDI5V2s8iycA== + dependencies: + call-bind "^1.0.2" + define-properties "^1.2.0" + es-abstract "^1.22.1" + es-shim-unscopables "^1.0.0" + +array.prototype.flatmap@^1.3.2: + version "1.3.2" + resolved "https://registry.yarnpkg.com/array.prototype.flatmap/-/array.prototype.flatmap-1.3.2.tgz#c9a7c6831db8e719d6ce639190146c24bbd3e527" + integrity sha512-Ewyx0c9PmpcsByhSW4r+9zDU7sGjFc86qf/kKtuSCRdhfbk0SNLLkaT5qvcHnRGgc5NP/ly/y+qkXkqONX54CQ== + dependencies: + call-bind "^1.0.2" + define-properties "^1.2.0" + es-abstract "^1.22.1" + es-shim-unscopables "^1.0.0" + +arraybuffer.prototype.slice@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.2.tgz#98bd561953e3e74bb34938e77647179dfe6e9f12" + integrity sha512-yMBKppFur/fbHu9/6USUe03bZ4knMYiwFBcyiaXB8Go0qNehwX6inYPzK9U0NeQvGxKthcmHcaR8P5MStSRBAw== + dependencies: + array-buffer-byte-length "^1.0.0" + call-bind "^1.0.2" + define-properties "^1.2.0" + es-abstract "^1.22.1" + get-intrinsic "^1.2.1" + is-array-buffer "^3.0.2" + is-shared-array-buffer "^1.0.2" + arrify@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/arrify/-/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d" @@ -5367,6 +5654,11 @@ asynckit@^0.4.0: resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" integrity sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q== +available-typed-arrays@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz#92f95616501069d07d10edb2fc37d3e1c65123b7" + integrity sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw== + axios@^1.0.0: version "1.6.2" resolved "https://registry.yarnpkg.com/axios/-/axios-1.6.2.tgz#de67d42c755b571d3e698df1b6504cde9b0ee9f2" @@ -5697,12 +5989,17 @@ builtin-modules@^1.1.1: resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-1.1.1.tgz#270f076c5a72c02f5b65a47df94c5fe3a278892f" integrity sha512-wxXCdllwGhI2kCC0MnvTGYTMvnVZTvqgypkiTI8Pa5tcz2i6VqsqwYGgqwXji+4RgCzms6EajE4IxiUH6HH8nQ== +builtin-modules@^3.3.0: + version "3.3.0" + resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-3.3.0.tgz#cae62812b89801e9656336e46223e030386be7b6" + integrity sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw== + builtins@^1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/builtins/-/builtins-1.0.3.tgz#cb94faeb61c8696451db36534e1422f94f0aee88" integrity sha512-uYBjakWipfaO/bXI7E8rq6kpwHRZK5cNYrUv2OzZSI/FvmdMyXJ2tG9dKcjEC5YHmHpUAwsargWIZNWdxb/bnQ== -builtins@^5.0.0: +builtins@^5.0.0, builtins@^5.0.1: version "5.0.1" resolved "https://registry.yarnpkg.com/builtins/-/builtins-5.0.1.tgz#87f6db9ab0458be728564fa81d876d8d74552fa9" integrity sha512-qwVpFEHNfhYJIzNRBvd2C1kyo6jz3ZSMPyyuR47OPdiKWlbYnZNyDWuyR175qDnAJLiCo5fBBqPb3RiXgWlkOQ== @@ -5797,7 +6094,7 @@ cacache@^17.0.0, cacache@^17.0.4: tar "^6.1.11" unique-filename "^3.0.0" -call-bind@^1.0.2: +call-bind@^1.0.0, call-bind@^1.0.2, call-bind@^1.0.4, call-bind@^1.0.5: version "1.0.5" resolved "https://registry.yarnpkg.com/call-bind/-/call-bind-1.0.5.tgz#6fa2b7845ce0ea49bf4d8b9ef64727a2c2e2e513" integrity sha512-C3nQxfFZxFRVoJoGKKI8y3MOEo129NQ+FgQ08iye+Mk4zNZZGdjfs06bVTr+DBSlA66Q2VEcMki/cUCP4SercQ== @@ -6201,6 +6498,11 @@ commander@~2.13.0: resolved "https://registry.yarnpkg.com/commander/-/commander-2.13.0.tgz#6964bca67685df7c1f1430c584f07d7597885b9c" integrity sha512-MVuS359B+YzaWqjCL/c+22gfryv+mCBPHAv3zyVI2GN8EY6IRP8VwtasXn8jyyhvvq84R4ImN1OKRtcbIasjYA== +comment-parser@1.4.1: + version "1.4.1" + resolved "https://registry.yarnpkg.com/comment-parser/-/comment-parser-1.4.1.tgz#bdafead37961ac079be11eb7ec65c4d021eaf9cc" + integrity sha512-buhp5kePrmda3vhc5B9t7pUQXAb2Tnd0qgpkIhPhkHXxJpiPJ11H0ZEU0oBpJ2QztSbzG/ZxMj/CHsYJqRHmyg== + common-ancestor-path@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/common-ancestor-path/-/common-ancestor-path-1.0.1.tgz#4f7d2d1394d91b7abdf51871c62f71eadb0182a7" @@ -6430,7 +6732,7 @@ cross-spawn@^6.0.0: shebang-command "^1.2.0" which "^1.2.9" -cross-spawn@^7.0.0, cross-spawn@^7.0.3: +cross-spawn@^7.0.0, cross-spawn@^7.0.2, cross-spawn@^7.0.3: version "7.0.3" resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6" integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w== @@ -6512,13 +6814,20 @@ debug@2.6.9, debug@^2.2.0: dependencies: ms "2.0.0" -debug@4, debug@^4.1.0, debug@^4.1.1, debug@^4.3.1, debug@^4.3.3, debug@^4.3.4: +debug@4, debug@^4.1.0, debug@^4.1.1, debug@^4.3.1, debug@^4.3.2, debug@^4.3.3, debug@^4.3.4: version "4.3.4" resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.4.tgz#1319f6579357f2338d3337d2cdd4914bb5dcc865" integrity sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ== dependencies: ms "2.1.2" +debug@^3.2.7: + version "3.2.7" + resolved "https://registry.yarnpkg.com/debug/-/debug-3.2.7.tgz#72580b7e9145fb39b6676f9c5e5fb100b934179a" + integrity sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ== + dependencies: + ms "^2.1.1" + decamelize-keys@^1.1.0: version "1.1.1" resolved "https://registry.yarnpkg.com/decamelize-keys/-/decamelize-keys-1.1.1.tgz#04a2d523b2f18d80d0158a43b895d56dff8d19d8" @@ -6559,6 +6868,11 @@ deep-equal@^1.1.1: object-keys "^1.1.1" regexp.prototype.flags "^1.5.1" +deep-is@^0.1.3: + version "0.1.4" + resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.4.tgz#a6f2dce612fadd2ef1f519b73551f17e85199831" + integrity sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ== + deepmerge@^3.2.0: version "3.3.0" resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-3.3.0.tgz#d3c47fd6f3a93d517b14426b0628a17b0125f5f7" @@ -6590,7 +6904,7 @@ define-lazy-prop@^2.0.0: resolved "https://registry.yarnpkg.com/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz#3f7ae421129bcaaac9bc74905c98a0009ec9ee7f" integrity sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og== -define-properties@^1.1.3, define-properties@^1.2.0: +define-properties@^1.1.3, define-properties@^1.2.0, define-properties@^1.2.1: version "1.2.1" resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.2.1.tgz#10781cc616eb951a80a034bafcaa7377f6af2b6c" integrity sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg== @@ -6720,6 +7034,20 @@ doctrine@0.7.2: esutils "^1.1.6" isarray "0.0.1" +doctrine@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-2.1.0.tgz#5cd01fc101621b42c4cd7f5d1a66243716d3f39d" + integrity sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw== + dependencies: + esutils "^2.0.2" + +doctrine@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-3.0.0.tgz#addebead72a6574db783639dc87a121773973961" + integrity sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w== + dependencies: + esutils "^2.0.2" + domexception@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/domexception/-/domexception-1.0.1.tgz#937442644ca6a31261ef36e3ec677fe805582c90" @@ -6827,7 +7155,7 @@ end-of-stream@^1.1.0, end-of-stream@^1.4.1: dependencies: once "^1.4.0" -enhanced-resolve@^5.0.0, enhanced-resolve@^5.15.0: +enhanced-resolve@^5.0.0, enhanced-resolve@^5.12.0, enhanced-resolve@^5.15.0: version "5.15.0" resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-5.15.0.tgz#1af946c7d93603eb88e9896cee4904dc012e9c35" integrity sha512-LXYT42KJ7lpIKECr2mAXIaMldcNCh/7E0KBKOu4KSfkHmP+mZmSs+8V5gBAqisWBy0OO4W5Oyys0GO1Y8KtdKg== @@ -6889,11 +7217,81 @@ errorhandler@^1.5.0, errorhandler@^1.5.1: accepts "~1.3.7" escape-html "~1.0.3" +es-abstract@^1.22.1: + version "1.22.3" + resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.22.3.tgz#48e79f5573198de6dee3589195727f4f74bc4f32" + integrity sha512-eiiY8HQeYfYH2Con2berK+To6GrK2RxbPawDkGq4UiCQQfZHb6wX9qQqkbpPqaxQFcl8d9QzZqo0tGE0VcrdwA== + dependencies: + array-buffer-byte-length "^1.0.0" + arraybuffer.prototype.slice "^1.0.2" + available-typed-arrays "^1.0.5" + call-bind "^1.0.5" + es-set-tostringtag "^2.0.1" + es-to-primitive "^1.2.1" + function.prototype.name "^1.1.6" + get-intrinsic "^1.2.2" + get-symbol-description "^1.0.0" + globalthis "^1.0.3" + gopd "^1.0.1" + has-property-descriptors "^1.0.0" + has-proto "^1.0.1" + has-symbols "^1.0.3" + hasown "^2.0.0" + internal-slot "^1.0.5" + is-array-buffer "^3.0.2" + is-callable "^1.2.7" + is-negative-zero "^2.0.2" + is-regex "^1.1.4" + is-shared-array-buffer "^1.0.2" + is-string "^1.0.7" + is-typed-array "^1.1.12" + is-weakref "^1.0.2" + object-inspect "^1.13.1" + object-keys "^1.1.1" + object.assign "^4.1.4" + regexp.prototype.flags "^1.5.1" + safe-array-concat "^1.0.1" + safe-regex-test "^1.0.0" + string.prototype.trim "^1.2.8" + string.prototype.trimend "^1.0.7" + string.prototype.trimstart "^1.0.7" + typed-array-buffer "^1.0.0" + typed-array-byte-length "^1.0.0" + typed-array-byte-offset "^1.0.0" + typed-array-length "^1.0.4" + unbox-primitive "^1.0.2" + which-typed-array "^1.1.13" + es-module-lexer@^1.2.1: version "1.4.1" resolved "https://registry.yarnpkg.com/es-module-lexer/-/es-module-lexer-1.4.1.tgz#41ea21b43908fe6a287ffcbe4300f790555331f5" integrity sha512-cXLGjP0c4T3flZJKQSuziYoq7MlT+rnvfZjfp7h+I7K9BNX54kP9nyWvdbwjQ4u1iWbOL4u96fgeZLToQlZC7w== +es-set-tostringtag@^2.0.1: + version "2.0.2" + resolved "https://registry.yarnpkg.com/es-set-tostringtag/-/es-set-tostringtag-2.0.2.tgz#11f7cc9f63376930a5f20be4915834f4bc74f9c9" + integrity sha512-BuDyupZt65P9D2D2vA/zqcI3G5xRsklm5N3xCwuiy+/vKy8i0ifdsQP1sLgO4tZDSCaQUSnmC48khknGMV3D2Q== + dependencies: + get-intrinsic "^1.2.2" + has-tostringtag "^1.0.0" + hasown "^2.0.0" + +es-shim-unscopables@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/es-shim-unscopables/-/es-shim-unscopables-1.0.2.tgz#1f6942e71ecc7835ed1c8a83006d8771a63a3763" + integrity sha512-J3yBRXCzDu4ULnQwxyToo/OjdMx6akgVC7K6few0a7F/0wLtmKKN7I73AH5T2836UuXRqN7Qg+IIUw/+YJksRw== + dependencies: + hasown "^2.0.0" + +es-to-primitive@^1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/es-to-primitive/-/es-to-primitive-1.2.1.tgz#e55cd4c9cdc188bcefb03b366c736323fc5c898a" + integrity sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA== + dependencies: + is-callable "^1.1.4" + is-date-object "^1.0.1" + is-symbol "^1.0.2" + escalade@^3.1.1: version "3.1.1" resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.1.tgz#d8cfdc7000965c5a0174b4a82eaa5c0552742e40" @@ -6930,6 +7328,139 @@ escodegen@^2.0.0: optionalDependencies: source-map "~0.6.1" +eslint-compat-utils@^0.1.2: + version "0.1.2" + resolved "https://registry.yarnpkg.com/eslint-compat-utils/-/eslint-compat-utils-0.1.2.tgz#f45e3b5ced4c746c127cf724fb074cd4e730d653" + integrity sha512-Jia4JDldWnFNIru1Ehx1H5s9/yxiRHY/TimCuUc0jNexew3cF1gI6CYZil1ociakfWO3rRqFjl1mskBblB3RYg== + +eslint-config-prettier@^9.1.0: + version "9.1.0" + resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-9.1.0.tgz#31af3d94578645966c082fcb71a5846d3c94867f" + integrity sha512-NSWl5BFQWEPi1j4TjVNItzYV7dZXZ+wP6I6ZhrBGpChQhZRUaElihE9uRRkcbRnNb76UMKDF3r+WTmNcGPKsqw== + +eslint-config-standard@^17.1.0: + version "17.1.0" + resolved "https://registry.yarnpkg.com/eslint-config-standard/-/eslint-config-standard-17.1.0.tgz#40ffb8595d47a6b242e07cbfd49dc211ed128975" + integrity sha512-IwHwmaBNtDK4zDHQukFDW5u/aTb8+meQWZvNFWkiGmbWjD6bqyuSSBxxXKkCftCUzc1zwCH2m/baCNDLGmuO5Q== + +eslint-import-resolver-node@^0.3.9: + version "0.3.9" + resolved "https://registry.yarnpkg.com/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.9.tgz#d4eaac52b8a2e7c3cd1903eb00f7e053356118ac" + integrity sha512-WFj2isz22JahUv+B788TlO3N6zL3nNJGU8CcZbPZvVEkBPaJdCV4vy5wyghty5ROFbCRnm132v8BScu5/1BQ8g== + dependencies: + debug "^3.2.7" + is-core-module "^2.13.0" + resolve "^1.22.4" + +eslint-import-resolver-typescript@^3.6.1: + version "3.6.1" + resolved "https://registry.yarnpkg.com/eslint-import-resolver-typescript/-/eslint-import-resolver-typescript-3.6.1.tgz#7b983680edd3f1c5bce1a5829ae0bc2d57fe9efa" + integrity sha512-xgdptdoi5W3niYeuQxKmzVDTATvLYqhpwmykwsh7f6HIOStGWEIL9iqZgQDF9u9OEzrRwR8no5q2VT+bjAujTg== + dependencies: + debug "^4.3.4" + enhanced-resolve "^5.12.0" + eslint-module-utils "^2.7.4" + fast-glob "^3.3.1" + get-tsconfig "^4.5.0" + is-core-module "^2.11.0" + is-glob "^4.0.3" + +eslint-module-utils@^2.7.4, eslint-module-utils@^2.8.0: + version "2.8.0" + resolved "https://registry.yarnpkg.com/eslint-module-utils/-/eslint-module-utils-2.8.0.tgz#e439fee65fc33f6bba630ff621efc38ec0375c49" + integrity sha512-aWajIYfsqCKRDgUfjEXNN/JlrzauMuSEy5sbd7WXbtW3EH6A6MpwEh42c7qD+MqQo9QMJ6fWLAeIJynx0g6OAw== + dependencies: + debug "^3.2.7" + +eslint-plugin-es-x@^7.5.0: + version "7.5.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-es-x/-/eslint-plugin-es-x-7.5.0.tgz#d08d9cd155383e35156c48f736eb06561d07ba92" + integrity sha512-ODswlDSO0HJDzXU0XvgZ3lF3lS3XAZEossh15Q2UHjwrJggWeBoKqqEsLTZLXl+dh5eOAozG0zRcYtuE35oTuQ== + dependencies: + "@eslint-community/eslint-utils" "^4.1.2" + "@eslint-community/regexpp" "^4.6.0" + eslint-compat-utils "^0.1.2" + +eslint-plugin-import@^2.29.1: + version "2.29.1" + resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.29.1.tgz#d45b37b5ef5901d639c15270d74d46d161150643" + integrity sha512-BbPC0cuExzhiMo4Ff1BTVwHpjjv28C5R+btTOGaCRC7UEz801up0JadwkeSk5Ued6TG34uaczuVuH6qyy5YUxw== + dependencies: + array-includes "^3.1.7" + array.prototype.findlastindex "^1.2.3" + array.prototype.flat "^1.3.2" + array.prototype.flatmap "^1.3.2" + debug "^3.2.7" + doctrine "^2.1.0" + eslint-import-resolver-node "^0.3.9" + eslint-module-utils "^2.8.0" + hasown "^2.0.0" + is-core-module "^2.13.1" + is-glob "^4.0.3" + minimatch "^3.1.2" + object.fromentries "^2.0.7" + object.groupby "^1.0.1" + object.values "^1.1.7" + semver "^6.3.1" + tsconfig-paths "^3.15.0" + +eslint-plugin-jsdoc@^48.0.4: + version "48.0.4" + resolved "https://registry.yarnpkg.com/eslint-plugin-jsdoc/-/eslint-plugin-jsdoc-48.0.4.tgz#ca54da8937b2f6fd242a16dbb1b9ff5050baf223" + integrity sha512-A0cH+5svWPXzGZszBjXA1t0aAqVGS+/x3i02KFmb73rU0iMLnadEcVWcD/dGBZHIfAMKr3YpWh58f6wn4N909w== + dependencies: + "@es-joy/jsdoccomment" "~0.41.0" + are-docs-informative "^0.0.2" + comment-parser "1.4.1" + debug "^4.3.4" + escape-string-regexp "^4.0.0" + esquery "^1.5.0" + is-builtin-module "^3.2.1" + semver "^7.5.4" + spdx-expression-parse "^4.0.0" + +eslint-plugin-n@^16.6.2: + version "16.6.2" + resolved "https://registry.yarnpkg.com/eslint-plugin-n/-/eslint-plugin-n-16.6.2.tgz#6a60a1a376870064c906742272074d5d0b412b0b" + integrity sha512-6TyDmZ1HXoFQXnhCTUjVFULReoBPOAjpuiKELMkeP40yffI/1ZRO+d9ug/VC6fqISo2WkuIBk3cvuRPALaWlOQ== + dependencies: + "@eslint-community/eslint-utils" "^4.4.0" + builtins "^5.0.1" + eslint-plugin-es-x "^7.5.0" + get-tsconfig "^4.7.0" + globals "^13.24.0" + ignore "^5.2.4" + is-builtin-module "^3.2.1" + is-core-module "^2.12.1" + minimatch "^3.1.2" + resolve "^1.22.2" + semver "^7.5.3" + +eslint-plugin-prettier@^5.1.3: + version "5.1.3" + resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-5.1.3.tgz#17cfade9e732cef32b5f5be53bd4e07afd8e67e1" + integrity sha512-C9GCVAs4Eq7ZC/XFQHITLiHJxQngdtraXaM+LoUFoFp/lHNl2Zn8f3WQbe9HvTBBQ9YnKFB0/2Ajdqwo5D1EAw== + dependencies: + prettier-linter-helpers "^1.0.0" + synckit "^0.8.6" + +eslint-plugin-promise@^6.1.1: + version "6.1.1" + resolved "https://registry.yarnpkg.com/eslint-plugin-promise/-/eslint-plugin-promise-6.1.1.tgz#269a3e2772f62875661220631bd4dafcb4083816" + integrity sha512-tjqWDwVZQo7UIPMeDReOpUgHCmCiH+ePnVT+5zVapL0uuHnegBUs2smM13CzOs2Xb5+MHMRFTs9v24yjba4Oig== + +eslint-plugin-unused-imports@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-unused-imports/-/eslint-plugin-unused-imports-3.0.0.tgz#d25175b0072ff16a91892c3aa72a09ca3a9e69e7" + integrity sha512-sduiswLJfZHeeBJ+MQaG+xYzSWdRXoSw61DpU13mzWumCkR0ufD0HmO4kdNokjrkluMHpj/7PJeN35pgbhW3kw== + dependencies: + eslint-rule-composer "^0.3.0" + +eslint-rule-composer@^0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/eslint-rule-composer/-/eslint-rule-composer-0.3.0.tgz#79320c927b0c5c0d3d3d2b76c8b4a488f25bbaf9" + integrity sha512-bt+Sh8CtDmn2OajxvNO+BX7Wn4CIWMpTRm3MaiKPCQcnnlm0CS2mhui6QaoeQugs+3Kj2ESKEEGJUdVafwhiCg== + eslint-scope@5.1.1: version "5.1.1" resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-5.1.1.tgz#e786e59a66cb92b3f6c1fb0d508aab174848f48c" @@ -6938,11 +7469,84 @@ eslint-scope@5.1.1: esrecurse "^4.3.0" estraverse "^4.1.1" +eslint-scope@^7.2.2: + version "7.2.2" + resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-7.2.2.tgz#deb4f92563390f32006894af62a22dba1c46423f" + integrity sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg== + dependencies: + esrecurse "^4.3.0" + estraverse "^5.2.0" + +eslint-visitor-keys@^3.3.0, eslint-visitor-keys@^3.4.1, eslint-visitor-keys@^3.4.3: + version "3.4.3" + resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz#0cd72fe8550e3c2eae156a96a4dddcd1c8ac5800" + integrity sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag== + +eslint@^8.56.0: + version "8.56.0" + resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.56.0.tgz#4957ce8da409dc0809f99ab07a1b94832ab74b15" + integrity sha512-Go19xM6T9puCOWntie1/P997aXxFsOi37JIHRWI514Hc6ZnaHGKY9xFhrU65RT6CcBEzZoGG1e6Nq+DT04ZtZQ== + dependencies: + "@eslint-community/eslint-utils" "^4.2.0" + "@eslint-community/regexpp" "^4.6.1" + "@eslint/eslintrc" "^2.1.4" + "@eslint/js" "8.56.0" + "@humanwhocodes/config-array" "^0.11.13" + "@humanwhocodes/module-importer" "^1.0.1" + "@nodelib/fs.walk" "^1.2.8" + "@ungap/structured-clone" "^1.2.0" + ajv "^6.12.4" + chalk "^4.0.0" + cross-spawn "^7.0.2" + debug "^4.3.2" + doctrine "^3.0.0" + escape-string-regexp "^4.0.0" + eslint-scope "^7.2.2" + eslint-visitor-keys "^3.4.3" + espree "^9.6.1" + esquery "^1.4.2" + esutils "^2.0.2" + fast-deep-equal "^3.1.3" + file-entry-cache "^6.0.1" + find-up "^5.0.0" + glob-parent "^6.0.2" + globals "^13.19.0" + graphemer "^1.4.0" + ignore "^5.2.0" + imurmurhash "^0.1.4" + is-glob "^4.0.0" + is-path-inside "^3.0.3" + js-yaml "^4.1.0" + json-stable-stringify-without-jsonify "^1.0.1" + levn "^0.4.1" + lodash.merge "^4.6.2" + minimatch "^3.1.2" + natural-compare "^1.4.0" + optionator "^0.9.3" + strip-ansi "^6.0.1" + text-table "^0.2.0" + +espree@^9.6.0, espree@^9.6.1: + version "9.6.1" + resolved "https://registry.yarnpkg.com/espree/-/espree-9.6.1.tgz#a2a17b8e434690a5432f2f8018ce71d331a48c6f" + integrity sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ== + dependencies: + acorn "^8.9.0" + acorn-jsx "^5.3.2" + eslint-visitor-keys "^3.4.1" + esprima@^4.0.0, esprima@^4.0.1, esprima@~4.0.0: version "4.0.1" resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71" integrity sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A== +esquery@^1.4.2, esquery@^1.5.0: + version "1.5.0" + resolved "https://registry.yarnpkg.com/esquery/-/esquery-1.5.0.tgz#6ce17738de8577694edd7361c57182ac8cb0db0b" + integrity sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg== + dependencies: + estraverse "^5.1.0" + esrecurse@^4.3.0: version "4.3.0" resolved "https://registry.yarnpkg.com/esrecurse/-/esrecurse-4.3.0.tgz#7ad7964d679abb28bee72cec63758b1c5d2c9921" @@ -6955,7 +7559,7 @@ estraverse@^4.1.1: resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-4.3.0.tgz#398ad3f3c5a24948be7725e83d11a7de28cdbd1d" integrity sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw== -estraverse@^5.2.0: +estraverse@^5.1.0, estraverse@^5.2.0, estraverse@^5.3.0: version "5.3.0" resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-5.3.0.tgz#2eea5290702f26ab8fe5370370ff86c965d21123" integrity sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA== @@ -7119,12 +7723,17 @@ fast-base64-decode@^1.0.0: resolved "https://registry.yarnpkg.com/fast-base64-decode/-/fast-base64-decode-1.0.0.tgz#b434a0dd7d92b12b43f26819300d2dafb83ee418" integrity sha512-qwaScUgUGBYeDNRnbc/KyllVU88Jk1pRHPStuF/lO7B0/RTRLj7U0lkdTAutlBblY08rwZDff6tNU9cjv6j//Q== -fast-deep-equal@^3.1.1: +fast-deep-equal@^3.1.1, fast-deep-equal@^3.1.3: version "3.1.3" resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525" integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q== -fast-glob@3, fast-glob@^3.0.3, fast-glob@^3.2.11, fast-glob@^3.2.12, fast-glob@^3.2.9: +fast-diff@^1.1.2: + version "1.3.0" + resolved "https://registry.yarnpkg.com/fast-diff/-/fast-diff-1.3.0.tgz#ece407fa550a64d638536cd727e129c61616e0f0" + integrity sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw== + +fast-glob@3, fast-glob@^3.0.3, fast-glob@^3.2.11, fast-glob@^3.2.12, fast-glob@^3.2.9, fast-glob@^3.3.1: version "3.3.2" resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.3.2.tgz#a904501e57cfdd2ffcded45e99a54fef55e46129" integrity sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow== @@ -7151,6 +7760,11 @@ fast-json-stable-stringify@2.x, fast-json-stable-stringify@^2.0.0, fast-json-sta resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz#874bf69c6f404c2b5d99c481341399fd55892633" integrity sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw== +fast-levenshtein@^2.0.6: + version "2.0.6" + resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" + integrity sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw== + fast-xml-parser@4.2.5: version "4.2.5" resolved "https://registry.yarnpkg.com/fast-xml-parser/-/fast-xml-parser-4.2.5.tgz#a6747a09296a6cb34f2ae634019bf1738f3b421f" @@ -7211,6 +7825,13 @@ figures@^1.3.5: escape-string-regexp "^1.0.5" object-assign "^4.1.0" +file-entry-cache@^6.0.1: + version "6.0.1" + resolved "https://registry.yarnpkg.com/file-entry-cache/-/file-entry-cache-6.0.1.tgz#211b2dd9659cb0394b073e7323ac3c933d522027" + integrity sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg== + dependencies: + flat-cache "^3.0.4" + file-url@3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/file-url/-/file-url-3.0.0.tgz#247a586a746ce9f7a8ed05560290968afc262a77" @@ -7314,11 +7935,25 @@ find-up@^4.0.0, find-up@^4.1.0: locate-path "^5.0.0" path-exists "^4.0.0" +flat-cache@^3.0.4: + version "3.2.0" + resolved "https://registry.yarnpkg.com/flat-cache/-/flat-cache-3.2.0.tgz#2c0c2d5040c99b1632771a9d105725c0115363ee" + integrity sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw== + dependencies: + flatted "^3.2.9" + keyv "^4.5.3" + rimraf "^3.0.2" + flat@^5.0.2: version "5.0.2" resolved "https://registry.yarnpkg.com/flat/-/flat-5.0.2.tgz#8ca6fe332069ffa9d324c327198c598259ceb241" integrity sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ== +flatted@^3.2.9: + version "3.2.9" + resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.2.9.tgz#7eb4c67ca1ba34232ca9d2d93e9886e611ad7daf" + integrity sha512-36yxDn5H7OFZQla0/jFJmbIKTdZAQHngCedGxiMmpNfEZM0sdEeT+WczLQrjK6D7o2aiyLYDnkw0R3JK0Qv1RQ== + flow-enums-runtime@^0.0.5: version "0.0.5" resolved "https://registry.yarnpkg.com/flow-enums-runtime/-/flow-enums-runtime-0.0.5.tgz#95884bfcc82edaf27eef7e1dd09732331cfbafbc" @@ -7344,6 +7979,13 @@ follow-redirects@^1.15.0: resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.4.tgz#cdc7d308bf6493126b17ea2191ea0ccf3e535adf" integrity sha512-Cr4D/5wlrb0z9dgERpUL3LrmPKVDsETIJhaCMeDfuFYcqa5bldGV6wBsAN6X/vxlXQtFBMrXdXxdL8CbDTGniw== +for-each@^0.3.3: + version "0.3.3" + resolved "https://registry.yarnpkg.com/for-each/-/for-each-0.3.3.tgz#69b447e88a0a5d32c3e7084f3f1710034b21376e" + integrity sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw== + dependencies: + is-callable "^1.1.3" + foreground-child@^3.1.0: version "3.1.1" resolved "https://registry.yarnpkg.com/foreground-child/-/foreground-child-3.1.1.tgz#1d173e776d75d2772fed08efe4a0de1ea1b12d0d" @@ -7434,6 +8076,16 @@ function-bind@^1.1.2: resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.2.tgz#2c02d864d97f3ea6c8830c464cbd11ab6eab7a1c" integrity sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA== +function.prototype.name@^1.1.6: + version "1.1.6" + resolved "https://registry.yarnpkg.com/function.prototype.name/-/function.prototype.name-1.1.6.tgz#cdf315b7d90ee77a4c6ee216c3c3362da07533fd" + integrity sha512-Z5kx79swU5P27WEayXM1tBi5Ze/lbIyiNgU3qyXUOf9b2rgXYyF9Dy9Cx+IQv/Lc8WCG6L82zwUPpSS9hGehIg== + dependencies: + call-bind "^1.0.2" + define-properties "^1.2.0" + es-abstract "^1.22.1" + functions-have-names "^1.2.3" + functions-have-names@^1.2.3: version "1.2.3" resolved "https://registry.yarnpkg.com/functions-have-names/-/functions-have-names-1.2.3.tgz#0404fe4ee2ba2f607f0e0ec3c80bae994133b834" @@ -7506,7 +8158,7 @@ get-caller-file@^2.0.0, get-caller-file@^2.0.1, get-caller-file@^2.0.5: resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg== -get-intrinsic@^1.1.3, get-intrinsic@^1.2.1, get-intrinsic@^1.2.2: +get-intrinsic@^1.0.2, get-intrinsic@^1.1.1, get-intrinsic@^1.1.3, get-intrinsic@^1.2.0, get-intrinsic@^1.2.1, get-intrinsic@^1.2.2: version "1.2.2" resolved "https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.2.2.tgz#281b7622971123e1ef4b3c90fd7539306da93f3b" integrity sha512-0gSo4ml/0j98Y3lngkFEot/zhiCeWsbYIlZ+uZOVgzLyLaUw7wxUL+nCTP0XJvJg1AXulJRI3UJi8GsbDuxdGA== @@ -7553,6 +8205,21 @@ get-stream@^6.0.0: resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-6.0.1.tgz#a262d8eef67aced57c2852ad6167526a43cbf7b7" integrity sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg== +get-symbol-description@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/get-symbol-description/-/get-symbol-description-1.0.0.tgz#7fdb81c900101fbd564dd5f1a30af5aadc1e58d6" + integrity sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw== + dependencies: + call-bind "^1.0.2" + get-intrinsic "^1.1.1" + +get-tsconfig@^4.5.0, get-tsconfig@^4.7.0: + version "4.7.2" + resolved "https://registry.yarnpkg.com/get-tsconfig/-/get-tsconfig-4.7.2.tgz#0dcd6fb330391d46332f4c6c1bf89a6514c2ddce" + integrity sha512-wuMsz4leaj5hbGgg4IvDU0bqJagpftG5l5cXIAvo8uZrqn0NJqwtfupTN00VnkQJPcIRrxYrm1Ue24btpCha2A== + dependencies: + resolve-pkg-maps "^1.0.0" + getenv@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/getenv/-/getenv-1.0.0.tgz#874f2e7544fbca53c7a4738f37de8605c3fcfc31" @@ -7617,6 +8284,13 @@ glob-parent@5.1.2, glob-parent@^5.1.2, glob-parent@~5.1.2: dependencies: is-glob "^4.0.1" +glob-parent@^6.0.2: + version "6.0.2" + resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-6.0.2.tgz#6d237d99083950c79290f24c7642a3de9a28f9e3" + integrity sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A== + dependencies: + is-glob "^4.0.3" + glob-to-regexp@^0.4.1: version "0.4.1" resolved "https://registry.yarnpkg.com/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz#c75297087c851b9a578bd217dd59a92f59fe546e" @@ -7695,6 +8369,20 @@ globals@^11.1.0: resolved "https://registry.yarnpkg.com/globals/-/globals-11.12.0.tgz#ab8795338868a0babd8525758018c2a7eb95c42e" integrity sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA== +globals@^13.19.0, globals@^13.24.0: + version "13.24.0" + resolved "https://registry.yarnpkg.com/globals/-/globals-13.24.0.tgz#8432a19d78ce0c1e833949c36adb345400bb1171" + integrity sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ== + dependencies: + type-fest "^0.20.2" + +globalthis@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/globalthis/-/globalthis-1.0.3.tgz#5852882a52b80dc301b0660273e1ed082f0b6ccf" + integrity sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA== + dependencies: + define-properties "^1.1.3" + globby@11.1.0, globby@^11.0.1, globby@^11.1.0: version "11.1.0" resolved "https://registry.yarnpkg.com/globby/-/globby-11.1.0.tgz#bd4be98bb042f83d796f7e3811991fbe82a0d34b" @@ -7733,6 +8421,11 @@ graceful-fs@4.2.11, graceful-fs@^4.1.11, graceful-fs@^4.1.15, graceful-fs@^4.1.2 resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.11.tgz#4183e4e8bf08bb6e05bbb2f7d2e0c8f712ca40e3" integrity sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ== +graphemer@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/graphemer/-/graphemer-1.4.0.tgz#fb2f1d55e0e3a1849aeffc90c4fa0dd53a0e66c6" + integrity sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag== + graphql@15.8.0: version "15.8.0" resolved "https://registry.yarnpkg.com/graphql/-/graphql-15.8.0.tgz#33410e96b012fa3bdb1091cc99a94769db212b38" @@ -7774,6 +8467,11 @@ has-ansi@^2.0.0: dependencies: ansi-regex "^2.0.0" +has-bigints@^1.0.1, has-bigints@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/has-bigints/-/has-bigints-1.0.2.tgz#0871bd3e3d51626f6ca0966668ba35d5602d6eaa" + integrity sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ== + has-flag@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" @@ -7986,7 +8684,7 @@ ignore-walk@^6.0.0: dependencies: minimatch "^9.0.0" -ignore@^5.0.4, ignore@^5.1.1, ignore@^5.1.2, ignore@^5.2.0: +ignore@^5.0.4, ignore@^5.1.1, ignore@^5.1.2, ignore@^5.2.0, ignore@^5.2.4: version "5.3.0" resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.3.0.tgz#67418ae40d34d6999c95ff56016759c718c82f78" integrity sha512-g7dmpshy+gD7mh88OC9NwSGTKoc3kyLAZQRU1mt53Aw/vnvfXnbC+F/7F7QoYVKbV+KNvJx8wArewKy1vXMtlg== @@ -8021,7 +8719,7 @@ import-fresh@^2.0.0: caller-path "^2.0.0" resolve-from "^3.0.0" -import-fresh@^3.3.0: +import-fresh@^3.2.1, import-fresh@^3.3.0: version "3.3.0" resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-3.3.0.tgz#37162c25fcb9ebaa2e6e53d5b4d88ce17d9e0c2b" integrity sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw== @@ -8145,6 +8843,15 @@ inquirer@^8.2.4: through "^2.3.6" wrap-ansi "^6.0.1" +internal-slot@^1.0.5: + version "1.0.6" + resolved "https://registry.yarnpkg.com/internal-slot/-/internal-slot-1.0.6.tgz#37e756098c4911c5e912b8edbf71ed3aa116f930" + integrity sha512-Xj6dv+PsbtwyPpEflsejS+oIZxmMlV44zAhG479uYu89MsjcYOhCFnNyKrkJrihbsiasQyY0afoCl/9BLR65bg== + dependencies: + get-intrinsic "^1.2.2" + hasown "^2.0.0" + side-channel "^1.0.4" + interpret@^1.0.0: version "1.4.0" resolved "https://registry.yarnpkg.com/interpret/-/interpret-1.4.0.tgz#665ab8bc4da27a774a40584e812e3e0fa45b1a1e" @@ -8190,11 +8897,27 @@ is-arguments@^1.1.1: call-bind "^1.0.2" has-tostringtag "^1.0.0" +is-array-buffer@^3.0.1, is-array-buffer@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/is-array-buffer/-/is-array-buffer-3.0.2.tgz#f2653ced8412081638ecb0ebbd0c41c6e0aecbbe" + integrity sha512-y+FyyR/w8vfIRq4eQcM1EYgSTnmHXPqaF+IgzgraytCFq5Xh8lllDVmAZolPJiZttZLeFSINPYMaEJ7/vWUa1w== + dependencies: + call-bind "^1.0.2" + get-intrinsic "^1.2.0" + is-typed-array "^1.1.10" + is-arrayish@^0.2.1: version "0.2.1" resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d" integrity sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg== +is-bigint@^1.0.1: + version "1.0.4" + resolved "https://registry.yarnpkg.com/is-bigint/-/is-bigint-1.0.4.tgz#08147a1875bc2b32005d41ccd8291dffc6691df3" + integrity sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg== + dependencies: + has-bigints "^1.0.1" + is-binary-path@~2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-2.1.0.tgz#ea1f7f3b80f064236e83470f86c09c254fb45b09" @@ -8202,11 +8925,31 @@ is-binary-path@~2.1.0: dependencies: binary-extensions "^2.0.0" +is-boolean-object@^1.1.0: + version "1.1.2" + resolved "https://registry.yarnpkg.com/is-boolean-object/-/is-boolean-object-1.1.2.tgz#5c6dc200246dd9321ae4b885a114bb1f75f63719" + integrity sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA== + dependencies: + call-bind "^1.0.2" + has-tostringtag "^1.0.0" + is-buffer@~1.1.6: version "1.1.6" resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.6.tgz#efaa2ea9daa0d7ab2ea13a97b2b8ad51fefbe8be" integrity sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w== +is-builtin-module@^3.2.1: + version "3.2.1" + resolved "https://registry.yarnpkg.com/is-builtin-module/-/is-builtin-module-3.2.1.tgz#f03271717d8654cfcaf07ab0463faa3571581169" + integrity sha512-BSLE3HnV2syZ0FK0iMA/yUGplUeMmNz4AW5fnTunbCIqZi4vG3WjJT9FHMy5D69xmAYBHXQhJdALdpwVxV501A== + dependencies: + builtin-modules "^3.3.0" + +is-callable@^1.1.3, is-callable@^1.1.4, is-callable@^1.2.7: + version "1.2.7" + resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.2.7.tgz#3bc2a85ea742d9e36205dcacdd72ca1fdc51b055" + integrity sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA== + is-ci@3.0.1: version "3.0.1" resolved "https://registry.yarnpkg.com/is-ci/-/is-ci-3.0.1.tgz#db6ecbed1bd659c43dac0f45661e7674103d1867" @@ -8214,14 +8957,14 @@ is-ci@3.0.1: dependencies: ci-info "^3.2.0" -is-core-module@^2.13.0, is-core-module@^2.5.0, is-core-module@^2.8.1: +is-core-module@^2.11.0, is-core-module@^2.12.1, is-core-module@^2.13.0, is-core-module@^2.13.1, is-core-module@^2.5.0, is-core-module@^2.8.1: version "2.13.1" resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.13.1.tgz#ad0d7532c6fea9da1ebdc82742d74525c6273384" integrity sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw== dependencies: hasown "^2.0.0" -is-date-object@^1.0.5: +is-date-object@^1.0.1, is-date-object@^1.0.5: version "1.0.5" resolved "https://registry.yarnpkg.com/is-date-object/-/is-date-object-1.0.5.tgz#0841d5536e724c25597bf6ea62e1bd38298df31f" integrity sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ== @@ -8265,7 +9008,7 @@ is-generator-fn@^2.0.0: resolved "https://registry.yarnpkg.com/is-generator-fn/-/is-generator-fn-2.1.0.tgz#7d140adc389aaf3011a8f2a2a4cfa6faadffb118" integrity sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ== -is-glob@^4.0.1, is-glob@~4.0.1: +is-glob@^4.0.0, is-glob@^4.0.1, is-glob@^4.0.3, is-glob@~4.0.1: version "4.0.3" resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.3.tgz#64f61e42cbbb2eec2071a9dac0b28ba1e65d5084" integrity sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg== @@ -8282,6 +9025,18 @@ is-lambda@^1.0.1: resolved "https://registry.yarnpkg.com/is-lambda/-/is-lambda-1.0.1.tgz#3d9877899e6a53efc0160504cde15f82e6f061d5" integrity sha512-z7CMFGNrENq5iFB9Bqo64Xk6Y9sg+epq1myIcdHaGnbMTYOxvzsEtdYqQUylB7LxfkvgrrjP32T6Ywciio9UIQ== +is-negative-zero@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/is-negative-zero/-/is-negative-zero-2.0.2.tgz#7bf6f03a28003b8b3965de3ac26f664d765f3150" + integrity sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA== + +is-number-object@^1.0.4: + version "1.0.7" + resolved "https://registry.yarnpkg.com/is-number-object/-/is-number-object-1.0.7.tgz#59d50ada4c45251784e9904f5246c742f07a42fc" + integrity sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ== + dependencies: + has-tostringtag "^1.0.0" + is-number@^7.0.0: version "7.0.0" resolved "https://registry.yarnpkg.com/is-number/-/is-number-7.0.0.tgz#7535345b896734d5f80c4d06c50955527a14f12b" @@ -8297,7 +9052,7 @@ is-path-cwd@^2.2.0: resolved "https://registry.yarnpkg.com/is-path-cwd/-/is-path-cwd-2.2.0.tgz#67d43b82664a7b5191fd9119127eb300048a9fdb" integrity sha512-w942bTcih8fdJPJmQHFzkS76NEP8Kzzvmw92cXsazb8intwLqPibPPdXf4ANdKV3rYMuuQYGIWtvz9JilB3NFQ== -is-path-inside@^3.0.2: +is-path-inside@^3.0.2, is-path-inside@^3.0.3: version "3.0.3" resolved "https://registry.yarnpkg.com/is-path-inside/-/is-path-inside-3.0.3.tgz#d231362e53a07ff2b0e0ea7fed049161ffd16283" integrity sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ== @@ -8337,6 +9092,13 @@ is-regex@^1.1.4: call-bind "^1.0.2" has-tostringtag "^1.0.0" +is-shared-array-buffer@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz#8f259c573b60b6a32d4058a1a07430c0a7344c79" + integrity sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA== + dependencies: + call-bind "^1.0.2" + is-ssh@^1.4.0: version "1.4.0" resolved "https://registry.yarnpkg.com/is-ssh/-/is-ssh-1.4.0.tgz#4f8220601d2839d8fa624b3106f8e8884f01b8b2" @@ -8359,6 +9121,20 @@ is-stream@^2.0.0: resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-2.0.1.tgz#fac1e3d53b97ad5a9d0ae9cef2389f5810a5c077" integrity sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg== +is-string@^1.0.5, is-string@^1.0.7: + version "1.0.7" + resolved "https://registry.yarnpkg.com/is-string/-/is-string-1.0.7.tgz#0dd12bf2006f255bb58f695110eff7491eebc0fd" + integrity sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg== + dependencies: + has-tostringtag "^1.0.0" + +is-symbol@^1.0.2, is-symbol@^1.0.3: + version "1.0.4" + resolved "https://registry.yarnpkg.com/is-symbol/-/is-symbol-1.0.4.tgz#a6dac93b635b063ca6872236de88910a57af139c" + integrity sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg== + dependencies: + has-symbols "^1.0.2" + is-text-path@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/is-text-path/-/is-text-path-1.0.1.tgz#4e1aa0fb51bfbcb3e92688001397202c1775b66e" @@ -8371,6 +9147,13 @@ is-there@^4.3.3: resolved "https://registry.yarnpkg.com/is-there/-/is-there-4.5.1.tgz#ea292e7fad3fc4d70763fe0af40a286c9f5e1e2e" integrity sha512-vIZ7HTXAoRoIwYSsTnxb0sg9L6rth+JOulNcavsbskQkCIWoSM2cjFOWZs4wGziGZER+Xgs/HXiCQZgiL8ppxQ== +is-typed-array@^1.1.10, is-typed-array@^1.1.12, is-typed-array@^1.1.9: + version "1.1.12" + resolved "https://registry.yarnpkg.com/is-typed-array/-/is-typed-array-1.1.12.tgz#d0bab5686ef4a76f7a73097b95470ab199c57d4a" + integrity sha512-Z14TF2JNG8Lss5/HMqt0//T9JeHXttXy5pH/DBU4vi98ozO2btxzq9MwYDZYnKwU8nRsz/+GVFVRDq3DkVuSPg== + dependencies: + which-typed-array "^1.1.11" + is-unicode-supported@^0.1.0: version "0.1.0" resolved "https://registry.yarnpkg.com/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz#3f26c76a809593b52bfa2ecb5710ed2779b522a7" @@ -8381,6 +9164,13 @@ is-utf8@^0.2.0: resolved "https://registry.yarnpkg.com/is-utf8/-/is-utf8-0.2.1.tgz#4b0da1442104d1b336340e80797e865cf39f7d72" integrity sha512-rMYPYvCzsXywIsldgLaSoPlw5PfoB/ssr7hY4pLfcodrA5M/eArza1a9VmTiNIBNMjOGr1Ow9mTyU2o69U6U9Q== +is-weakref@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-weakref/-/is-weakref-1.0.2.tgz#9529f383a9338205e89765e0392efc2f100f06f2" + integrity sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ== + dependencies: + call-bind "^1.0.2" + is-wsl@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/is-wsl/-/is-wsl-1.1.0.tgz#1f16e4aa22b04d1336b66188a66af3c600c3a66d" @@ -8403,6 +9193,11 @@ isarray@1.0.0, isarray@^1.0.0, isarray@~1.0.0: resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" integrity sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ== +isarray@^2.0.5: + version "2.0.5" + resolved "https://registry.yarnpkg.com/isarray/-/isarray-2.0.5.tgz#8af1e4c1221244cc62459faf38940d4e644a5723" + integrity sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw== + isexe@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" @@ -9006,6 +9801,11 @@ jscodeshift@^0.14.0: temp "^0.8.4" write-file-atomic "^2.3.0" +jsdoc-type-pratt-parser@~4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/jsdoc-type-pratt-parser/-/jsdoc-type-pratt-parser-4.0.0.tgz#136f0571a99c184d84ec84662c45c29ceff71114" + integrity sha512-YtOli5Cmzy3q4dP26GraSOeAhqecewG04hoO8DY56CH4KJ9Fvv5qKWUCCo3HZob7esJQHCv6/+bnTy72xZZaVQ== + jsdom@^20.0.0: version "20.0.3" resolved "https://registry.yarnpkg.com/jsdom/-/jsdom-20.0.3.tgz#886a41ba1d4726f67a8858028c99489fed6ad4db" @@ -9048,6 +9848,11 @@ jsesc@~0.5.0: resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-0.5.0.tgz#e7dee66e35d6fc16f710fe91d5cf69f70f08911d" integrity sha512-uZz5UnB7u4T9LvwmFqXii7pZSouaRPorGs5who1Ip7VO0wxanFvBL7GkM6dTHlgX+jhBApRetaWpnDabOeTcnA== +json-buffer@3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/json-buffer/-/json-buffer-3.0.1.tgz#9338802a30d3b6605fbe0613e094008ca8c05a13" + integrity sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ== + json-loader@^0.5.7: version "0.5.7" resolved "https://registry.yarnpkg.com/json-loader/-/json-loader-0.5.7.tgz#dca14a70235ff82f0ac9a3abeb60d337a365185d" @@ -9073,6 +9878,11 @@ json-schema-traverse@^0.4.1: resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz#69f6a87d9513ab8bb8fe63bdb0979c448e684660" integrity sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg== +json-stable-stringify-without-jsonify@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz#9db7b59496ad3f3cfef30a75142d2d930ad72651" + integrity sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw== + json-stringify-nice@^1.1.4: version "1.1.4" resolved "https://registry.yarnpkg.com/json-stringify-nice/-/json-stringify-nice-1.1.4.tgz#2c937962b80181d3f317dd39aa323e14f5a60a67" @@ -9083,7 +9893,7 @@ json-stringify-safe@^5.0.1: resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" integrity sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA== -json5@^1.0.1: +json5@^1.0.1, json5@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/json5/-/json5-1.0.2.tgz#63d98d60f21b313b77c4d6da18bfa69d80e1d593" integrity sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA== @@ -9143,6 +9953,13 @@ keyboard-key@^1.0.4: resolved "https://registry.yarnpkg.com/keyboard-key/-/keyboard-key-1.1.0.tgz#6f2e8e37fa11475bb1f1d65d5174f1b35653f5b7" integrity sha512-qkBzPTi3rlAKvX7k0/ub44sqOfXeLc/jcnGGmj5c7BJpU8eDrEVPyhCvNYAaoubbsLm9uGWwQJO1ytQK1a9/dQ== +keyv@^4.5.3: + version "4.5.4" + resolved "https://registry.yarnpkg.com/keyv/-/keyv-4.5.4.tgz#a879a99e29452f942439f2a405e3af8b31d4de93" + integrity sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw== + dependencies: + json-buffer "3.0.1" + kind-of@^6.0.2, kind-of@^6.0.3: version "6.0.3" resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-6.0.3.tgz#07c05034a6c349fa06e24fa35aa76db4580ce4dd" @@ -9253,6 +10070,14 @@ leven@^3.1.0: resolved "https://registry.yarnpkg.com/leven/-/leven-3.1.0.tgz#77891de834064cccba82ae7842bb6b14a13ed7f2" integrity sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A== +levn@^0.4.1: + version "0.4.1" + resolved "https://registry.yarnpkg.com/levn/-/levn-0.4.1.tgz#ae4562c007473b932a6200d403268dd2fffc6ade" + integrity sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ== + dependencies: + prelude-ls "^1.2.1" + type-check "~0.4.0" + libnpmaccess@7.0.2: version "7.0.2" resolved "https://registry.yarnpkg.com/libnpmaccess/-/libnpmaccess-7.0.2.tgz#7f056c8c933dd9c8ba771fa6493556b53c5aac52" @@ -9404,6 +10229,11 @@ lodash.memoize@4.x: resolved "https://registry.yarnpkg.com/lodash.memoize/-/lodash.memoize-4.1.2.tgz#bcc6c49a42a2840ed997f323eada5ecd182e0bfe" integrity sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag== +lodash.merge@^4.6.2: + version "4.6.2" + resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.2.tgz#558aa53b43b661e1925a0afdfa36a9a1085fe57a" + integrity sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ== + lodash.throttle@^4.1.1: version "4.1.1" resolved "https://registry.yarnpkg.com/lodash.throttle/-/lodash.throttle-4.1.1.tgz#c23e91b710242ac70c37f1e1cda9274cc39bf2f4" @@ -10587,14 +11417,14 @@ minimatch@3.0.5: dependencies: brace-expansion "^1.1.7" -"minimatch@6 || 7 || 8 || 9", minimatch@^9.0.0, minimatch@^9.0.1: +"minimatch@6 || 7 || 8 || 9", minimatch@9.0.3, minimatch@^9.0.0, minimatch@^9.0.1: version "9.0.3" resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-9.0.3.tgz#a6e00c3de44c3a542bfaae70abfc22420a6da825" integrity sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg== dependencies: brace-expansion "^2.0.1" -minimatch@^3.0.0, minimatch@^3.0.2, minimatch@^3.0.4, minimatch@^3.1.1, minimatch@^3.1.2: +minimatch@^3.0.0, minimatch@^3.0.2, minimatch@^3.0.4, minimatch@^3.0.5, minimatch@^3.1.1, minimatch@^3.1.2: version "3.1.2" resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b" integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw== @@ -10765,7 +11595,7 @@ ms@2.1.2: resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== -ms@2.1.3, ms@^2.0.0: +ms@2.1.3, ms@^2.0.0, ms@^2.1.1: version "2.1.3" resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2" integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA== @@ -11243,6 +12073,11 @@ object-assign@^4.1.0, object-assign@^4.1.1: resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" integrity sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg== +object-inspect@^1.13.1, object-inspect@^1.9.0: + version "1.13.1" + resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.13.1.tgz#b96c6109324ccfef6b12216a956ca4dc2ff94bc2" + integrity sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ== + object-is@^1.1.5: version "1.1.5" resolved "https://registry.yarnpkg.com/object-is/-/object-is-1.1.5.tgz#b9deeaa5fc7f1846a0faecdceec138e5778f53ac" @@ -11256,6 +12091,44 @@ object-keys@^1.1.1: resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.1.1.tgz#1c47f272df277f3b1daf061677d9c82e2322c60e" integrity sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA== +object.assign@^4.1.4: + version "4.1.5" + resolved "https://registry.yarnpkg.com/object.assign/-/object.assign-4.1.5.tgz#3a833f9ab7fdb80fc9e8d2300c803d216d8fdbb0" + integrity sha512-byy+U7gp+FVwmyzKPYhW2h5l3crpmGsxl7X2s8y43IgxvG4g3QZ6CffDtsNQy1WsmZpQbO+ybo0AlW7TY6DcBQ== + dependencies: + call-bind "^1.0.5" + define-properties "^1.2.1" + has-symbols "^1.0.3" + object-keys "^1.1.1" + +object.fromentries@^2.0.7: + version "2.0.7" + resolved "https://registry.yarnpkg.com/object.fromentries/-/object.fromentries-2.0.7.tgz#71e95f441e9a0ea6baf682ecaaf37fa2a8d7e616" + integrity sha512-UPbPHML6sL8PI/mOqPwsH4G6iyXcCGzLin8KvEPenOZN5lpCNBZZQ+V62vdjB1mQHrmqGQt5/OJzemUA+KJmEA== + dependencies: + call-bind "^1.0.2" + define-properties "^1.2.0" + es-abstract "^1.22.1" + +object.groupby@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/object.groupby/-/object.groupby-1.0.1.tgz#d41d9f3c8d6c778d9cbac86b4ee9f5af103152ee" + integrity sha512-HqaQtqLnp/8Bn4GL16cj+CUYbnpe1bh0TtEaWvybszDG4tgxCJuRpV8VGuvNaI1fAnI4lUJzDG55MXcOH4JZcQ== + dependencies: + call-bind "^1.0.2" + define-properties "^1.2.0" + es-abstract "^1.22.1" + get-intrinsic "^1.2.1" + +object.values@^1.1.7: + version "1.1.7" + resolved "https://registry.yarnpkg.com/object.values/-/object.values-1.1.7.tgz#617ed13272e7e1071b43973aa1655d9291b8442a" + integrity sha512-aU6xnDFYT3x17e/f0IiiwlGPTy2jzMySGfUB4fq6z7CV8l85CWHDk5ErhyhpfDHhrOMwGFhSQkhMGHaIotA6Ng== + dependencies: + call-bind "^1.0.2" + define-properties "^1.2.0" + es-abstract "^1.22.1" + on-finished@2.4.1: version "2.4.1" resolved "https://registry.yarnpkg.com/on-finished/-/on-finished-2.4.1.tgz#58c8c44116e54845ad57f14ab10b03533184ac3f" @@ -11315,6 +12188,18 @@ opener@^1.5.2: resolved "https://registry.yarnpkg.com/opener/-/opener-1.5.2.tgz#5d37e1f35077b9dcac4301372271afdeb2a13598" integrity sha512-ur5UIdyw5Y7yEj9wLzhqXiy6GZ3Mwx0yGI+5sMn2r0N0v3cKJvUmFH5yPP+WXh9e0xfyzyJX95D8l088DNFj7A== +optionator@^0.9.3: + version "0.9.3" + resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.9.3.tgz#007397d44ed1872fdc6ed31360190f81814e2c64" + integrity sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg== + dependencies: + "@aashutoshrathi/word-wrap" "^1.2.3" + deep-is "^0.1.3" + fast-levenshtein "^2.0.6" + levn "^0.4.1" + prelude-ls "^1.2.1" + type-check "^0.4.0" + ora@^5.4.1: version "5.4.1" resolved "https://registry.yarnpkg.com/ora/-/ora-5.4.1.tgz#1b2678426af4ac4a509008e5e4ac9e9959db9e18" @@ -11738,6 +12623,18 @@ pouchdb-collections@^1.0.1: resolved "https://registry.yarnpkg.com/pouchdb-collections/-/pouchdb-collections-1.0.1.tgz#fe63a17da977611abef7cb8026cb1a9553fd8359" integrity sha512-31db6JRg4+4D5Yzc2nqsRqsA2oOkZS8DpFav3jf/qVNBxusKa2ClkEIZ2bJNpaDbMfWtnuSq59p6Bn+CipPMdg== +prelude-ls@^1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396" + integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g== + +prettier-linter-helpers@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz#d23d41fe1375646de2d0104d3454a3008802cf7b" + integrity sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w== + dependencies: + fast-diff "^1.1.2" + prettier@^3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.1.0.tgz#c6d16474a5f764ea1a4a373c593b779697744d5e" @@ -12443,12 +13340,17 @@ resolve-from@^4.0.0: resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-4.0.0.tgz#4abcd852ad32dd7baabfe9b40e00a36db5f392e6" integrity sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g== +resolve-pkg-maps@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz#616b3dc2c57056b5588c31cdf4b3d64db133720f" + integrity sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw== + resolve.exports@^2.0.0: version "2.0.2" resolved "https://registry.yarnpkg.com/resolve.exports/-/resolve.exports-2.0.2.tgz#f8c934b8e6a13f539e38b7098e2e36134f01e800" integrity sha512-X2UW6Nw3n/aMgDVy+0rSqgHlv39WZAlZrXCdnbyEiKm17DSqHX4MmQMaST3FbeWR5FTuRcUwYAziZajji0Y7mg== -resolve@^1.1.6, resolve@^1.10.0, resolve@^1.14.2, resolve@^1.20.0, resolve@^1.22.1, resolve@^1.3.2: +resolve@^1.1.6, resolve@^1.10.0, resolve@^1.14.2, resolve@^1.20.0, resolve@^1.22.1, resolve@^1.22.2, resolve@^1.22.4, resolve@^1.3.2: version "1.22.8" resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.8.tgz#b6c87a9f2aa06dfab52e3d70ac8cde321fa5a48d" integrity sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw== @@ -12562,6 +13464,16 @@ rxjs@^7.5.5, rxjs@^7.8.1: dependencies: tslib "^2.1.0" +safe-array-concat@^1.0.1: + version "1.1.0" + resolved "https://registry.yarnpkg.com/safe-array-concat/-/safe-array-concat-1.1.0.tgz#8d0cae9cb806d6d1c06e08ab13d847293ebe0692" + integrity sha512-ZdQ0Jeb9Ofti4hbt5lX3T2JcAamT9hfzYU1MNB+z/jaEbB6wfFfPIR/zEORmZqobkCCJhSjodobH6WHNmJ97dg== + dependencies: + call-bind "^1.0.5" + get-intrinsic "^1.2.2" + has-symbols "^1.0.3" + isarray "^2.0.5" + safe-buffer@5.1.2, safe-buffer@~5.1.0, safe-buffer@~5.1.1: version "5.1.2" resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" @@ -12572,6 +13484,15 @@ safe-buffer@^5.1.0, safe-buffer@~5.2.0: resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6" integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ== +safe-regex-test@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/safe-regex-test/-/safe-regex-test-1.0.2.tgz#3ba32bdb3ea35f940ee87e5087c60ee786c3f6c5" + integrity sha512-83S9w6eFq12BBIJYvjMux6/dkirb8+4zJRA9cxNBVb7Wq5fJBW+Xze48WqR8pxua7bDuAaaAxtVVd4Idjp1dBQ== + dependencies: + call-bind "^1.0.5" + get-intrinsic "^1.2.2" + is-regex "^1.1.4" + "safer-buffer@>= 2.1.2 < 3", "safer-buffer@>= 2.1.2 < 3.0.0": version "2.1.2" resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" @@ -12797,6 +13718,15 @@ shelljs@^0.8.4: interpret "^1.0.0" rechoir "^0.6.2" +side-channel@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/side-channel/-/side-channel-1.0.4.tgz#efce5c8fdc104ee751b25c58d4290011fa5ea2cf" + integrity sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw== + dependencies: + call-bind "^1.0.0" + get-intrinsic "^1.0.2" + object-inspect "^1.9.0" + signal-exit@3.0.7, signal-exit@^3.0.0, signal-exit@^3.0.2, signal-exit@^3.0.3, signal-exit@^3.0.7: version "3.0.7" resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.7.tgz#a9a1767f8af84155114eaabd73f99273c8f59ad9" @@ -12975,6 +13905,14 @@ spdx-expression-parse@^3.0.0: spdx-exceptions "^2.1.0" spdx-license-ids "^3.0.0" +spdx-expression-parse@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/spdx-expression-parse/-/spdx-expression-parse-4.0.0.tgz#a23af9f3132115465dac215c099303e4ceac5794" + integrity sha512-Clya5JIij/7C6bRR22+tnGXbc4VKlibKSVj2iHvVeX5iMW7s1SIQlqu699JkODJJIhh/pUu8L0/VLh8xflD+LQ== + dependencies: + spdx-exceptions "^2.1.0" + spdx-license-ids "^3.0.0" + spdx-license-ids@^3.0.0: version "3.0.16" resolved "https://registry.yarnpkg.com/spdx-license-ids/-/spdx-license-ids-3.0.16.tgz#a14f64e0954f6e25cc6587bd4f392522db0d998f" @@ -13114,6 +14052,33 @@ string-width@^5.0.1, string-width@^5.1.2: emoji-regex "^9.2.2" strip-ansi "^7.0.1" +string.prototype.trim@^1.2.8: + version "1.2.8" + resolved "https://registry.yarnpkg.com/string.prototype.trim/-/string.prototype.trim-1.2.8.tgz#f9ac6f8af4bd55ddfa8895e6aea92a96395393bd" + integrity sha512-lfjY4HcixfQXOfaqCvcBuOIapyaroTXhbkfJN3gcB1OtyupngWK4sEET9Knd0cXd28kTUqu/kHoV4HKSJdnjiQ== + dependencies: + call-bind "^1.0.2" + define-properties "^1.2.0" + es-abstract "^1.22.1" + +string.prototype.trimend@^1.0.7: + version "1.0.7" + resolved "https://registry.yarnpkg.com/string.prototype.trimend/-/string.prototype.trimend-1.0.7.tgz#1bb3afc5008661d73e2dc015cd4853732d6c471e" + integrity sha512-Ni79DqeB72ZFq1uH/L6zJ+DKZTkOtPIHovb3YZHQViE+HDouuU4mBrLOLDn5Dde3RF8qw5qVETEjhu9locMLvA== + dependencies: + call-bind "^1.0.2" + define-properties "^1.2.0" + es-abstract "^1.22.1" + +string.prototype.trimstart@^1.0.7: + version "1.0.7" + resolved "https://registry.yarnpkg.com/string.prototype.trimstart/-/string.prototype.trimstart-1.0.7.tgz#d4cdb44b83a4737ffbac2d406e405d43d0184298" + integrity sha512-NGhtDFu3jCEm7B4Fy0DpLewdJQOZcQ0rGbwQ/+stjnrp2i+rlKeCvos9hOIeCmqwratM47OBxY7uFZzjxHXmrg== + dependencies: + call-bind "^1.0.2" + define-properties "^1.2.0" + es-abstract "^1.22.1" + string_decoder@^1.1.1, string_decoder@^1.3.0: version "1.3.0" resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.3.0.tgz#42f114594a46cf1a8e30b0a84f56c78c3edac21e" @@ -13257,6 +14222,14 @@ symbol-tree@^3.2.4: resolved "https://registry.yarnpkg.com/symbol-tree/-/symbol-tree-3.2.4.tgz#430637d248ba77e078883951fb9aa0eed7c63fa2" integrity sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw== +synckit@^0.8.6: + version "0.8.8" + resolved "https://registry.yarnpkg.com/synckit/-/synckit-0.8.8.tgz#fe7fe446518e3d3d49f5e429f443cf08b6edfcd7" + integrity sha512-HwOKAP7Wc5aRGYdKH+dw0PRRpbO841v2DENBtjnR5HFWoiNByAl7vrx3p0G/rCyYXQsrxqtX48TImFtPcIHSpQ== + dependencies: + "@pkgr/core" "^0.1.0" + tslib "^2.6.2" + tapable@^2.1.1, tapable@^2.2.0: version "2.2.1" resolved "https://registry.yarnpkg.com/tapable/-/tapable-2.2.1.tgz#1967a73ef4060a82f12ab96af86d52fdb76eeca0" @@ -13368,6 +14341,11 @@ text-extensions@^1.0.0: resolved "https://registry.yarnpkg.com/text-extensions/-/text-extensions-1.9.0.tgz#1853e45fee39c945ce6f6c36b2d659b5aabc2a26" integrity sha512-wiBrwC1EhBelW12Zy26JeOUkQ5mRu+5o8rpsJk5+2t+Y5vE7e842qtZDQ2g1NpX/29HdyFeJ4nSIhI47ENSxlQ== +text-table@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4" + integrity sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw== + throat@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/throat/-/throat-5.0.0.tgz#c5199235803aad18754a667d659b5e72ce16764b" @@ -13478,6 +14456,11 @@ trim-newlines@^3.0.0: resolved "https://registry.yarnpkg.com/trim-newlines/-/trim-newlines-3.0.1.tgz#260a5d962d8b752425b32f3a7db0dcacd176c144" integrity sha512-c1PTsA3tYrIsLGkJkzHF+w9F2EyxfXGo4UyJc4pFL++FMjnq0HJS69T3M7d//gKrFKwy429bouPescbjecU+Zw== +ts-api-utils@^1.0.1: + version "1.0.3" + resolved "https://registry.yarnpkg.com/ts-api-utils/-/ts-api-utils-1.0.3.tgz#f12c1c781d04427313dbac808f453f050e54a331" + integrity sha512-wNMeqtMz5NtwpT/UZGY5alT+VoKdSsOOP/kqHFcUW1P/VRhH2wJ48+DN2WwUliNbQ976ETwDL0Ifd2VVvgonvg== + ts-jest@^29.1.1: version "29.1.1" resolved "https://registry.yarnpkg.com/ts-jest/-/ts-jest-29.1.1.tgz#f58fe62c63caf7bfcc5cc6472082f79180f0815b" @@ -13503,6 +14486,16 @@ ts-loader@^9.4.3: semver "^7.3.4" source-map "^0.7.4" +tsconfig-paths@^3.15.0: + version "3.15.0" + resolved "https://registry.yarnpkg.com/tsconfig-paths/-/tsconfig-paths-3.15.0.tgz#5299ec605e55b1abb23ec939ef15edaf483070d4" + integrity sha512-2Ac2RgzDe/cn48GvOe3M+o82pEFewD3UPbyoUHHdKasHwJKjds4fLXWf/Ux5kATBKN20oaFGu+jbElp1pos0mg== + dependencies: + "@types/json5" "^0.0.29" + json5 "^1.0.2" + minimist "^1.2.6" + strip-bom "^3.0.0" + tsconfig-paths@^4.1.2: version "4.2.0" resolved "https://registry.yarnpkg.com/tsconfig-paths/-/tsconfig-paths-4.2.0.tgz#ef78e19039133446d244beac0fd6a1632e2d107c" @@ -13610,6 +14603,13 @@ tuf-js@^1.1.7: debug "^4.3.4" make-fetch-happen "^11.1.1" +type-check@^0.4.0, type-check@~0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.4.0.tgz#07b8203bfa7056c0657050e3ccd2c37730bab8f1" + integrity sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew== + dependencies: + prelude-ls "^1.2.1" + type-coverage-core@^2.17.2: version "2.26.3" resolved "https://registry.yarnpkg.com/type-coverage-core/-/type-coverage-core-2.26.3.tgz#47e2c8225f582d1ca9551c2bace20836b295c944" @@ -13636,6 +14636,11 @@ type-fest@^0.18.0: resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.18.1.tgz#db4bc151a4a2cf4eebf9add5db75508db6cc841f" integrity sha512-OIAYXk8+ISY+qTOwkHtKqzAuxchoMiD9Udx+FSGQDuiRR+PJKJHc2NJAXlbhkGwTt/4/nKZxELY1w3ReWOL8mw== +type-fest@^0.20.2: + version "0.20.2" + resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.20.2.tgz#1bf207f4b28f91583666cb5fbd327887301cd5f4" + integrity sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ== + type-fest@^0.21.3: version "0.21.3" resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.21.3.tgz#d260a24b0198436e133fa26a524a6d65fa3b2e37" @@ -13661,6 +14666,45 @@ type-fest@^0.8.1: resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.8.1.tgz#09e249ebde851d3b1e48d27c105444667f17b83d" integrity sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA== +typed-array-buffer@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/typed-array-buffer/-/typed-array-buffer-1.0.0.tgz#18de3e7ed7974b0a729d3feecb94338d1472cd60" + integrity sha512-Y8KTSIglk9OZEr8zywiIHG/kmQ7KWyjseXs1CbSo8vC42w7hg2HgYTxSWwP0+is7bWDc1H+Fo026CpHFwm8tkw== + dependencies: + call-bind "^1.0.2" + get-intrinsic "^1.2.1" + is-typed-array "^1.1.10" + +typed-array-byte-length@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/typed-array-byte-length/-/typed-array-byte-length-1.0.0.tgz#d787a24a995711611fb2b87a4052799517b230d0" + integrity sha512-Or/+kvLxNpeQ9DtSydonMxCx+9ZXOswtwJn17SNLvhptaXYDJvkFFP5zbfU/uLmvnBJlI4yrnXRxpdWH/M5tNA== + dependencies: + call-bind "^1.0.2" + for-each "^0.3.3" + has-proto "^1.0.1" + is-typed-array "^1.1.10" + +typed-array-byte-offset@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/typed-array-byte-offset/-/typed-array-byte-offset-1.0.0.tgz#cbbe89b51fdef9cd6aaf07ad4707340abbc4ea0b" + integrity sha512-RD97prjEt9EL8YgAgpOkf3O4IF9lhJFr9g0htQkm0rchFp/Vx7LW5Q8fSXXub7BXAODyUQohRMyOc3faCPd0hg== + dependencies: + available-typed-arrays "^1.0.5" + call-bind "^1.0.2" + for-each "^0.3.3" + has-proto "^1.0.1" + is-typed-array "^1.1.10" + +typed-array-length@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/typed-array-length/-/typed-array-length-1.0.4.tgz#89d83785e5c4098bec72e08b319651f0eac9c1bb" + integrity sha512-KjZypGq+I/H7HI5HlOoGHkWUUGq+Q0TPhQurLbyrVrvnKTBgzLhIJ7j6J/XTQOi0d1RjyZ0wdas8bKs2p0x3Ng== + dependencies: + call-bind "^1.0.2" + for-each "^0.3.3" + is-typed-array "^1.1.9" + typed-styles@^0.0.7: version "0.0.7" resolved "https://registry.yarnpkg.com/typed-styles/-/typed-styles-0.0.7.tgz#93392a008794c4595119ff62dde6809dbc40a3d9" @@ -13756,6 +14800,16 @@ ulid@^2.3.0: resolved "https://registry.yarnpkg.com/ulid/-/ulid-2.3.0.tgz#93063522771a9774121a84d126ecd3eb9804071f" integrity sha512-keqHubrlpvT6G2wH0OEfSW4mquYRcbe/J8NMmveoQOjUqmo+hXtO+ORCpWhdbZ7k72UtY61BL7haGxW6enBnjw== +unbox-primitive@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/unbox-primitive/-/unbox-primitive-1.0.2.tgz#29032021057d5e6cdbd08c5129c226dff8ed6f9e" + integrity sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw== + dependencies: + call-bind "^1.0.2" + has-bigints "^1.0.2" + has-symbols "^1.0.3" + which-boxed-primitive "^1.0.2" + undici-types@~5.26.4: version "5.26.5" resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-5.26.5.tgz#bcd539893d00b56e964fd2657a4866b221a65617" @@ -14189,6 +15243,17 @@ whatwg-url@^8.4.0: tr46 "^2.1.0" webidl-conversions "^6.1.0" +which-boxed-primitive@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz#13757bc89b209b049fe5d86430e21cf40a89a8e6" + integrity sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg== + dependencies: + is-bigint "^1.0.1" + is-boolean-object "^1.1.0" + is-number-object "^1.0.4" + is-string "^1.0.5" + is-symbol "^1.0.3" + which-module@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/which-module/-/which-module-1.0.0.tgz#bba63ca861948994ff307736089e3b96026c2a4f" @@ -14199,6 +15264,17 @@ which-module@^2.0.0: resolved "https://registry.yarnpkg.com/which-module/-/which-module-2.0.1.tgz#776b1fe35d90aebe99e8ac15eb24093389a4a409" integrity sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ== +which-typed-array@^1.1.11, which-typed-array@^1.1.13: + version "1.1.13" + resolved "https://registry.yarnpkg.com/which-typed-array/-/which-typed-array-1.1.13.tgz#870cd5be06ddb616f504e7b039c4c24898184d36" + integrity sha512-P5Nra0qjSncduVPEAr7xhoF5guty49ArDTwzJ/yNuPIbZppyRxFQsRCWrocxIY+CnMVG+qfbU2FmDKyvSGClow== + dependencies: + available-typed-arrays "^1.0.5" + call-bind "^1.0.4" + for-each "^0.3.3" + gopd "^1.0.1" + has-tostringtag "^1.0.0" + which@^1.2.9: version "1.3.1" resolved "https://registry.yarnpkg.com/which/-/which-1.3.1.tgz#a45043d54f5805316da8d62f9f50918d3da70b0a" From 5b7a1e9ce26b0614a4eaa3c88a883f665073ec72 Mon Sep 17 00:00:00 2001 From: Hui Zhao Date: Mon, 29 Jan 2024 12:14:37 -0800 Subject: [PATCH 6/9] chore(adapter-nextjs): migrate to eslint --- packages/adapter-nextjs/package.json | 3 +- .../adapter-nextjs/src/createServerRunner.ts | 1 + .../adapter-nextjs/src/types/NextServer.ts | 41 ++++++-------- ...okieStorageAdapterFromNextServerContext.ts | 38 +++++++------ .../createRunWithAmplifyServerContext.ts | 13 +++-- .../src/utils/getAmplifyConfig.ts | 2 +- packages/adapter-nextjs/tslint.json | 56 ------------------- 7 files changed, 50 insertions(+), 104 deletions(-) delete mode 100644 packages/adapter-nextjs/tslint.json diff --git a/packages/adapter-nextjs/package.json b/packages/adapter-nextjs/package.json index be4f88bd909..b55a328725b 100644 --- a/packages/adapter-nextjs/package.json +++ b/packages/adapter-nextjs/package.json @@ -64,7 +64,8 @@ "clean": "npm run clean:size && rimraf dist", "clean:size": "rimraf dual-publish-tmp tmp*", "format": "echo \"Not implemented\"", - "lint": "tslint 'src/**/*.ts' && npm run ts-coverage", + "lint": "eslint '**/*.{ts,tsx}' && npm run ts-coverage", + "lint:fix": "eslint '**/*.{ts,tsx}' --fix", "test": "npm run lint && jest -w 1 --coverage --logHeapUsage", "ts-coverage": "typescript-coverage-report -p ./tsconfig.build.json -t 90.31" } diff --git a/packages/adapter-nextjs/src/createServerRunner.ts b/packages/adapter-nextjs/src/createServerRunner.ts index 76d238cdd15..3887054c4f7 100644 --- a/packages/adapter-nextjs/src/createServerRunner.ts +++ b/packages/adapter-nextjs/src/createServerRunner.ts @@ -2,6 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 import { ResourcesConfig } from 'aws-amplify'; + import { createRunWithAmplifyServerContext, getAmplifyConfig } from './utils'; import { NextServer } from './types'; diff --git a/packages/adapter-nextjs/src/types/NextServer.ts b/packages/adapter-nextjs/src/types/NextServer.ts index a727204bc00..107bab823e7 100644 --- a/packages/adapter-nextjs/src/types/NextServer.ts +++ b/packages/adapter-nextjs/src/types/NextServer.ts @@ -8,17 +8,17 @@ import { LegacyConfig } from 'aws-amplify/adapter-core'; import { AmplifyServer } from '@aws-amplify/core/internals/adapter-core'; import { ResourcesConfig } from '@aws-amplify/core'; -export namespace NextServer { +export declare namespace NextServer { /** * This context is normally available in the following: * - Next App Router [middleware](https://nextjs.org/docs/app/building-your-application/routing/middleware) * - Next App Router [route handler](https://nextjs.org/docs/app/building-your-application/routing/route-handlers) * when using `NextResponse` to create the response of the route handler */ - export type NextRequestAndNextResponseContext = { + export interface NextRequestAndNextResponseContext { request: NextRequest; response: NextResponse; - }; + } /** * This context is normally available in the following: @@ -26,10 +26,10 @@ export namespace NextServer { * when using the Web API [`Response`](https://developer.mozilla.org/en-US/docs/Web/API/Response) * to create the response of the route handler */ - export type NextRequestAndResponseContext = { + export interface NextRequestAndResponseContext { request: NextRequest; response: Response; - }; + } /** * This context is normally available in the following: @@ -37,9 +37,9 @@ export namespace NextServer { * where the [`cookies`](https://nextjs.org/docs/app/api-reference/functions/cookies) * function can be imported and called */ - export type ServerComponentContext = { + export interface ServerComponentContext { cookies: typeof cookies; - }; + } export type ServerActionContext = ServerComponentContext; @@ -48,10 +48,10 @@ export namespace NextServer { * [`getServerSideProps`](https://nextjs.org/docs/pages/building-your-application/data-fetching/get-server-side-props) * function of the Next Pages Router. */ - export type GetServerSidePropsContext = { + export interface GetServerSidePropsContext { request: NextGetServerSidePropsContext['req']; response: NextGetServerSidePropsContext['res']; - }; + } /** * The union of possible Next.js app server context types. @@ -62,21 +62,16 @@ export namespace NextServer { | ServerComponentContext | GetServerSidePropsContext; - /** - * The interface of the input of {@link RunOperationWithContext}. - */ export interface RunWithContextInput { nextServerContext: Context | null; - operation: ( - contextSpec: AmplifyServer.ContextSpec - ) => OperationResult | Promise; + operation( + contextSpec: AmplifyServer.ContextSpec, + ): OperationResult | Promise; } - export interface RunOperationWithContext { - ( - input: RunWithContextInput - ): Promise; - } + export type RunOperationWithContext = ( + input: RunWithContextInput, + ) => Promise; export interface CreateServerRunnerInput { config: ResourcesConfig | LegacyConfig; @@ -86,7 +81,7 @@ export namespace NextServer { runWithAmplifyServerContext: RunOperationWithContext; } - export interface CreateServerRunner { - (input: CreateServerRunnerInput): CreateServerRunnerOutput; - } + export type CreateServerRunner = ( + input: CreateServerRunnerInput, + ) => CreateServerRunnerOutput; } diff --git a/packages/adapter-nextjs/src/utils/createCookieStorageAdapterFromNextServerContext.ts b/packages/adapter-nextjs/src/utils/createCookieStorageAdapterFromNextServerContext.ts index beffc7ae31e..0b6ac3f8726 100644 --- a/packages/adapter-nextjs/src/utils/createCookieStorageAdapterFromNextServerContext.ts +++ b/packages/adapter-nextjs/src/utils/createCookieStorageAdapterFromNextServerContext.ts @@ -2,16 +2,17 @@ // SPDX-License-Identifier: Apache-2.0 import { NextRequest, NextResponse } from 'next/server.js'; -import { NextServer } from '../types'; import { AmplifyServerContextError, CookieStorage, } from '@aws-amplify/core/internals/adapter-core'; +import { NextServer } from '../types'; + export const DATE_IN_THE_PAST = new Date(0); export const createCookieStorageAdapterFromNextServerContext = ( - context: NextServer.Context + context: NextServer.Context, ): CookieStorage.Adapter => { const { request: req, response: res } = context as Partial; @@ -45,12 +46,12 @@ export const createCookieStorageAdapterFromNextServerContext = ( if (response instanceof NextResponse) { return createCookieStorageAdapterFromNextRequestAndNextResponse( request, - response + response, ); } else { return createCookieStorageAdapterFromNextRequestAndHttpResponse( request, - response + response, ); } } @@ -72,7 +73,7 @@ export const createCookieStorageAdapterFromNextServerContext = ( const createCookieStorageAdapterFromNextRequestAndNextResponse = ( request: NextRequest, - response: NextResponse + response: NextResponse, ): CookieStorage.Adapter => { const readonlyCookieStore = request.cookies; const mutableCookieStore = response.cookies; @@ -93,11 +94,11 @@ const createCookieStorageAdapterFromNextRequestAndNextResponse = ( const createCookieStorageAdapterFromNextRequestAndHttpResponse = ( request: NextRequest, - response: Response + response: Response, ): CookieStorage.Adapter => { const readonlyCookieStore = request.cookies; const mutableCookieStore = createMutableCookieStoreFromHeaders( - response.headers + response.headers, ); return { @@ -110,7 +111,7 @@ const createCookieStorageAdapterFromNextRequestAndHttpResponse = ( }; const createCookieStorageAdapterFromNextCookies = ( - cookies: NextServer.ServerComponentContext['cookies'] + cookies: NextServer.ServerComponentContext['cookies'], ): CookieStorage.Adapter => { const cookieStore = cookies(); @@ -147,7 +148,7 @@ const createCookieStorageAdapterFromNextCookies = ( const createCookieStorageAdapterFromGetServerSidePropsContext = ( request: NextServer.GetServerSidePropsContext['request'], - response: NextServer.GetServerSidePropsContext['response'] + response: NextServer.GetServerSidePropsContext['response'], ): CookieStorage.Adapter => { const cookiesMap = { ...request.cookies }; const allCookies = Object.entries(cookiesMap).map(([name, value]) => ({ @@ -158,6 +159,7 @@ const createCookieStorageAdapterFromGetServerSidePropsContext = ( return { get(name) { const value = cookiesMap[ensureEncodedForJSCookie(name)]; + return value ? { name, @@ -173,39 +175,40 @@ const createCookieStorageAdapterFromGetServerSidePropsContext = ( 'Set-Cookie', `${ensureEncodedForJSCookie(name)}=${value};${ options ? serializeSetCookieOptions(options) : '' - }` + }`, ); }, delete(name) { response.setHeader( 'Set-Cookie', `${ensureEncodedForJSCookie( - name - )}=;Expires=${DATE_IN_THE_PAST.toUTCString()}` + name, + )}=;Expires=${DATE_IN_THE_PAST.toUTCString()}`, ); }, }; }; const createMutableCookieStoreFromHeaders = ( - headers: Headers + headers: Headers, ): Pick => { const setFunc: CookieStorage.Adapter['set'] = (name, value, options) => { headers.append( 'Set-Cookie', `${ensureEncodedForJSCookie(name)}=${value};${ options ? serializeSetCookieOptions(options) : '' - }` + }`, ); }; const deleteFunc: CookieStorage.Adapter['delete'] = name => { headers.append( 'Set-Cookie', `${ensureEncodedForJSCookie( - name - )}=;Expires=${DATE_IN_THE_PAST.toUTCString()}` + name, + )}=;Expires=${DATE_IN_THE_PAST.toUTCString()}`, ); }; + return { set: setFunc, delete: deleteFunc, @@ -213,7 +216,7 @@ const createMutableCookieStoreFromHeaders = ( }; const serializeSetCookieOptions = ( - options: CookieStorage.SetCookieOptions + options: CookieStorage.SetCookieOptions, ): string => { const { expires, domain, httpOnly, sameSite, secure } = options; const serializedOptions: string[] = []; @@ -232,6 +235,7 @@ const serializeSetCookieOptions = ( if (secure) { serializedOptions.push(`Secure`); } + return serializedOptions.join(';'); }; diff --git a/packages/adapter-nextjs/src/utils/createRunWithAmplifyServerContext.ts b/packages/adapter-nextjs/src/utils/createRunWithAmplifyServerContext.ts index 6362d1149a8..1797a1be0ca 100644 --- a/packages/adapter-nextjs/src/utils/createRunWithAmplifyServerContext.ts +++ b/packages/adapter-nextjs/src/utils/createRunWithAmplifyServerContext.ts @@ -9,9 +9,10 @@ import { runWithAmplifyServerContext as runWithAmplifyServerContextCore, } from 'aws-amplify/adapter-core'; -import { createCookieStorageAdapterFromNextServerContext } from './createCookieStorageAdapterFromNextServerContext'; import { NextServer } from '../types'; +import { createCookieStorageAdapterFromNextServerContext } from './createCookieStorageAdapterFromNextServerContext'; + export const createRunWithAmplifyServerContext = ({ config: resourcesConfig, }: { @@ -31,16 +32,16 @@ export const createRunWithAmplifyServerContext = ({ ? sharedInMemoryStorage : createKeyValueStorageFromCookieStorageAdapter( createCookieStorageAdapterFromNextServerContext( - nextServerContext - ) + nextServerContext, + ), ); const credentialsProvider = createAWSCredentialsAndIdentityIdProvider( resourcesConfig.Auth, - keyValueStorage + keyValueStorage, ); const tokenProvider = createUserPoolsTokenProvider( resourcesConfig.Auth, - keyValueStorage + keyValueStorage, ); return runWithAmplifyServerContextCore( @@ -48,7 +49,7 @@ export const createRunWithAmplifyServerContext = ({ { Auth: { credentialsProvider, tokenProvider }, }, - operation + operation, ); } diff --git a/packages/adapter-nextjs/src/utils/getAmplifyConfig.ts b/packages/adapter-nextjs/src/utils/getAmplifyConfig.ts index f3f16dbb868..a8ab9f1d22b 100644 --- a/packages/adapter-nextjs/src/utils/getAmplifyConfig.ts +++ b/packages/adapter-nextjs/src/utils/getAmplifyConfig.ts @@ -6,7 +6,7 @@ import { LegacyConfig } from 'aws-amplify/adapter-core'; import { parseAWSExports } from '@aws-amplify/core/internals/utils'; export const getAmplifyConfig = ( - config: ResourcesConfig | LegacyConfig + config: ResourcesConfig | LegacyConfig, ): ResourcesConfig => Object.keys(config).some(key => key.startsWith('aws_')) ? parseAWSExports(config) diff --git a/packages/adapter-nextjs/tslint.json b/packages/adapter-nextjs/tslint.json deleted file mode 100644 index fcca611fccf..00000000000 --- a/packages/adapter-nextjs/tslint.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "defaultSeverity": "error", - "plugins": ["prettier"], - "extends": [], - "jsRules": {}, - "rules": { - "prefer-const": true, - "max-line-length": [ - true, - { - "limit": 120, - "ignore-pattern": "^//|^ *" - } - ], - "no-empty-interface": true, - "no-var-keyword": true, - "object-literal-shorthand": true, - "no-eval": true, - "space-before-function-paren": [ - true, - { - "anonymous": "never", - "named": "never" - } - ], - "no-parameter-reassignment": true, - "align": [true, "parameters"], - "no-duplicate-imports": true, - "one-variable-per-declaration": [false, "ignore-for-loop"], - "triple-equals": [true, "allow-null-check"], - "comment-format": [true, "check-space"], - "indent": [false], - "whitespace": [ - false, - "check-branch", - "check-decl", - "check-operator", - "check-preblock" - ], - "eofline": true, - "variable-name": [ - true, - "check-format", - "allow-pascal-case", - "allow-snake-case", - "allow-leading-underscore" - ], - "semicolon": [ - true, - "always", - "ignore-interfaces", - "ignore-bound-class-methods" - ] - }, - "rulesDirectory": [] -} From ca85c043d818fbc7c1bd0c2f71e6bf6c75ae94e1 Mon Sep 17 00:00:00 2001 From: Hui Zhao Date: Mon, 29 Jan 2024 12:42:06 -0800 Subject: [PATCH 7/9] fix(repo): test-github-actions using js-yaml already removed API --- scripts/test-github-actions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/test-github-actions.js b/scripts/test-github-actions.js index d6523d5f498..e369c837ebb 100755 --- a/scripts/test-github-actions.js +++ b/scripts/test-github-actions.js @@ -8,7 +8,7 @@ const yaml = require('js-yaml'); function parseYamlFile(file) { const fileContents = fs.readFileSync(file, 'utf8'); - return yaml.safeLoad(fileContents); + return yaml.load(fileContents); } function getKeyValuesFor(targetKey, yamlObject) { From c6edaa2396ac6c1afd9caf37973d4c9ea74897a0 Mon Sep 17 00:00:00 2001 From: Hui Zhao Date: Mon, 29 Jan 2024 13:14:52 -0800 Subject: [PATCH 8/9] chore(repo): add Code Spell Checker to recommended extension list --- .vscode/extensions.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.vscode/extensions.json b/.vscode/extensions.json index a2352c92874..162e0396fce 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -5,7 +5,8 @@ "recommendations": [ "esbenp.prettier-vscode", "tombonnike.vscode-status-bar-format-toggle", - "dbaeumer.vscode-eslint" + "dbaeumer.vscode-eslint", + "streetsidesoftware.code-spell-checker" ], // List of extensions recommended by VS Code that should not be recommended for users of this workspace. "unwantedRecommendations": [] From d04702618249dd1f7a35eef5e4f9b61aee86d29a Mon Sep 17 00:00:00 2001 From: Hui Zhao Date: Tue, 30 Jan 2024 14:52:35 -0800 Subject: [PATCH 9/9] chore(repo): add formatOn actions to formattingToggle controlables --- .vscode/settings.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 04f11be859d..88b69ad58fc 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -5,6 +5,9 @@ "prettier.requireConfig": true, "typescript.tsdk": "node_modules/typescript/lib", "formattingToggle.affects": [ - "editor.codeActionsOnSave.source.fixAll.eslint" + "editor.codeActionsOnSave.source.fixAll.eslint", + "editor.formatOnPaste", + "editor.formatOnSave", + "editor.formatOnType" ] }