From f585fb30dc66019aeb79320a2e970da4a03669d9 Mon Sep 17 00:00:00 2001 From: Laurin Quast Date: Mon, 27 Jun 2022 23:23:11 +0200 Subject: [PATCH] feat: typescript esm export map support (#930) * feat: support TypeScript node module resolution * chore: add changeset * chore: use Node 16 in tests --- .changeset/warm-moles-remember.md | 12 + .github/workflows/ci-todo-example.yml | 6 +- .github/workflows/ci.yml | 8 +- .github/workflows/release.yml | 4 +- jest.config.js | 9 +- jest.end2end.config.js | 9 +- jest.project.js | 38 - package.json | 7 +- .../package.json | 28 +- .../src/applyLiveQueryJSONDiffPatch.spec.ts | 2 +- .../src/applyLiveQueryJSONDiffPatch.ts | 2 +- ...plyLiveQueryJSONDiffPatchGenerator.spec.ts | 2 +- .../applyLiveQueryJSONDiffPatchGenerator.ts | 2 +- .../src/index.ts | 10 +- .../src/liveQueryJSONDiffPatchGenerator.ts | 2 +- .../package.json | 28 +- .../src/applyLiveQueryJSONPatch.spec.ts | 2 +- .../src/applyLiveQueryJSONPatch.ts | 2 +- .../applyLiveQueryJSONPatchGenerator.spec.ts | 2 +- .../src/applyLiveQueryJSONPatchGenerator.ts | 2 +- .../src/index.ts | 10 +- .../src/liveQueryJSONPatchGenerator.ts | 2 +- .../graphql-live-query-patch/package.json | 28 +- .../src/createApplyLiveQueryPatch.ts | 2 +- .../src/createApplyLiveQueryPatchGenerator.ts | 2 +- .../src/createLiveQueryPatchGenerator.ts | 4 +- .../graphql-live-query-patch/src/index.ts | 8 +- packages/graphql-live-query/package.json | 28 +- .../src/getLiveDirectiveArgumentValues.ts | 4 +- .../src/getLiveDirectiveNode.ts | 2 +- packages/graphql-live-query/src/index.ts | 12 +- .../src/isLiveQueryOperationDefinitionNode.ts | 6 +- .../NoLiveMixedWithDeferStreamRule.spec.ts | 4 +- .../rules/NoLiveMixedWithDeferStreamRule.ts | 4 +- .../in-memory-live-query-store/package.json | 28 +- .../src/InMemoryLiveQueryStore.spec.ts | 2 +- .../src/InMemoryLiveQueryStore.ts | 12 +- .../src/ResourceTracker.spec.ts | 2 +- .../src/ResourceTracker.ts | 2 +- ...tractLiveQueryRootFieldCoordinates.spec.ts | 2 +- .../extractLiveQueryRootFieldCoordinates.ts | 2 +- .../in-memory-live-query-store/src/index.ts | 2 +- .../src/isNonNullIDScalarType.spec.ts | 2 +- .../src/runWith.spec.ts | 2 +- .../src/throttle.spec.ts | 82 +- packages/json-patch-plus/package.json | 28 +- packages/json-patch-plus/src/diff.spec.ts | 2 +- packages/json-patch-plus/src/diff.ts | 4 +- packages/json-patch-plus/src/index.ts | 6 +- packages/json-patch-plus/src/patch.spec.ts | 2 +- packages/json-patch-plus/src/patch.ts | 2 +- .../socket-io-graphql-client/package.json | 28 +- .../socket-io-graphql-client/src/index.ts | 2 +- .../socket-io-graphql-server/package.json | 28 +- .../socket-io-graphql-server/src/index.ts | 2 +- .../src/registerSocketIOGraphQLServer.ts | 2 +- .../tests/graphql-over-socket-io.spec.ts | 2 +- .../todo-example/client-apollo/package.json | 42 + .../client-apollo/src/gql/index.ts | 2 +- .../todo-example/client-relay/package.json | 44 +- .../todo-example/client-urql/package.json | 42 + .../todo-example/client-urql/src/gql/index.ts | 2 +- .../end2end-tests/end2end.spec.ts | 2 +- .../todo-example/end2end-tests/package.json | 42 + .../todo-example/server-helix/package.json | 42 + .../scripts/write-graphql-schema.ts | 2 +- .../todo-example/server-helix/src/main.ts | 2 +- packages/todo-example/server-ws/package.json | 42 + packages/todo-example/server-ws/src/main.ts | 2 +- packages/todo-example/server/package.json | 42 + .../server/scripts/write-graphql-schema.ts | 2 +- packages/todo-example/server/src/index.ts | 4 +- patches/bob-the-bundler+1.5.1.patch | 78 -- scripts/test-esm.mjs | 52 -- tsconfig.build.json | 11 - tsconfig.json | 2 +- yarn.lock | 855 ++++++++++++++---- 77 files changed, 1283 insertions(+), 568 deletions(-) create mode 100644 .changeset/warm-moles-remember.md delete mode 100644 jest.project.js delete mode 100644 patches/bob-the-bundler+1.5.1.patch delete mode 100644 scripts/test-esm.mjs delete mode 100644 tsconfig.build.json diff --git a/.changeset/warm-moles-remember.md b/.changeset/warm-moles-remember.md new file mode 100644 index 00000000..848c570e --- /dev/null +++ b/.changeset/warm-moles-remember.md @@ -0,0 +1,12 @@ +--- +"@n1ru4l/graphql-live-query": minor +"@n1ru4l/graphql-live-query-patch": minor +"@n1ru4l/graphql-live-query-patch-jsondiffpatch": minor +"@n1ru4l/graphql-live-query-patch-json-patch": minor +"@n1ru4l/in-memory-live-query-store": minor +"@n1ru4l/json-patch-plus": minor +"@n1ru4l/socket-io-graphql-client": minor +"@n1ru4l/socket-io-graphql-server": minor +--- + +Support TypeScript ESM module resolution. More information on https://devblogs.microsoft.com/typescript/announcing-typescript-4-7/#ecmascript-module-support-in-node-js diff --git a/.github/workflows/ci-todo-example.yml b/.github/workflows/ci-todo-example.yml index 174bbd38..22d07251 100644 --- a/.github/workflows/ci-todo-example.yml +++ b/.github/workflows/ci-todo-example.yml @@ -15,13 +15,13 @@ jobs: # This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits fetch-depth: 0 - - name: Setup Node.js 14.x + - name: Setup Node.js 16.x uses: actions/setup-node@master with: - node-version: 14.x + node-version: 16.x - name: Install Dependencies - run: yarn + run: yarn install - name: Build Packages run: yarn build diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 96546d79..c4c4558f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,10 +15,10 @@ jobs: # This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits fetch-depth: 0 - - name: Setup Node.js 14.x + - name: Setup Node.js 16.x uses: actions/setup-node@master with: - node-version: 14.x + node-version: 16.x - name: Install Dependencies run: yarn @@ -29,5 +29,5 @@ jobs: - name: "Test Packages" run: yarn test - - name: "Test ESM Support" - run: node scripts/test-esm.mjs + - name: "Test ESM & CJS integrity" + run: yarn bob check diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ee81d430..756072c4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,10 +16,10 @@ jobs: # This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits fetch-depth: 0 - - name: Setup Node.js 14.x + - name: Setup Node.js 16.x uses: actions/setup-node@master with: - node-version: 14.x + node-version: 16.x - name: Install Dependencies run: yarn diff --git a/jest.config.js b/jest.config.js index db816f5b..de32d62c 100644 --- a/jest.config.js +++ b/jest.config.js @@ -11,11 +11,18 @@ module.exports = { rootDir: ROOT_DIR, restoreMocks: true, reporters: ["default"], - modulePathIgnorePatterns: ["dist", "test-assets", "test-files", "fixtures"], + modulePathIgnorePatterns: [ + "dist", + "test-assets", + "test-files", + "fixtures", + ".bob", + ], testPathIgnorePatterns: ["packages/todo-example/end2end-tests"], moduleNameMapper: pathsToModuleNameMapper(tsconfig.compilerOptions.paths, { prefix: `${ROOT_DIR}/`, }), collectCoverage: false, cacheDirectory: resolve(ROOT_DIR, `${CI ? "" : "node_modules/"}.cache/jest`), + resolver: "bob-the-bundler/jest-resolver.js", }; diff --git a/jest.end2end.config.js b/jest.end2end.config.js index fa361986..ec5966c1 100644 --- a/jest.end2end.config.js +++ b/jest.end2end.config.js @@ -11,7 +11,13 @@ module.exports = { rootDir: ROOT_DIR, restoreMocks: true, reporters: ["default"], - modulePathIgnorePatterns: ["dist", "test-assets", "test-files", "fixtures"], + modulePathIgnorePatterns: [ + "dist", + "test-assets", + "test-files", + "fixtures", + ".bob", + ], testMatch: ["**/packages/todo-example/end2end-tests/**/*.spec.ts"], moduleNameMapper: pathsToModuleNameMapper(tsconfig.compilerOptions.paths, { prefix: `${ROOT_DIR}/`, @@ -21,4 +27,5 @@ module.exports = { ROOT_DIR, `${CI ? "" : "node_modules/"}.cache/jest-end2end` ), + resolver: "bob-the-bundler/jest-resolver.js", }; diff --git a/jest.project.js b/jest.project.js deleted file mode 100644 index f581b21e..00000000 --- a/jest.project.js +++ /dev/null @@ -1,38 +0,0 @@ -const { resolve } = require("path"); -const { pathsToModuleNameMapper } = require("ts-jest/utils"); - -const ROOT_DIR = __dirname; -const TSCONFIG = resolve(ROOT_DIR, "tsconfig.json"); -const tsconfig = require(TSCONFIG); -const CI = !!process.env.CI; - -module.exports = ({ dirname, projectMode = true }) => { - const pkg = require(resolve(dirname, "package.json")); - - return { - ...(CI || !projectMode - ? {} - : { displayName: pkg.name.replace("@graphql-codegen/", "") }), - transform: { "^.+\\.tsx?$": "ts-jest" }, - testEnvironment: "node", - rootDir: dirname, - globals: { - "ts-jest": { - diagnostics: false, - tsconfig: "tsconfig.json", - }, - }, - restoreMocks: true, - reporters: ["default"], - modulePathIgnorePatterns: ["dist"], - moduleNameMapper: pathsToModuleNameMapper(tsconfig.compilerOptions.paths, { - prefix: `${ROOT_DIR}/`, - }), - cacheDirectory: resolve( - ROOT_DIR, - `${CI ? "" : "node_modules/"}.cache/jest` - ), - setupFiles: [`${ROOT_DIR}/dev-test/setup.js`], - collectCoverage: false, - }; -}; diff --git a/package.json b/package.json index 282e5d54..c93ce53e 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "@changesets/cli": "2.21.1", "@types/jest": "27.5.1", "babel-jest": "27.5.1", - "bob-the-bundler": "1.5.1", + "bob-the-bundler": "2.0.0", "chalk": "4.1.2", "globby": "12.2.0", "husky": "7.0.4", @@ -33,11 +33,10 @@ "graphql": "16.0.0-experimental-stream-defer.5" }, "scripts": { - "build": "yarn ts:transpile && bob build", - "watch-build": "tsc-watch --project tsconfig.build.json --onSuccess \"bob build\"", + "build": "bob build", + "watch-build": "tsc-watch --onSuccess \"bob build\"", "test": "jest --no-watchman", "test:end2end": "jest --no-watchman --config jest.end2end.config.js", - "ts:transpile": "tsc --project tsconfig.build.json", "prerelease": "yarn build", "release": "changeset publish", "postinstall": "patch-package", diff --git a/packages/graphql-live-query-patch-json-diff/package.json b/packages/graphql-live-query-patch-json-diff/package.json index 288f495f..b8c99b71 100644 --- a/packages/graphql-live-query-patch-json-diff/package.json +++ b/packages/graphql-live-query-patch-json-diff/package.json @@ -30,21 +30,28 @@ "peerDependencies": { "graphql": "^15.4.0 || ^16.0.0" }, - "main": "dist/index.js", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "exports": { ".": { - "require": "./dist/index.js", - "import": "./dist/esm/index.js" + "require": { + "types": "./dist/typings/index.d.ts", + "default": "./dist/cjs/index.js" + }, + "import": { + "types": "./dist/typings/index.d.ts", + "default": "./dist/esm/index.js" + }, + "default": { + "types": "./dist/typings/index.d.ts", + "default": "./dist/esm/index.js" + } }, - "./*": { - "require": "./dist/*.js", - "import": "./dist/esm/*.js" - } + "./package.json": "./package.json" }, - "typings": "dist/index.d.ts", + "typings": "dist/typings/index.d.ts", "typescript": { - "definition": "dist/index.d.ts" + "definition": "dist/typings/index.d.ts" }, "scripts": { "test": "jest", @@ -56,5 +63,6 @@ "publishConfig": { "directory": "dist", "access": "public" - } + }, + "type": "module" } diff --git a/packages/graphql-live-query-patch-json-diff/src/applyLiveQueryJSONDiffPatch.spec.ts b/packages/graphql-live-query-patch-json-diff/src/applyLiveQueryJSONDiffPatch.spec.ts index 981285a7..d1667649 100644 --- a/packages/graphql-live-query-patch-json-diff/src/applyLiveQueryJSONDiffPatch.spec.ts +++ b/packages/graphql-live-query-patch-json-diff/src/applyLiveQueryJSONDiffPatch.spec.ts @@ -1,6 +1,6 @@ import { ExecutionResult } from "graphql"; import { LiveExecutionResult } from "@n1ru4l/graphql-live-query"; -import { applyLiveQueryJSONDiffPatch } from "./applyLiveQueryJSONDiffPatch"; +import { applyLiveQueryJSONDiffPatch } from "./applyLiveQueryJSONDiffPatch.js"; test("pass through non live query patch result", async () => { async function* source() { diff --git a/packages/graphql-live-query-patch-json-diff/src/applyLiveQueryJSONDiffPatch.ts b/packages/graphql-live-query-patch-json-diff/src/applyLiveQueryJSONDiffPatch.ts index f9727f8e..a73e8f0e 100644 --- a/packages/graphql-live-query-patch-json-diff/src/applyLiveQueryJSONDiffPatch.ts +++ b/packages/graphql-live-query-patch-json-diff/src/applyLiveQueryJSONDiffPatch.ts @@ -1,5 +1,5 @@ import { createApplyLiveQueryPatch } from "@n1ru4l/graphql-live-query-patch"; -import { applyJSONDiffPatch } from "./applyJSONDiffPatch"; +import { applyJSONDiffPatch } from "./applyJSONDiffPatch.js"; export const applyLiveQueryJSONDiffPatch = createApplyLiveQueryPatch(applyJSONDiffPatch); diff --git a/packages/graphql-live-query-patch-json-diff/src/applyLiveQueryJSONDiffPatchGenerator.spec.ts b/packages/graphql-live-query-patch-json-diff/src/applyLiveQueryJSONDiffPatchGenerator.spec.ts index ae715bb6..c5b3bc4f 100644 --- a/packages/graphql-live-query-patch-json-diff/src/applyLiveQueryJSONDiffPatchGenerator.spec.ts +++ b/packages/graphql-live-query-patch-json-diff/src/applyLiveQueryJSONDiffPatchGenerator.spec.ts @@ -1,6 +1,6 @@ import { ExecutionResult } from "graphql"; import { LiveExecutionResult } from "packages/graphql-live-query/src"; -import { liveQueryJSONDiffPatchGenerator } from "./liveQueryJSONDiffPatchGenerator"; +import { liveQueryJSONDiffPatchGenerator } from "./liveQueryJSONDiffPatchGenerator.js"; it("passes through non live query values", async () => { async function* source() { diff --git a/packages/graphql-live-query-patch-json-diff/src/applyLiveQueryJSONDiffPatchGenerator.ts b/packages/graphql-live-query-patch-json-diff/src/applyLiveQueryJSONDiffPatchGenerator.ts index a370179f..43795ead 100644 --- a/packages/graphql-live-query-patch-json-diff/src/applyLiveQueryJSONDiffPatchGenerator.ts +++ b/packages/graphql-live-query-patch-json-diff/src/applyLiveQueryJSONDiffPatchGenerator.ts @@ -1,5 +1,5 @@ import { createApplyLiveQueryPatchGenerator } from "@n1ru4l/graphql-live-query-patch"; -import { generateJSONDiffPatch } from "./generateJSONDiffPatch"; +import { generateJSONDiffPatch } from "./generateJSONDiffPatch.js"; export const applyLiveQueryJSONDiffPatchGenerator = createApplyLiveQueryPatchGenerator(generateJSONDiffPatch); diff --git a/packages/graphql-live-query-patch-json-diff/src/index.ts b/packages/graphql-live-query-patch-json-diff/src/index.ts index 80858a80..036180af 100644 --- a/packages/graphql-live-query-patch-json-diff/src/index.ts +++ b/packages/graphql-live-query-patch-json-diff/src/index.ts @@ -1,5 +1,5 @@ -export * from "./applyJSONDiffPatch"; -export * from "./applyLiveQueryJSONDiffPatch"; -export * from "./applyLiveQueryJSONDiffPatchGenerator"; -export * from "./generateJSONDiffPatch"; -export * from "./liveQueryJSONDiffPatchGenerator"; +export * from "./applyJSONDiffPatch.js"; +export * from "./applyLiveQueryJSONDiffPatch.js"; +export * from "./applyLiveQueryJSONDiffPatchGenerator.js"; +export * from "./generateJSONDiffPatch.js"; +export * from "./liveQueryJSONDiffPatchGenerator.js"; diff --git a/packages/graphql-live-query-patch-json-diff/src/liveQueryJSONDiffPatchGenerator.ts b/packages/graphql-live-query-patch-json-diff/src/liveQueryJSONDiffPatchGenerator.ts index 610a2cfc..f8ff843c 100644 --- a/packages/graphql-live-query-patch-json-diff/src/liveQueryJSONDiffPatchGenerator.ts +++ b/packages/graphql-live-query-patch-json-diff/src/liveQueryJSONDiffPatchGenerator.ts @@ -1,5 +1,5 @@ import { createLiveQueryPatchGenerator } from "@n1ru4l/graphql-live-query-patch"; -import { generateJSONDiffPatch } from "./generateJSONDiffPatch"; +import { generateJSONDiffPatch } from "./generateJSONDiffPatch.js"; export const liveQueryJSONDiffPatchGenerator = createLiveQueryPatchGenerator( generateJSONDiffPatch diff --git a/packages/graphql-live-query-patch-json-patch/package.json b/packages/graphql-live-query-patch-json-patch/package.json index 501117b2..20375583 100644 --- a/packages/graphql-live-query-patch-json-patch/package.json +++ b/packages/graphql-live-query-patch-json-patch/package.json @@ -30,21 +30,28 @@ "peerDependencies": { "graphql": "^15.4.0 || ^16.0.0" }, - "main": "dist/index.js", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "exports": { ".": { - "require": "./dist/index.js", - "import": "./dist/esm/index.js" + "require": { + "types": "./dist/typings/index.d.ts", + "default": "./dist/cjs/index.js" + }, + "import": { + "types": "./dist/typings/index.d.ts", + "default": "./dist/esm/index.js" + }, + "default": { + "types": "./dist/typings/index.d.ts", + "default": "./dist/esm/index.js" + } }, - "./*": { - "require": "./dist/*.js", - "import": "./dist/esm/*.js" - } + "./package.json": "./package.json" }, - "typings": "dist/index.d.ts", + "typings": "dist/typings/index.d.ts", "typescript": { - "definition": "dist/index.d.ts" + "definition": "dist/typings/index.d.ts" }, "scripts": { "test": "jest", @@ -56,5 +63,6 @@ "publishConfig": { "directory": "dist", "access": "public" - } + }, + "type": "module" } diff --git a/packages/graphql-live-query-patch-json-patch/src/applyLiveQueryJSONPatch.spec.ts b/packages/graphql-live-query-patch-json-patch/src/applyLiveQueryJSONPatch.spec.ts index 47f5adda..28dfebea 100644 --- a/packages/graphql-live-query-patch-json-patch/src/applyLiveQueryJSONPatch.spec.ts +++ b/packages/graphql-live-query-patch-json-patch/src/applyLiveQueryJSONPatch.spec.ts @@ -1,6 +1,6 @@ import { ExecutionResult } from "graphql"; import { LiveExecutionResult } from "@n1ru4l/graphql-live-query"; -import { applyLiveQueryJSONPatch } from "./applyLiveQueryJSONPatch"; +import { applyLiveQueryJSONPatch } from "./applyLiveQueryJSONPatch.js"; test("pass through non live query patch result", async () => { async function* source() { diff --git a/packages/graphql-live-query-patch-json-patch/src/applyLiveQueryJSONPatch.ts b/packages/graphql-live-query-patch-json-patch/src/applyLiveQueryJSONPatch.ts index b3b02794..283a80e8 100644 --- a/packages/graphql-live-query-patch-json-patch/src/applyLiveQueryJSONPatch.ts +++ b/packages/graphql-live-query-patch-json-patch/src/applyLiveQueryJSONPatch.ts @@ -1,5 +1,5 @@ import { createApplyLiveQueryPatch } from "@n1ru4l/graphql-live-query-patch"; -import { applyJSONPatch } from "./applyJSONPatch"; +import { applyJSONPatch } from "./applyJSONPatch.js"; export const applyLiveQueryJSONPatch = createApplyLiveQueryPatch(applyJSONPatch); diff --git a/packages/graphql-live-query-patch-json-patch/src/applyLiveQueryJSONPatchGenerator.spec.ts b/packages/graphql-live-query-patch-json-patch/src/applyLiveQueryJSONPatchGenerator.spec.ts index 0a02fa5c..834289f9 100644 --- a/packages/graphql-live-query-patch-json-patch/src/applyLiveQueryJSONPatchGenerator.spec.ts +++ b/packages/graphql-live-query-patch-json-patch/src/applyLiveQueryJSONPatchGenerator.spec.ts @@ -1,6 +1,6 @@ import { ExecutionResult } from "graphql"; import { LiveExecutionResult } from "packages/graphql-live-query/src"; -import { liveQueryJSONPatchGenerator } from "./liveQueryJSONPatchGenerator"; +import { liveQueryJSONPatchGenerator } from "./liveQueryJSONPatchGenerator.js"; it("passes through non live query values", async () => { async function* source() { diff --git a/packages/graphql-live-query-patch-json-patch/src/applyLiveQueryJSONPatchGenerator.ts b/packages/graphql-live-query-patch-json-patch/src/applyLiveQueryJSONPatchGenerator.ts index 9b46a1ca..c8586ee7 100644 --- a/packages/graphql-live-query-patch-json-patch/src/applyLiveQueryJSONPatchGenerator.ts +++ b/packages/graphql-live-query-patch-json-patch/src/applyLiveQueryJSONPatchGenerator.ts @@ -1,5 +1,5 @@ import { createApplyLiveQueryPatchGenerator } from "@n1ru4l/graphql-live-query-patch"; -import { generateJSONPatch } from "./generateJSONPatch"; +import { generateJSONPatch } from "./generateJSONPatch.js"; export const applyLiveQueryJSONPatchGenerator = createApplyLiveQueryPatchGenerator(generateJSONPatch); diff --git a/packages/graphql-live-query-patch-json-patch/src/index.ts b/packages/graphql-live-query-patch-json-patch/src/index.ts index c7287bb2..f2b9c0ed 100644 --- a/packages/graphql-live-query-patch-json-patch/src/index.ts +++ b/packages/graphql-live-query-patch-json-patch/src/index.ts @@ -1,5 +1,5 @@ -export * from "./applyJSONPatch"; -export * from "./applyLiveQueryJSONPatch"; -export * from "./applyLiveQueryJSONPatchGenerator"; -export * from "./generateJSONPatch"; -export * from "./liveQueryJSONPatchGenerator"; +export * from "./applyJSONPatch.js"; +export * from "./applyLiveQueryJSONPatch.js"; +export * from "./applyLiveQueryJSONPatchGenerator.js"; +export * from "./generateJSONPatch.js"; +export * from "./liveQueryJSONPatchGenerator.js"; diff --git a/packages/graphql-live-query-patch-json-patch/src/liveQueryJSONPatchGenerator.ts b/packages/graphql-live-query-patch-json-patch/src/liveQueryJSONPatchGenerator.ts index 44c57dfa..7da36010 100644 --- a/packages/graphql-live-query-patch-json-patch/src/liveQueryJSONPatchGenerator.ts +++ b/packages/graphql-live-query-patch-json-patch/src/liveQueryJSONPatchGenerator.ts @@ -1,5 +1,5 @@ import { createLiveQueryPatchGenerator } from "@n1ru4l/graphql-live-query-patch"; -import { generateJSONPatch } from "./generateJSONPatch"; +import { generateJSONPatch } from "./generateJSONPatch.js"; export const liveQueryJSONPatchGenerator = createLiveQueryPatchGenerator(generateJSONPatch); diff --git a/packages/graphql-live-query-patch/package.json b/packages/graphql-live-query-patch/package.json index c9937daa..d2dfe833 100644 --- a/packages/graphql-live-query-patch/package.json +++ b/packages/graphql-live-query-patch/package.json @@ -29,21 +29,28 @@ "peerDependencies": { "graphql": "^15.4.0 || ^16.0.0" }, - "main": "dist/index.js", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "exports": { ".": { - "require": "./dist/index.js", - "import": "./dist/esm/index.js" + "require": { + "types": "./dist/typings/index.d.ts", + "default": "./dist/cjs/index.js" + }, + "import": { + "types": "./dist/typings/index.d.ts", + "default": "./dist/esm/index.js" + }, + "default": { + "types": "./dist/typings/index.d.ts", + "default": "./dist/esm/index.js" + } }, - "./*": { - "require": "./dist/*.js", - "import": "./dist/esm/*.js" - } + "./package.json": "./package.json" }, - "typings": "dist/index.d.ts", + "typings": "dist/typings/index.d.ts", "typescript": { - "definition": "dist/index.d.ts" + "definition": "dist/typings/index.d.ts" }, "scripts": { "test": "jest", @@ -55,5 +62,6 @@ "publishConfig": { "directory": "dist", "access": "public" - } + }, + "type": "module" } diff --git a/packages/graphql-live-query-patch/src/createApplyLiveQueryPatch.ts b/packages/graphql-live-query-patch/src/createApplyLiveQueryPatch.ts index 1d34a88f..946e8c6e 100644 --- a/packages/graphql-live-query-patch/src/createApplyLiveQueryPatch.ts +++ b/packages/graphql-live-query-patch/src/createApplyLiveQueryPatch.ts @@ -1,6 +1,6 @@ import { Repeater } from "@repeaterjs/repeater"; import { ExecutionResult } from "graphql"; -import { ExecutionLivePatchResult } from "./ExecutionLivePatchResult"; +import { ExecutionLivePatchResult } from "./ExecutionLivePatchResult.js"; export type ApplyPatchFunction = ( previous: Record, diff --git a/packages/graphql-live-query-patch/src/createApplyLiveQueryPatchGenerator.ts b/packages/graphql-live-query-patch/src/createApplyLiveQueryPatchGenerator.ts index 4a8ca59f..b59e2b8d 100644 --- a/packages/graphql-live-query-patch/src/createApplyLiveQueryPatchGenerator.ts +++ b/packages/graphql-live-query-patch/src/createApplyLiveQueryPatchGenerator.ts @@ -3,7 +3,7 @@ import type { LiveExecutionResult } from "@n1ru4l/graphql-live-query"; import { createLiveQueryPatchGenerator, GeneratePatchFunction, -} from "./createLiveQueryPatchGenerator"; +} from "./createLiveQueryPatchGenerator.js"; type MaybePromise = T | Promise; diff --git a/packages/graphql-live-query-patch/src/createLiveQueryPatchGenerator.ts b/packages/graphql-live-query-patch/src/createLiveQueryPatchGenerator.ts index 17a423db..ed717bd9 100644 --- a/packages/graphql-live-query-patch/src/createLiveQueryPatchGenerator.ts +++ b/packages/graphql-live-query-patch/src/createLiveQueryPatchGenerator.ts @@ -1,8 +1,8 @@ import { LiveExecutionResult } from "@n1ru4l/graphql-live-query"; import { Repeater } from "@repeaterjs/repeater"; import type { ExecutionResult } from "graphql"; -import type { ExecutionPatchResult } from "./ExecutionPatchResult"; -import type { ExecutionLivePatchResult } from "./ExecutionLivePatchResult"; +import type { ExecutionPatchResult } from "./ExecutionPatchResult.js"; +import type { ExecutionLivePatchResult } from "./ExecutionLivePatchResult.js"; /** * Symbol that indicates that there is no diff between the previous and current state and thus no patch must be sent to the client. diff --git a/packages/graphql-live-query-patch/src/index.ts b/packages/graphql-live-query-patch/src/index.ts index a90e86bb..a8240711 100644 --- a/packages/graphql-live-query-patch/src/index.ts +++ b/packages/graphql-live-query-patch/src/index.ts @@ -1,4 +1,4 @@ -export * from "./createLiveQueryPatchGenerator"; -export * from "./createApplyLiveQueryPatch"; -export * from "./createApplyLiveQueryPatchGenerator"; -export * from "./ExecutionLivePatchResult"; +export * from "./createLiveQueryPatchGenerator.js"; +export * from "./createApplyLiveQueryPatch.js"; +export * from "./createApplyLiveQueryPatchGenerator.js"; +export * from "./ExecutionLivePatchResult.js"; diff --git a/packages/graphql-live-query/package.json b/packages/graphql-live-query/package.json index 7df403b5..91ba59fe 100644 --- a/packages/graphql-live-query/package.json +++ b/packages/graphql-live-query/package.json @@ -21,21 +21,28 @@ "peerDependencies": { "graphql": "^15.4.0 || ^16.0.0" }, - "main": "dist/index.js", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "exports": { ".": { - "require": "./dist/index.js", - "import": "./dist/esm/index.js" + "require": { + "types": "./dist/typings/index.d.ts", + "default": "./dist/cjs/index.js" + }, + "import": { + "types": "./dist/typings/index.d.ts", + "default": "./dist/esm/index.js" + }, + "default": { + "types": "./dist/typings/index.d.ts", + "default": "./dist/esm/index.js" + } }, - "./*": { - "require": "./dist/*.js", - "import": "./dist/esm/*.js" - } + "./package.json": "./package.json" }, - "typings": "dist/index.d.ts", + "typings": "dist/typings/index.d.ts", "typescript": { - "definition": "dist/index.d.ts" + "definition": "dist/typings/index.d.ts" }, "scripts": { "test": "jest", @@ -47,5 +54,6 @@ "publishConfig": { "directory": "dist", "access": "public" - } + }, + "type": "module" } diff --git a/packages/graphql-live-query/src/getLiveDirectiveArgumentValues.ts b/packages/graphql-live-query/src/getLiveDirectiveArgumentValues.ts index 43af6608..5340242d 100644 --- a/packages/graphql-live-query/src/getLiveDirectiveArgumentValues.ts +++ b/packages/graphql-live-query/src/getLiveDirectiveArgumentValues.ts @@ -1,6 +1,6 @@ import { DirectiveNode, getDirectiveValues } from "graphql"; -import { GraphQLLiveDirective } from "./GraphQLLiveDirective"; -import { Maybe } from "./Maybe"; +import { GraphQLLiveDirective } from "./GraphQLLiveDirective.js"; +import { Maybe } from "./Maybe.js"; export const getLiveDirectiveArgumentValues = ( node: DirectiveNode, diff --git a/packages/graphql-live-query/src/getLiveDirectiveNode.ts b/packages/graphql-live-query/src/getLiveDirectiveNode.ts index 52375dd2..bf446e73 100644 --- a/packages/graphql-live-query/src/getLiveDirectiveNode.ts +++ b/packages/graphql-live-query/src/getLiveDirectiveNode.ts @@ -1,5 +1,5 @@ import { DefinitionNode, DirectiveNode } from "graphql"; -import { isNone, Maybe } from "./Maybe"; +import { isNone, Maybe } from "./Maybe.js"; export const getLiveDirectiveNode = ( input: DefinitionNode diff --git a/packages/graphql-live-query/src/index.ts b/packages/graphql-live-query/src/index.ts index bbf2707e..89a24a3c 100644 --- a/packages/graphql-live-query/src/index.ts +++ b/packages/graphql-live-query/src/index.ts @@ -1,6 +1,6 @@ -export * from "./GraphQLLiveDirective"; -export * from "./rules/NoLiveMixedWithDeferStreamRule"; -export * from "./LiveExecutionResult"; -export * from "./getLiveDirectiveNode"; -export * from "./getLiveDirectiveArgumentValues"; -export * from "./isLiveQueryOperationDefinitionNode"; +export * from "./GraphQLLiveDirective.js"; +export * from "./rules/NoLiveMixedWithDeferStreamRule.js"; +export * from "./LiveExecutionResult.js"; +export * from "./getLiveDirectiveNode.js"; +export * from "./getLiveDirectiveArgumentValues.js"; +export * from "./isLiveQueryOperationDefinitionNode.js"; diff --git a/packages/graphql-live-query/src/isLiveQueryOperationDefinitionNode.ts b/packages/graphql-live-query/src/isLiveQueryOperationDefinitionNode.ts index 55997bd5..95a8816e 100644 --- a/packages/graphql-live-query/src/isLiveQueryOperationDefinitionNode.ts +++ b/packages/graphql-live-query/src/isLiveQueryOperationDefinitionNode.ts @@ -1,8 +1,8 @@ import type { DefinitionNode, OperationDefinitionNode } from "graphql"; -import { getLiveDirectiveNode } from "./getLiveDirectiveNode"; -import { getLiveDirectiveArgumentValues } from "./getLiveDirectiveArgumentValues"; +import { getLiveDirectiveNode } from "./getLiveDirectiveNode.js"; +import { getLiveDirectiveArgumentValues } from "./getLiveDirectiveArgumentValues.js"; -import { isNone, Maybe } from "./Maybe"; +import { isNone, Maybe } from "./Maybe.js"; export const isLiveQueryOperationDefinitionNode = ( input: DefinitionNode, diff --git a/packages/graphql-live-query/src/rules/NoLiveMixedWithDeferStreamRule.spec.ts b/packages/graphql-live-query/src/rules/NoLiveMixedWithDeferStreamRule.spec.ts index 1686e0ad..6b7c37f7 100644 --- a/packages/graphql-live-query/src/rules/NoLiveMixedWithDeferStreamRule.spec.ts +++ b/packages/graphql-live-query/src/rules/NoLiveMixedWithDeferStreamRule.spec.ts @@ -1,5 +1,5 @@ -import { NoLiveMixedWithDeferStreamRule } from "./NoLiveMixedWithDeferStreamRule"; -import { GraphQLLiveDirective } from "../GraphQLLiveDirective"; +import { NoLiveMixedWithDeferStreamRule } from "./NoLiveMixedWithDeferStreamRule.js"; +import { GraphQLLiveDirective } from "../GraphQLLiveDirective.js"; import { validate, parse, diff --git a/packages/graphql-live-query/src/rules/NoLiveMixedWithDeferStreamRule.ts b/packages/graphql-live-query/src/rules/NoLiveMixedWithDeferStreamRule.ts index 3cfa9ead..8ab5c8ea 100644 --- a/packages/graphql-live-query/src/rules/NoLiveMixedWithDeferStreamRule.ts +++ b/packages/graphql-live-query/src/rules/NoLiveMixedWithDeferStreamRule.ts @@ -1,7 +1,7 @@ import { GraphQLError } from "graphql"; import { ValidationRule } from "graphql"; -import { getLiveDirectiveNode } from "../getLiveDirectiveNode"; -import { isNone } from "../Maybe"; +import { getLiveDirectiveNode } from "../getLiveDirectiveNode.js"; +import { isNone } from "../Maybe.js"; export const NoLiveMixedWithDeferStreamRule: ValidationRule = (context) => { return { diff --git a/packages/in-memory-live-query-store/package.json b/packages/in-memory-live-query-store/package.json index 51f725cd..78e3eada 100644 --- a/packages/in-memory-live-query-store/package.json +++ b/packages/in-memory-live-query-store/package.json @@ -29,21 +29,28 @@ "peerDependencies": { "graphql": "^15.4.0 || ^16.0.0" }, - "main": "dist/index.js", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "exports": { ".": { - "require": "./dist/index.js", - "import": "./dist/esm/index.js" + "require": { + "types": "./dist/typings/index.d.ts", + "default": "./dist/cjs/index.js" + }, + "import": { + "types": "./dist/typings/index.d.ts", + "default": "./dist/esm/index.js" + }, + "default": { + "types": "./dist/typings/index.d.ts", + "default": "./dist/esm/index.js" + } }, - "./*": { - "require": "./dist/*.js", - "import": "./dist/esm/*.js" - } + "./package.json": "./package.json" }, - "typings": "dist/index.d.ts", + "typings": "dist/typings/index.d.ts", "typescript": { - "definition": "dist/index.d.ts" + "definition": "dist/typings/index.d.ts" }, "scripts": { "test": "jest", @@ -55,5 +62,6 @@ "publishConfig": { "directory": "dist", "access": "public" - } + }, + "type": "module" } diff --git a/packages/in-memory-live-query-store/src/InMemoryLiveQueryStore.spec.ts b/packages/in-memory-live-query-store/src/InMemoryLiveQueryStore.spec.ts index bc871f71..91cddc37 100644 --- a/packages/in-memory-live-query-store/src/InMemoryLiveQueryStore.spec.ts +++ b/packages/in-memory-live-query-store/src/InMemoryLiveQueryStore.spec.ts @@ -10,7 +10,7 @@ import { ExecutionArgs, } from "graphql"; import { isAsyncIterable } from "@graphql-tools/utils"; -import { InMemoryLiveQueryStore } from "./InMemoryLiveQueryStore"; +import { InMemoryLiveQueryStore } from "./InMemoryLiveQueryStore.js"; function assertAsyncIterable( value: unknown diff --git a/packages/in-memory-live-query-store/src/InMemoryLiveQueryStore.ts b/packages/in-memory-live-query-store/src/InMemoryLiveQueryStore.ts index 12f3d858..1384a110 100644 --- a/packages/in-memory-live-query-store/src/InMemoryLiveQueryStore.ts +++ b/packages/in-memory-live-query-store/src/InMemoryLiveQueryStore.ts @@ -15,12 +15,12 @@ import { LiveExecutionResult, getLiveDirectiveNode, } from "@n1ru4l/graphql-live-query"; -import { extractLiveQueryRootFieldCoordinates } from "./extractLiveQueryRootFieldCoordinates"; -import { isNonNullIDScalarType } from "./isNonNullIDScalarType"; -import { runWith } from "./runWith"; -import { isNone, isSome, None, Maybe } from "./Maybe"; -import { ResourceTracker } from "./ResourceTracker"; -import { throttle } from "./throttle"; +import { extractLiveQueryRootFieldCoordinates } from "./extractLiveQueryRootFieldCoordinates.js"; +import { isNonNullIDScalarType } from "./isNonNullIDScalarType.js"; +import { runWith } from "./runWith.js"; +import { isNone, isSome, None, Maybe } from "./Maybe.js"; +import { ResourceTracker } from "./ResourceTracker.js"; +import { throttle } from "./throttle.js"; type PromiseOrValue = T | Promise; diff --git a/packages/in-memory-live-query-store/src/ResourceTracker.spec.ts b/packages/in-memory-live-query-store/src/ResourceTracker.spec.ts index bca25c88..1d7f9a10 100644 --- a/packages/in-memory-live-query-store/src/ResourceTracker.spec.ts +++ b/packages/in-memory-live-query-store/src/ResourceTracker.spec.ts @@ -1,4 +1,4 @@ -import { ResourceTracker } from "./ResourceTracker"; +import { ResourceTracker } from "./ResourceTracker.js"; it("can be created", () => { new ResourceTracker(); diff --git a/packages/in-memory-live-query-store/src/ResourceTracker.ts b/packages/in-memory-live-query-store/src/ResourceTracker.ts index 0f015d57..2729bda9 100644 --- a/packages/in-memory-live-query-store/src/ResourceTracker.ts +++ b/packages/in-memory-live-query-store/src/ResourceTracker.ts @@ -1,4 +1,4 @@ -import { isNone } from "./Maybe"; +import { isNone } from "./Maybe.js"; /** * ResourceTracker is a ad hoc system for tracking events associated with a record. diff --git a/packages/in-memory-live-query-store/src/extractLiveQueryRootFieldCoordinates.spec.ts b/packages/in-memory-live-query-store/src/extractLiveQueryRootFieldCoordinates.spec.ts index 3cb70696..f055a61e 100644 --- a/packages/in-memory-live-query-store/src/extractLiveQueryRootFieldCoordinates.spec.ts +++ b/packages/in-memory-live-query-store/src/extractLiveQueryRootFieldCoordinates.spec.ts @@ -1,5 +1,5 @@ import { buildSchema, getOperationAST, parse, TypeInfo } from "graphql"; -import { extractLiveQueryRootFieldCoordinates } from "./extractLiveQueryRootFieldCoordinates"; +import { extractLiveQueryRootFieldCoordinates } from "./extractLiveQueryRootFieldCoordinates.js"; const schema = buildSchema(/* GraphQL */ ` type Query { diff --git a/packages/in-memory-live-query-store/src/extractLiveQueryRootFieldCoordinates.ts b/packages/in-memory-live-query-store/src/extractLiveQueryRootFieldCoordinates.ts index 3f239c45..bd9484c2 100644 --- a/packages/in-memory-live-query-store/src/extractLiveQueryRootFieldCoordinates.ts +++ b/packages/in-memory-live-query-store/src/extractLiveQueryRootFieldCoordinates.ts @@ -8,7 +8,7 @@ import { visit, } from "graphql"; import { getArgumentValues } from "graphql/execution/values.js"; -import { isNone, isSome, Maybe } from "./Maybe"; +import { isNone, isSome, Maybe } from "./Maybe.js"; type MaybeOperationDefinitionNode = OperationDefinitionNode | null; diff --git a/packages/in-memory-live-query-store/src/index.ts b/packages/in-memory-live-query-store/src/index.ts index 7b7a390f..5306af84 100644 --- a/packages/in-memory-live-query-store/src/index.ts +++ b/packages/in-memory-live-query-store/src/index.ts @@ -1 +1 @@ -export * from "./InMemoryLiveQueryStore"; +export * from "./InMemoryLiveQueryStore.js"; diff --git a/packages/in-memory-live-query-store/src/isNonNullIDScalarType.spec.ts b/packages/in-memory-live-query-store/src/isNonNullIDScalarType.spec.ts index ab942651..193c053b 100644 --- a/packages/in-memory-live-query-store/src/isNonNullIDScalarType.spec.ts +++ b/packages/in-memory-live-query-store/src/isNonNullIDScalarType.spec.ts @@ -1,5 +1,5 @@ import { GraphQLID, GraphQLNonNull, GraphQLString } from "graphql"; -import { isNonNullIDScalarType } from "./isNonNullIDScalarType"; +import { isNonNullIDScalarType } from "./isNonNullIDScalarType.js"; it("returns true for a NonNull ID scalar type", () => { const input = new GraphQLNonNull(GraphQLID); diff --git a/packages/in-memory-live-query-store/src/runWith.spec.ts b/packages/in-memory-live-query-store/src/runWith.spec.ts index cae7f0b1..86f2337a 100644 --- a/packages/in-memory-live-query-store/src/runWith.spec.ts +++ b/packages/in-memory-live-query-store/src/runWith.spec.ts @@ -1,4 +1,4 @@ -import { runWith } from "./runWith"; +import { runWith } from "./runWith.js"; it("invokes a callback synchronously for a sync value", (done) => { let value = 1; diff --git a/packages/in-memory-live-query-store/src/throttle.spec.ts b/packages/in-memory-live-query-store/src/throttle.spec.ts index 4a3ba641..0496a7a4 100644 --- a/packages/in-memory-live-query-store/src/throttle.spec.ts +++ b/packages/in-memory-live-query-store/src/throttle.spec.ts @@ -1,50 +1,50 @@ // Throttle tests derived from https://github.com/PacoteJS/pacote -import { throttle } from "./throttle"; +import { throttle } from "./throttle.js"; const tock = (() => { - let spy: jest.SpyInstance = jest.fn() - let mockedTime = 0 + let spy: jest.SpyInstance = jest.fn(); + let mockedTime = 0; return { useFakeTime(time = 0) { - mockedTime = time - spy.mockRestore() - spy = jest.spyOn(Date, 'now').mockReturnValue(mockedTime) - jest.useFakeTimers() + mockedTime = time; + spy.mockRestore(); + spy = jest.spyOn(Date, "now").mockReturnValue(mockedTime); + jest.useFakeTimers(); }, advanceTime(time = 0) { - mockedTime = mockedTime + time - spy.mockReturnValue(mockedTime) - jest.advanceTimersByTime(time) + mockedTime = mockedTime + time; + spy.mockReturnValue(mockedTime); + jest.advanceTimersByTime(time); }, useRealTime() { - spy.mockRestore() - jest.useRealTimers() + spy.mockRestore(); + jest.useRealTimers(); }, - } -})() + }; +})(); -afterEach(tock.useRealTime) +afterEach(tock.useRealTime); test(`throttled function is called immediately`, () => { - const fn = jest.fn() + const fn = jest.fn(); const { run: throttledFn } = throttle(fn, 10); - throttledFn() + throttledFn(); - expect(fn).toHaveBeenCalledTimes(1) -}) + expect(fn).toHaveBeenCalledTimes(1); +}); test(`throttled function is called with the passed arguments`, () => { - const fn = jest.fn() + const fn = jest.fn(); const { run: throttledFn } = throttle(fn, 10); - throttledFn(1, 2, 3) + throttledFn(1, 2, 3); - expect(fn).toHaveBeenCalledWith(1, 2, 3) -}) + expect(fn).toHaveBeenCalledWith(1, 2, 3); +}); test(`throttled functions can be called past the delay interval`, () => { tock.useFakeTime(Date.now()); @@ -59,24 +59,24 @@ test(`throttled functions can be called past the delay interval`, () => { tock.advanceTime(100); expect(fn).toHaveBeenCalledTimes(3); -}) +}); test(`throttled function can be called at most once during the delay interval`, () => { - tock.useFakeTime(Date.now()) + tock.useFakeTime(Date.now()); - const fn = jest.fn() + const fn = jest.fn(); const { run: throttledFn } = throttle(fn, 100); - throttledFn(1) - throttledFn(2) - tock.advanceTime(99) + throttledFn(1); + throttledFn(2); + tock.advanceTime(99); - expect(fn).toHaveBeenCalledWith(1) - expect(fn).not.toHaveBeenCalledWith(2) -}) + expect(fn).toHaveBeenCalledWith(1); + expect(fn).not.toHaveBeenCalledWith(2); +}); test(`throttled function only considers the most recent call`, () => { - tock.useFakeTime(Date.now()) + tock.useFakeTime(Date.now()); const fn = jest.fn(); const { run: throttledFn } = throttle(fn, 100); @@ -89,12 +89,12 @@ test(`throttled function only considers the most recent call`, () => { expect(fn).toHaveBeenCalledWith(1); expect(fn).not.toHaveBeenCalledWith(2); expect(fn).toHaveBeenCalledWith(3); -}) +}); test(`cancelling pending function calls`, () => { - tock.useFakeTime(Date.now()) + tock.useFakeTime(Date.now()); - const fn = jest.fn() + const fn = jest.fn(); const { run: throttledFn, cancel } = throttle(fn, 100); throttledFn(1); @@ -102,10 +102,10 @@ test(`cancelling pending function calls`, () => { cancel(); tock.advanceTime(100); throttledFn(3); - tock.advanceTime(100) + tock.advanceTime(100); expect(fn).toHaveBeenCalledTimes(1); - expect(fn).toHaveBeenCalledWith(1) - expect(fn).not.toHaveBeenCalledWith(2) - expect(fn).not.toHaveBeenCalledWith(3) -}) + expect(fn).toHaveBeenCalledWith(1); + expect(fn).not.toHaveBeenCalledWith(2); + expect(fn).not.toHaveBeenCalledWith(3); +}); diff --git a/packages/json-patch-plus/package.json b/packages/json-patch-plus/package.json index 4043c1b5..1a3c1a88 100644 --- a/packages/json-patch-plus/package.json +++ b/packages/json-patch-plus/package.json @@ -20,21 +20,28 @@ "devDependencies": {}, "dependencies": {}, "peerDependencies": {}, - "main": "dist/index.js", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "exports": { ".": { - "require": "./dist/index.js", - "import": "./dist/esm/index.js" + "require": { + "types": "./dist/typings/index.d.ts", + "default": "./dist/cjs/index.js" + }, + "import": { + "types": "./dist/typings/index.d.ts", + "default": "./dist/esm/index.js" + }, + "default": { + "types": "./dist/typings/index.d.ts", + "default": "./dist/esm/index.js" + } }, - "./*": { - "require": "./dist/*.js", - "import": "./dist/esm/*.js" - } + "./package.json": "./package.json" }, - "typings": "dist/index.d.ts", + "typings": "dist/typings/index.d.ts", "typescript": { - "definition": "dist/index.d.ts" + "definition": "dist/typings/index.d.ts" }, "scripts": { "test": "jest", @@ -46,5 +53,6 @@ "publishConfig": { "directory": "dist", "access": "public" - } + }, + "type": "module" } diff --git a/packages/json-patch-plus/src/diff.spec.ts b/packages/json-patch-plus/src/diff.spec.ts index 3642e31e..1e6272a5 100644 --- a/packages/json-patch-plus/src/diff.spec.ts +++ b/packages/json-patch-plus/src/diff.spec.ts @@ -1,4 +1,4 @@ -import { diff } from "./diff"; +import { diff } from "./diff.js"; it("produces no patch for unchanged primitive type", () => { expect( diff --git a/packages/json-patch-plus/src/diff.ts b/packages/json-patch-plus/src/diff.ts index 9e95c5a0..7936e071 100644 --- a/packages/json-patch-plus/src/diff.ts +++ b/packages/json-patch-plus/src/diff.ts @@ -1,5 +1,5 @@ -import * as lcs from "./lcs"; -import type { Delta } from "./types"; +import * as lcs from "./lcs.js"; +import type { Delta } from "./types.js"; type Input = unknown; diff --git a/packages/json-patch-plus/src/index.ts b/packages/json-patch-plus/src/index.ts index 1a807faa..0fa65446 100644 --- a/packages/json-patch-plus/src/index.ts +++ b/packages/json-patch-plus/src/index.ts @@ -1,3 +1,3 @@ -export * from "./diff"; -export * from "./patch"; -export type { Delta } from "./types"; +export * from "./diff.js"; +export * from "./patch.js"; +export type { Delta } from "./types.js"; diff --git a/packages/json-patch-plus/src/patch.spec.ts b/packages/json-patch-plus/src/patch.spec.ts index e8a27333..d2ff4e44 100644 --- a/packages/json-patch-plus/src/patch.spec.ts +++ b/packages/json-patch-plus/src/patch.spec.ts @@ -1,4 +1,4 @@ -import { patch } from "./patch"; +import { patch } from "./patch.js"; it("applies a primitive delta (replace)", () => { expect( diff --git a/packages/json-patch-plus/src/patch.ts b/packages/json-patch-plus/src/patch.ts index 52cfff0a..7e75cb44 100644 --- a/packages/json-patch-plus/src/patch.ts +++ b/packages/json-patch-plus/src/patch.ts @@ -1,4 +1,4 @@ -import type { Delta } from "./types"; +import type { Delta } from "./types.js"; type Context = { left: any; diff --git a/packages/socket-io-graphql-client/package.json b/packages/socket-io-graphql-client/package.json index 070f9c44..c8c18a81 100644 --- a/packages/socket-io-graphql-client/package.json +++ b/packages/socket-io-graphql-client/package.json @@ -34,21 +34,28 @@ "dependencies": { "@n1ru4l/push-pull-async-iterable-iterator": "^3.2.0" }, - "main": "dist/index.js", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "exports": { ".": { - "require": "./dist/index.js", - "import": "./dist/esm/index.js" + "require": { + "types": "./dist/typings/index.d.ts", + "default": "./dist/cjs/index.js" + }, + "import": { + "types": "./dist/typings/index.d.ts", + "default": "./dist/esm/index.js" + }, + "default": { + "types": "./dist/typings/index.d.ts", + "default": "./dist/esm/index.js" + } }, - "./*": { - "require": "./dist/*.js", - "import": "./dist/esm/*.js" - } + "./package.json": "./package.json" }, - "typings": "dist/index.d.ts", + "typings": "dist/typings/index.d.ts", "typescript": { - "definition": "dist/index.d.ts" + "definition": "dist/typings/index.d.ts" }, "scripts": { "test": "jest", @@ -60,5 +67,6 @@ "publishConfig": { "directory": "dist", "access": "public" - } + }, + "type": "module" } diff --git a/packages/socket-io-graphql-client/src/index.ts b/packages/socket-io-graphql-client/src/index.ts index 0775425e..7334f693 100644 --- a/packages/socket-io-graphql-client/src/index.ts +++ b/packages/socket-io-graphql-client/src/index.ts @@ -1 +1 @@ -export * from "./createSocketIOGraphQLClient"; +export * from "./createSocketIOGraphQLClient.js"; diff --git a/packages/socket-io-graphql-server/package.json b/packages/socket-io-graphql-server/package.json index e828e987..44edaca7 100644 --- a/packages/socket-io-graphql-server/package.json +++ b/packages/socket-io-graphql-server/package.json @@ -32,21 +32,28 @@ "graphql": "^15.4.0 || ^16.0.0", "socket.io": "^3.0.1 || ^4.0.0" }, - "main": "dist/index.js", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "exports": { ".": { - "require": "./dist/index.js", - "import": "./dist/esm/index.js" + "require": { + "types": "./dist/typings/index.d.ts", + "default": "./dist/cjs/index.js" + }, + "import": { + "types": "./dist/typings/index.d.ts", + "default": "./dist/esm/index.js" + }, + "default": { + "types": "./dist/typings/index.d.ts", + "default": "./dist/esm/index.js" + } }, - "./*": { - "require": "./dist/*.js", - "import": "./dist/esm/*.js" - } + "./package.json": "./package.json" }, - "typings": "dist/index.d.ts", + "typings": "dist/typings/index.d.ts", "typescript": { - "definition": "dist/index.d.ts" + "definition": "dist/typings/index.d.ts" }, "scripts": { "test": "jest", @@ -58,5 +65,6 @@ "publishConfig": { "directory": "dist", "access": "public" - } + }, + "type": "module" } diff --git a/packages/socket-io-graphql-server/src/index.ts b/packages/socket-io-graphql-server/src/index.ts index 471bd70f..6d6d2204 100644 --- a/packages/socket-io-graphql-server/src/index.ts +++ b/packages/socket-io-graphql-server/src/index.ts @@ -1 +1 @@ -export * from "./registerSocketIOGraphQLServer"; +export * from "./registerSocketIOGraphQLServer.js"; diff --git a/packages/socket-io-graphql-server/src/registerSocketIOGraphQLServer.ts b/packages/socket-io-graphql-server/src/registerSocketIOGraphQLServer.ts index 59b62558..7d727b72 100644 --- a/packages/socket-io-graphql-server/src/registerSocketIOGraphQLServer.ts +++ b/packages/socket-io-graphql-server/src/registerSocketIOGraphQLServer.ts @@ -14,7 +14,7 @@ import { getOperationAST, OperationDefinitionNode, } from "graphql"; -import { isAsyncIterableIterator } from "./isAsyncIterableIterator"; +import { isAsyncIterableIterator } from "./isAsyncIterableIterator.js"; import type { Server as IOServer, Socket as IOSocket } from "socket.io"; export type PromiseOrPlain = T | Promise; diff --git a/packages/socket-io-graphql-server/tests/graphql-over-socket-io.spec.ts b/packages/socket-io-graphql-server/tests/graphql-over-socket-io.spec.ts index 94fac570..d987dbc8 100644 --- a/packages/socket-io-graphql-server/tests/graphql-over-socket-io.spec.ts +++ b/packages/socket-io-graphql-server/tests/graphql-over-socket-io.spec.ts @@ -3,7 +3,7 @@ import * as io from "socket.io"; import * as ioClient from "socket.io-client"; import * as http from "http"; import { makeExecutableSchema } from "@graphql-tools/schema"; -import * as server from "../src"; +import * as server from "../src/index.js"; const schema = makeExecutableSchema({ typeDefs: /* GraphQL */ ` diff --git a/packages/todo-example/client-apollo/package.json b/packages/todo-example/client-apollo/package.json index bbe9d4b5..7bb4ce5b 100644 --- a/packages/todo-example/client-apollo/package.json +++ b/packages/todo-example/client-apollo/package.json @@ -32,5 +32,47 @@ "build": "vite build", "generate:types": "graphql-codegen --config codegen.yml", "ts:check": "tsc --noEmit" + }, + "type": "module", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.js", + "typings": "dist/typings/index.d.ts", + "typescript": { + "definition": "dist/typings/index.d.ts" + }, + "exports": { + ".": { + "require": { + "types": "./dist/typings/index.d.ts", + "default": "./dist/cjs/index.js" + }, + "import": { + "types": "./dist/typings/index.d.ts", + "default": "./dist/esm/index.js" + }, + "default": { + "types": "./dist/typings/index.d.ts", + "default": "./dist/esm/index.js" + } + }, + "./*": { + "require": { + "types": "./dist/typings/*.d.ts", + "default": "./dist/cjs/*.js" + }, + "import": { + "types": "./dist/typings/*.d.ts", + "default": "./dist/esm/*.js" + }, + "default": { + "types": "./dist/typings/*.d.ts", + "default": "./dist/esm/*.js" + } + }, + "./package.json": "./package.json" + }, + "publishConfig": { + "directory": "dist", + "access": "public" } } diff --git a/packages/todo-example/client-apollo/src/gql/index.ts b/packages/todo-example/client-apollo/src/gql/index.ts index 9797ca5c..bfa77cc8 100644 --- a/packages/todo-example/client-apollo/src/gql/index.ts +++ b/packages/todo-example/client-apollo/src/gql/index.ts @@ -1,5 +1,5 @@ /* eslint-disable */ -import * as graphql from "./graphql"; +import * as graphql from "./graphql.js"; import { TypedDocumentNode as DocumentNode } from "@graphql-typed-document-node/core"; const documents = { diff --git a/packages/todo-example/client-relay/package.json b/packages/todo-example/client-relay/package.json index 5b71d857..ea13e79f 100644 --- a/packages/todo-example/client-relay/package.json +++ b/packages/todo-example/client-relay/package.json @@ -28,7 +28,7 @@ "todomvc-app-css": "2.4.2", "classnames": "2.3.1", "vite": "2.8.6", - "vite-plugin-babel-macros": "1.0.5" + "vite-plugin-babel-macros": "1.0.6" }, "scripts": { "start": "vite", @@ -36,5 +36,47 @@ "relay-compiler": "relay-compiler", "relay-compiler:watch": "relay-compiler --watch", "ts:check": "tsc --noEmit" + }, + "type": "module", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.js", + "typings": "dist/typings/index.d.ts", + "typescript": { + "definition": "dist/typings/index.d.ts" + }, + "exports": { + ".": { + "require": { + "types": "./dist/typings/index.d.ts", + "default": "./dist/cjs/index.js" + }, + "import": { + "types": "./dist/typings/index.d.ts", + "default": "./dist/esm/index.js" + }, + "default": { + "types": "./dist/typings/index.d.ts", + "default": "./dist/esm/index.js" + } + }, + "./*": { + "require": { + "types": "./dist/typings/*.d.ts", + "default": "./dist/cjs/*.js" + }, + "import": { + "types": "./dist/typings/*.d.ts", + "default": "./dist/esm/*.js" + }, + "default": { + "types": "./dist/typings/*.d.ts", + "default": "./dist/esm/*.js" + } + }, + "./package.json": "./package.json" + }, + "publishConfig": { + "directory": "dist", + "access": "public" } } diff --git a/packages/todo-example/client-urql/package.json b/packages/todo-example/client-urql/package.json index 1da480ff..b947e5ea 100644 --- a/packages/todo-example/client-urql/package.json +++ b/packages/todo-example/client-urql/package.json @@ -31,5 +31,47 @@ "build": "vite build", "generate:types": "graphql-codegen --config codegen.yml", "ts:check": "tsc --noEmit" + }, + "type": "module", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.js", + "typings": "dist/typings/index.d.ts", + "typescript": { + "definition": "dist/typings/index.d.ts" + }, + "exports": { + ".": { + "require": { + "types": "./dist/typings/index.d.ts", + "default": "./dist/cjs/index.js" + }, + "import": { + "types": "./dist/typings/index.d.ts", + "default": "./dist/esm/index.js" + }, + "default": { + "types": "./dist/typings/index.d.ts", + "default": "./dist/esm/index.js" + } + }, + "./*": { + "require": { + "types": "./dist/typings/*.d.ts", + "default": "./dist/cjs/*.js" + }, + "import": { + "types": "./dist/typings/*.d.ts", + "default": "./dist/esm/*.js" + }, + "default": { + "types": "./dist/typings/*.d.ts", + "default": "./dist/esm/*.js" + } + }, + "./package.json": "./package.json" + }, + "publishConfig": { + "directory": "dist", + "access": "public" } } diff --git a/packages/todo-example/client-urql/src/gql/index.ts b/packages/todo-example/client-urql/src/gql/index.ts index f76a5720..62c68159 100644 --- a/packages/todo-example/client-urql/src/gql/index.ts +++ b/packages/todo-example/client-urql/src/gql/index.ts @@ -1,5 +1,5 @@ /* eslint-disable */ -import * as graphql from "./graphql"; +import * as graphql from "./graphql.js"; import { TypedDocumentNode as DocumentNode } from "@graphql-typed-document-node/core"; const documents = { diff --git a/packages/todo-example/end2end-tests/end2end.spec.ts b/packages/todo-example/end2end-tests/end2end.spec.ts index 2e6f509c..ef2ce2ce 100644 --- a/packages/todo-example/end2end-tests/end2end.spec.ts +++ b/packages/todo-example/end2end-tests/end2end.spec.ts @@ -1,7 +1,7 @@ import puppeteer from "puppeteer"; import fastify from "fastify"; import fastifyStatic from "fastify-static"; -import { createServer } from "../server/src"; +import { createServer } from "../server/src/index.js"; import * as path from "path"; [ diff --git a/packages/todo-example/end2end-tests/package.json b/packages/todo-example/end2end-tests/package.json index b3e8d4ac..35a04cf7 100644 --- a/packages/todo-example/end2end-tests/package.json +++ b/packages/todo-example/end2end-tests/package.json @@ -6,5 +6,47 @@ "puppeteer": "13.2.0", "fastify": "3.27.2", "fastify-static": "4.5.0" + }, + "type": "module", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.js", + "typings": "dist/typings/index.d.ts", + "typescript": { + "definition": "dist/typings/index.d.ts" + }, + "exports": { + ".": { + "require": { + "types": "./dist/typings/index.d.ts", + "default": "./dist/cjs/index.js" + }, + "import": { + "types": "./dist/typings/index.d.ts", + "default": "./dist/esm/index.js" + }, + "default": { + "types": "./dist/typings/index.d.ts", + "default": "./dist/esm/index.js" + } + }, + "./*": { + "require": { + "types": "./dist/typings/*.d.ts", + "default": "./dist/cjs/*.js" + }, + "import": { + "types": "./dist/typings/*.d.ts", + "default": "./dist/esm/*.js" + }, + "default": { + "types": "./dist/typings/*.d.ts", + "default": "./dist/esm/*.js" + } + }, + "./package.json": "./package.json" + }, + "publishConfig": { + "directory": "dist", + "access": "public" } } diff --git a/packages/todo-example/server-helix/package.json b/packages/todo-example/server-helix/package.json index 5146f06b..b7d969a4 100644 --- a/packages/todo-example/server-helix/package.json +++ b/packages/todo-example/server-helix/package.json @@ -20,5 +20,47 @@ "write:schema": "ts-node scripts/write-graphql-schema.ts", "build": "tsc", "start": "ts-node-dev src/main.ts" + }, + "type": "module", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.js", + "typings": "dist/typings/index.d.ts", + "typescript": { + "definition": "dist/typings/index.d.ts" + }, + "exports": { + ".": { + "require": { + "types": "./dist/typings/index.d.ts", + "default": "./dist/cjs/index.js" + }, + "import": { + "types": "./dist/typings/index.d.ts", + "default": "./dist/esm/index.js" + }, + "default": { + "types": "./dist/typings/index.d.ts", + "default": "./dist/esm/index.js" + } + }, + "./*": { + "require": { + "types": "./dist/typings/*.d.ts", + "default": "./dist/cjs/*.js" + }, + "import": { + "types": "./dist/typings/*.d.ts", + "default": "./dist/esm/*.js" + }, + "default": { + "types": "./dist/typings/*.d.ts", + "default": "./dist/esm/*.js" + } + }, + "./package.json": "./package.json" + }, + "publishConfig": { + "directory": "dist", + "access": "public" } } diff --git a/packages/todo-example/server-helix/scripts/write-graphql-schema.ts b/packages/todo-example/server-helix/scripts/write-graphql-schema.ts index 6f677847..18c8f500 100644 --- a/packages/todo-example/server-helix/scripts/write-graphql-schema.ts +++ b/packages/todo-example/server-helix/scripts/write-graphql-schema.ts @@ -1,5 +1,5 @@ import { printSchema } from "graphql"; -import { schema } from "../src/schema"; +import { schema } from "../src/schema.js"; import * as fs from "fs"; import * as path from "path"; diff --git a/packages/todo-example/server-helix/src/main.ts b/packages/todo-example/server-helix/src/main.ts index 769eb8b1..0b43f39e 100644 --- a/packages/todo-example/server-helix/src/main.ts +++ b/packages/todo-example/server-helix/src/main.ts @@ -8,7 +8,7 @@ import { } from "graphql-helix"; import { InMemoryLiveQueryStore } from "@n1ru4l/in-memory-live-query-store"; import { NoLiveMixedWithDeferStreamRule } from "@n1ru4l/graphql-live-query"; -import { schema } from "./schema"; +import { schema } from "./schema.js"; const liveQueryStore = new InMemoryLiveQueryStore(); const execute = liveQueryStore.makeExecute(defaultExecute); diff --git a/packages/todo-example/server-ws/package.json b/packages/todo-example/server-ws/package.json index 3e2d7474..74e3dcc9 100644 --- a/packages/todo-example/server-ws/package.json +++ b/packages/todo-example/server-ws/package.json @@ -19,5 +19,47 @@ "write:schema": "ts-node scripts/write-graphql-schema.ts", "build": "tsc", "start": "ts-node-dev src/main.ts" + }, + "type": "module", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.js", + "typings": "dist/typings/index.d.ts", + "typescript": { + "definition": "dist/typings/index.d.ts" + }, + "exports": { + ".": { + "require": { + "types": "./dist/typings/index.d.ts", + "default": "./dist/cjs/index.js" + }, + "import": { + "types": "./dist/typings/index.d.ts", + "default": "./dist/esm/index.js" + }, + "default": { + "types": "./dist/typings/index.d.ts", + "default": "./dist/esm/index.js" + } + }, + "./*": { + "require": { + "types": "./dist/typings/*.d.ts", + "default": "./dist/cjs/*.js" + }, + "import": { + "types": "./dist/typings/*.d.ts", + "default": "./dist/esm/*.js" + }, + "default": { + "types": "./dist/typings/*.d.ts", + "default": "./dist/esm/*.js" + } + }, + "./package.json": "./package.json" + }, + "publishConfig": { + "directory": "dist", + "access": "public" } } diff --git a/packages/todo-example/server-ws/src/main.ts b/packages/todo-example/server-ws/src/main.ts index c4277e0e..71a7490e 100644 --- a/packages/todo-example/server-ws/src/main.ts +++ b/packages/todo-example/server-ws/src/main.ts @@ -3,7 +3,7 @@ import { useServer } from "graphql-ws/lib/use/ws"; import { InMemoryLiveQueryStore } from "@n1ru4l/in-memory-live-query-store"; import { NoLiveMixedWithDeferStreamRule } from "@n1ru4l/graphql-live-query"; import { Server } from "ws"; -import { schema } from "./schema"; +import { schema } from "./schema.js"; const liveQueryStore = new InMemoryLiveQueryStore(); const rootValue = { diff --git a/packages/todo-example/server/package.json b/packages/todo-example/server/package.json index 496a2f08..9117b796 100644 --- a/packages/todo-example/server/package.json +++ b/packages/todo-example/server/package.json @@ -17,5 +17,47 @@ "write:schema": "ts-node scripts/write-graphql-schema.ts", "build": "tsc", "start": "ts-node-dev src/index.ts" + }, + "type": "module", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.js", + "typings": "dist/typings/index.d.ts", + "typescript": { + "definition": "dist/typings/index.d.ts" + }, + "exports": { + ".": { + "require": { + "types": "./dist/typings/index.d.ts", + "default": "./dist/cjs/index.js" + }, + "import": { + "types": "./dist/typings/index.d.ts", + "default": "./dist/esm/index.js" + }, + "default": { + "types": "./dist/typings/index.d.ts", + "default": "./dist/esm/index.js" + } + }, + "./*": { + "require": { + "types": "./dist/typings/*.d.ts", + "default": "./dist/cjs/*.js" + }, + "import": { + "types": "./dist/typings/*.d.ts", + "default": "./dist/esm/*.js" + }, + "default": { + "types": "./dist/typings/*.d.ts", + "default": "./dist/esm/*.js" + } + }, + "./package.json": "./package.json" + }, + "publishConfig": { + "directory": "dist", + "access": "public" } } diff --git a/packages/todo-example/server/scripts/write-graphql-schema.ts b/packages/todo-example/server/scripts/write-graphql-schema.ts index 6f677847..18c8f500 100644 --- a/packages/todo-example/server/scripts/write-graphql-schema.ts +++ b/packages/todo-example/server/scripts/write-graphql-schema.ts @@ -1,5 +1,5 @@ import { printSchema } from "graphql"; -import { schema } from "../src/schema"; +import { schema } from "../src/schema.js"; import * as fs from "fs"; import * as path from "path"; diff --git a/packages/todo-example/server/src/index.ts b/packages/todo-example/server/src/index.ts index f84fb522..0946fc11 100644 --- a/packages/todo-example/server/src/index.ts +++ b/packages/todo-example/server/src/index.ts @@ -6,8 +6,8 @@ import { applyLiveQueryJSONPatchGenerator } from "@n1ru4l/graphql-live-query-pat import { InMemoryLiveQueryStore } from "@n1ru4l/in-memory-live-query-store"; import { registerSocketIOGraphQLServer } from "@n1ru4l/socket-io-graphql-server"; import { specifiedRules, execute as defaultExecute } from "graphql"; -import { schema } from "./schema"; -import { flow } from "./util/flow"; +import { schema } from "./schema.js"; +import { flow } from "./util/flow.js"; const parsePortSafe = (port: null | undefined | string) => { if (!port) { diff --git a/patches/bob-the-bundler+1.5.1.patch b/patches/bob-the-bundler+1.5.1.patch deleted file mode 100644 index 2aa90c65..00000000 --- a/patches/bob-the-bundler+1.5.1.patch +++ /dev/null @@ -1,78 +0,0 @@ -diff --git a/node_modules/bob-the-bundler/dist/commands/build.js b/node_modules/bob-the-bundler/dist/commands/build.js -index 277f120..305cc12 100644 ---- a/node_modules/bob-the-bundler/dist/commands/build.js -+++ b/node_modules/bob-the-bundler/dist/commands/build.js -@@ -99,7 +99,7 @@ async function buildSingle({ distDir, distPath = '' }) { - }, - { - ...commonOutputOptions, -- file: path_1.join(distDir, "index.mjs"), -+ file: path_1.join(distDir, "esm", "index.js"), - format: "esm", - }, - ]; -@@ -108,6 +108,7 @@ async function buildSingle({ distDir, distPath = '' }) { - })); - // move README.md and LICENSE - await copyToDist(cwd, ["README.md", "LICENSE"].concat((buildOptions === null || buildOptions === void 0 ? void 0 : buildOptions.copy) || []), exports.DIST_DIR + distPath); -+ fs_extra_1.default.writeFileSync(path_1.join(bobProjectDir, "esm", "package.json"), JSON.stringify({type: "module"})) - } - async function build({ packagePath, cwd, pkg, fullName, config, reporter, distDir, distPath = '', packageInfoList }) { - var _a; -@@ -161,7 +162,7 @@ async function build({ packagePath, cwd, pkg, fullName, config, reporter, distDi - }, - { - ...commonOutputOptions, -- file: path_1.join(bobProjectDir, "index.mjs"), -+ file: path_1.join(bobProjectDir, "esm", "index.js"), - format: "esm", - }, - ]; -@@ -174,6 +175,7 @@ async function build({ packagePath, cwd, pkg, fullName, config, reporter, distDi - await bundle.write(outputOptions); - })); - await Promise.all(declarations.map((file) => limit(() => fs_extra_1.default.copy(path_1.join(distProjectSrcDir, file), path_1.join(bobProjectDir, file))))); -+ fs_extra_1.default.writeFileSync(path_1.join(bobProjectDir, "esm", "package.json"), JSON.stringify({type: "module"})) - if (buildOptions === null || buildOptions === void 0 ? void 0 : buildOptions.bin) { - await Promise.all(Object.keys(buildOptions.bin).map(async (alias) => { - const options = buildOptions.bin[alias]; -@@ -245,7 +247,7 @@ function rewritePackageJson(pkg, distPath) { - }); - newPkg.name += distPath; - newPkg.main = "index.js"; -- newPkg.module = "index.mjs"; -+ newPkg.module = "esm/index.js"; - newPkg.typings = "index.d.ts"; - newPkg.typescript = { - definition: newPkg.typings, -@@ -253,11 +255,11 @@ function rewritePackageJson(pkg, distPath) { - newPkg.exports = { - ".": { - require: "./index.js", -- import: "./index.mjs", -+ import: "./esm/index.js", - }, - "./*": { - require: "./*.js", -- import: "./*.mjs", -+ import: "./esm/*.js", - }, - }; - if (pkg.bin) { -@@ -276,13 +278,13 @@ function validatePackageJson(pkg) { - } - } - expect("main", `${exports.DIST_DIR}/index.js`); -- expect("module", `${exports.DIST_DIR}/index.mjs`); -+ expect("module", `${exports.DIST_DIR}/esm/index.js`); - expect("typings", `${exports.DIST_DIR}/index.d.ts`); - expect("typescript.definition", `${exports.DIST_DIR}/index.d.ts`); - expect("exports['.'].require", `./${exports.DIST_DIR}/index.js`); -- expect("exports['.'].import", `./${exports.DIST_DIR}/index.mjs`); -+ expect("exports['.'].import", `./${exports.DIST_DIR}/esm/index.js`); - expect("exports['./*'].require", `./${exports.DIST_DIR}/*.js`); -- expect("exports['./*'].import", `./${exports.DIST_DIR}/*.mjs`); -+ expect("exports['./*'].import", `./${exports.DIST_DIR}/esm/*.js`); - } - exports.validatePackageJson = validatePackageJson; - async function copyToDist(cwd, files, distDir) { diff --git a/scripts/test-esm.mjs b/scripts/test-esm.mjs deleted file mode 100644 index d41fe307..00000000 --- a/scripts/test-esm.mjs +++ /dev/null @@ -1,52 +0,0 @@ -import { globby } from "globby"; -import { dirname } from "path"; -import { fileURLToPath } from "url"; -import chalk from "chalk"; - -process.env.NEW_RELIC_APP_NAME = "TEST"; - -async function main() { - const mjsFiles = await globby(["../packages/*/dist/esm/*.js"], { - cwd: dirname(fileURLToPath(import.meta.url)), - }); - - const ok = []; - const fail = []; - - let i = 0; - await Promise.all( - mjsFiles.map((mjsFile) => { - const mjsPath = `./${mjsFile}`; - return import(mjsPath) - .then(() => { - ok.push(mjsPath); - }) - .catch((err) => { - const color = i++ % 2 === 0 ? chalk.magenta : chalk.red; - console.error(color("\n\n-----\n" + i + "\n")); - console.error(mjsPath, err); - console.error(color("\n-----\n\n")); - fail.push(mjsPath); - }); - }) - ); - ok.length && console.log(chalk.blue(`${ok.length} OK: ${ok.join(" | ")}`)); - fail.length && - console.error(chalk.red(`${fail.length} Fail: ${fail.join(" | ")}`)); - - if (fail.length) { - console.error("\nFAILED"); - process.exit(1); - } else if (ok.length) { - console.error("\nOK"); - process.exit(0); - } else { - console.error("No files analyzed!"); - process.exit(1); - } -} - -main().catch((err) => { - console.error(err); - process.exit(1); -}); diff --git a/tsconfig.build.json b/tsconfig.build.json deleted file mode 100644 index 52e80884..00000000 --- a/tsconfig.build.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "./tsconfig.json", - "exclude": [ - "**/test/*.ts", - "*.spec.ts", - "**/tests", - "**/test-assets", - "**/test-files", - "packages/todo-example" - ] -} diff --git a/tsconfig.json b/tsconfig.json index 86f8cd28..3a46b317 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -25,5 +25,5 @@ } }, "include": ["packages"], - "exclude": ["**/node_modules", "**/dist"] + "exclude": ["**/node_modules", "**/dist", "packages/todo-example/**"] } diff --git a/yarn.lock b/yarn.lock index b46e79d9..20891dfa 100644 --- a/yarn.lock +++ b/yarn.lock @@ -29,6 +29,7 @@ "@app/gql@link:./packages/todo-example/client-apollo/src/gql": version "0.0.0" + uid "" "@babel/code-frame@^7.0.0", "@babel/code-frame@^7.10.4", "@babel/code-frame@^7.12.13", "@babel/code-frame@^7.14.5", "@babel/code-frame@^7.16.7": version "7.16.7" @@ -37,12 +38,24 @@ dependencies: "@babel/highlight" "^7.16.7" +"@babel/code-frame@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.18.6.tgz#3b25d38c89600baa2dcc219edfa88a74eb2c427a" + integrity sha512-TDCmlK5eOvH+eH7cdAFlNXeVJqWIQ7gW9tY1GJIpUtFb6CmjVyq2VM3u71bOyR8CRihcCgMUYoDNyLXao3+70Q== + dependencies: + "@babel/highlight" "^7.18.6" + "@babel/compat-data@^7.13.11", "@babel/compat-data@^7.17.10": version "7.17.10" resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.17.10.tgz#711dc726a492dfc8be8220028b1b92482362baab" integrity sha512-GZt/TCsG70Ms19gfZO1tM4CVnXsPgEPBCpJu+Qz3L0LUDsY5nZqFZglIoPC1kIYOtNBZlrnFT+klg12vFGZXrw== -"@babel/core@7.18.0", "@babel/core@^7.0.0", "@babel/core@^7.1.0", "@babel/core@^7.12.3", "@babel/core@^7.13.8", "@babel/core@^7.14.0", "@babel/core@^7.14.8", "@babel/core@^7.7.2", "@babel/core@^7.8.0": +"@babel/compat-data@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.18.6.tgz#8b37d24e88e8e21c499d4328db80577d8882fa53" + integrity sha512-tzulrgDT0QD6U7BJ4TKVk2SDDg7wlP39P9yAx1RfLy7vP/7rsDRlWVfbWxElslu56+r7QOhB2NSDsabYYruoZQ== + +"@babel/core@7.18.0", "@babel/core@^7.0.0", "@babel/core@^7.1.0", "@babel/core@^7.12.3", "@babel/core@^7.14.0", "@babel/core@^7.14.8", "@babel/core@^7.7.2", "@babel/core@^7.8.0": version "7.18.0" resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.18.0.tgz#c58d04d7c6fbfb58ea7681e2b9145cfb62726756" integrity sha512-Xyw74OlJwDijToNi0+6BBI5mLLR5+5R3bcSH80LXzjzEGEUlvNzujEE71BaD/ApEZHAvFI/Mlmp4M5lIkdeeWw== @@ -63,6 +76,27 @@ json5 "^2.2.1" semver "^6.3.0" +"@babel/core@^7.17.7": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.18.6.tgz#54a107a3c298aee3fe5e1947a6464b9b6faca03d" + integrity sha512-cQbWBpxcbbs/IUredIPkHiAGULLV8iwgNRMFzvbhEXISp4f3rUUXE5+TIw6KwUWUR3DwyI6gmBRnmAtYaWehwQ== + dependencies: + "@ampproject/remapping" "^2.1.0" + "@babel/code-frame" "^7.18.6" + "@babel/generator" "^7.18.6" + "@babel/helper-compilation-targets" "^7.18.6" + "@babel/helper-module-transforms" "^7.18.6" + "@babel/helpers" "^7.18.6" + "@babel/parser" "^7.18.6" + "@babel/template" "^7.18.6" + "@babel/traverse" "^7.18.6" + "@babel/types" "^7.18.6" + convert-source-map "^1.7.0" + debug "^4.1.0" + gensync "^1.0.0-beta.2" + json5 "^2.2.1" + semver "^6.3.0" + "@babel/generator@^7.14.0", "@babel/generator@^7.15.0", "@babel/generator@^7.18.0", "@babel/generator@^7.5.0", "@babel/generator@^7.7.2": version "7.18.0" resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.18.0.tgz#46d28e8a18fc737b028efb25ab105d74473af43f" @@ -72,6 +106,15 @@ "@jridgewell/gen-mapping" "^0.3.0" jsesc "^2.5.1" +"@babel/generator@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.18.6.tgz#9ab2d46d3cbf631f0e80f72e72874a04c3fc12a9" + integrity sha512-AIwwoOS8axIC5MZbhNHRLKi3D+DMpvDf9XUcu3pIVAfOHFT45f4AoDAltRbHIQomCipkCZxrNkfpOEHhJz/VKw== + dependencies: + "@babel/types" "^7.18.6" + "@jridgewell/gen-mapping" "^0.3.0" + jsesc "^2.5.1" + "@babel/helper-annotate-as-pure@^7.12.13", "@babel/helper-annotate-as-pure@^7.16.7": version "7.16.7" resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.16.7.tgz#bb2339a7534a9c128e3102024c60760a3a7f3862" @@ -97,6 +140,16 @@ browserslist "^4.20.2" semver "^6.3.0" +"@babel/helper-compilation-targets@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.18.6.tgz#18d35bfb9f83b1293c22c55b3d576c1315b6ed96" + integrity sha512-vFjbfhNCzqdeAtZflUFrG5YIFqGTqsctrtkZ1D/NB0mDW9TwW3GmmUepYY4G9wCET5rY5ugz4OGTcLd614IzQg== + dependencies: + "@babel/compat-data" "^7.18.6" + "@babel/helper-validator-option" "^7.18.6" + browserslist "^4.20.2" + semver "^6.3.0" + "@babel/helper-create-class-features-plugin@^7.17.12", "@babel/helper-create-class-features-plugin@^7.18.0": version "7.18.0" resolved "https://registry.yarnpkg.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.18.0.tgz#fac430912606331cb075ea8d82f9a4c145a4da19" @@ -139,6 +192,11 @@ dependencies: "@babel/types" "^7.16.7" +"@babel/helper-environment-visitor@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/helper-environment-visitor/-/helper-environment-visitor-7.18.6.tgz#b7eee2b5b9d70602e59d1a6cad7dd24de7ca6cd7" + integrity sha512-8n6gSfn2baOY+qlp+VSzsosjCVGFqWKmDF0cCWOybh52Dw3SEyoWR1KrhMJASjLwIEkkAufZ0xvr+SxLHSpy2Q== + "@babel/helper-explode-assignable-expression@^7.16.7": version "7.16.7" resolved "https://registry.yarnpkg.com/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.16.7.tgz#12a6d8522fdd834f194e868af6354e8650242b7a" @@ -154,6 +212,14 @@ "@babel/template" "^7.16.7" "@babel/types" "^7.17.0" +"@babel/helper-function-name@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.18.6.tgz#8334fecb0afba66e6d87a7e8c6bb7fed79926b83" + integrity sha512-0mWMxV1aC97dhjCah5U5Ua7668r5ZmSC2DLfH2EZnf9c3/dHZKiFa5pRLMH5tjSl471tY6496ZWk/kjNONBxhw== + dependencies: + "@babel/template" "^7.18.6" + "@babel/types" "^7.18.6" + "@babel/helper-hoist-variables@^7.14.5", "@babel/helper-hoist-variables@^7.16.7": version "7.16.7" resolved "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.16.7.tgz#86bcb19a77a509c7b77d0e22323ef588fa58c246" @@ -161,6 +227,13 @@ dependencies: "@babel/types" "^7.16.7" +"@babel/helper-hoist-variables@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.18.6.tgz#d4d2c8fb4baeaa5c68b99cc8245c56554f926678" + integrity sha512-UlJQPkFqFULIcyW5sbzgbkxn2FKRgwWiRexcuaR8RNJRy8+LLveqPjwZV/bwrLZCN0eUHD/x8D0heK1ozuoo6Q== + dependencies: + "@babel/types" "^7.18.6" + "@babel/helper-member-expression-to-functions@^7.16.7", "@babel/helper-member-expression-to-functions@^7.17.7": version "7.17.7" resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.17.7.tgz#a34013b57d8542a8c4ff8ba3f747c02452a4d8c4" @@ -175,6 +248,13 @@ dependencies: "@babel/types" "^7.16.7" +"@babel/helper-module-imports@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.18.6.tgz#1e3ebdbbd08aad1437b428c50204db13c5a3ca6e" + integrity sha512-0NFvs3VkuSYbFi1x2Vd6tKrywq+z/cLeYC/RJNFrIX/30Bf5aiGYbtvGXolEktzJH8o5E5KJ3tT+nkxuuZFVlA== + dependencies: + "@babel/types" "^7.18.6" + "@babel/helper-module-transforms@^7.18.0": version "7.18.0" resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.18.0.tgz#baf05dec7a5875fb9235bd34ca18bad4e21221cd" @@ -189,6 +269,20 @@ "@babel/traverse" "^7.18.0" "@babel/types" "^7.18.0" +"@babel/helper-module-transforms@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.18.6.tgz#57e3ca669e273d55c3cda55e6ebf552f37f483c8" + integrity sha512-L//phhB4al5uucwzlimruukHB3jRd5JGClwRMD/ROrVjXfLqovYnvQrK/JK36WYyVwGGO7OD3kMyVTjx+WVPhw== + dependencies: + "@babel/helper-environment-visitor" "^7.18.6" + "@babel/helper-module-imports" "^7.18.6" + "@babel/helper-simple-access" "^7.18.6" + "@babel/helper-split-export-declaration" "^7.18.6" + "@babel/helper-validator-identifier" "^7.18.6" + "@babel/template" "^7.18.6" + "@babel/traverse" "^7.18.6" + "@babel/types" "^7.18.6" + "@babel/helper-optimise-call-expression@^7.16.7": version "7.16.7" resolved "https://registry.yarnpkg.com/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.16.7.tgz#a34e3560605abbd31a18546bd2aad3e6d9a174f2" @@ -201,6 +295,11 @@ resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.17.12.tgz#86c2347da5acbf5583ba0a10aed4c9bf9da9cf96" integrity sha512-JDkf04mqtN3y4iAbO1hv9U2ARpPyPL1zqyWs/2WG1pgSq9llHFjStX5jdxb84himgJm+8Ng+x0oiWF/nw/XQKA== +"@babel/helper-plugin-utils@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.18.6.tgz#9448974dd4fb1d80fefe72e8a0af37809cd30d6d" + integrity sha512-gvZnm1YAAxh13eJdkb9EWHBnF3eAub3XTLCZEehHT2kWxiKVRL64+ae5Y6Ivne0mVHmMYKT+xWgZO+gQhuLUBg== + "@babel/helper-remap-async-to-generator@^7.16.8": version "7.16.8" resolved "https://registry.yarnpkg.com/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.16.8.tgz#29ffaade68a367e2ed09c90901986918d25e57e3" @@ -228,6 +327,13 @@ dependencies: "@babel/types" "^7.17.0" +"@babel/helper-simple-access@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.18.6.tgz#d6d8f51f4ac2978068df934b569f08f29788c7ea" + integrity sha512-iNpIgTgyAvDQpDj76POqg+YEt8fPxx3yaNBg3S30dxNKm2SWfYhD0TGrK/Eu9wHpUW63VQU894TsTg+GLbUa1g== + dependencies: + "@babel/types" "^7.18.6" + "@babel/helper-skip-transparent-expression-wrappers@^7.16.0": version "7.16.0" resolved "https://registry.yarnpkg.com/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.16.0.tgz#0ee3388070147c3ae051e487eca3ebb0e2e8bb09" @@ -242,16 +348,33 @@ dependencies: "@babel/types" "^7.16.7" +"@babel/helper-split-export-declaration@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.18.6.tgz#7367949bc75b20c6d5a5d4a97bba2824ae8ef075" + integrity sha512-bde1etTx6ZyTmobl9LLMMQsaizFVZrquTEHOqKeQESMKo4PlObf+8+JA25ZsIpZhT/WEd39+vOdLXAFG/nELpA== + dependencies: + "@babel/types" "^7.18.6" + "@babel/helper-validator-identifier@^7.14.9", "@babel/helper-validator-identifier@^7.16.7": version "7.16.7" resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.16.7.tgz#e8c602438c4a8195751243da9031d1607d247cad" integrity sha512-hsEnFemeiW4D08A5gUAZxLBTXpZ39P+a+DGDsHw1yxqyQ/jzFEnxf5uTEGp+3bzAbNOxU1paTgYS4ECU/IgfDw== +"@babel/helper-validator-identifier@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.18.6.tgz#9c97e30d31b2b8c72a1d08984f2ca9b574d7a076" + integrity sha512-MmetCkz9ej86nJQV+sFCxoGGrUbU3q02kgLciwkrt9QqEB7cP39oKEY0PakknEO0Gu20SskMRi+AYZ3b1TpN9g== + "@babel/helper-validator-option@^7.16.7": version "7.16.7" resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.16.7.tgz#b203ce62ce5fe153899b617c08957de860de4d23" integrity sha512-TRtenOuRUVo9oIQGPC5G9DgK4743cdxvtOw0weQNpZXaS16SCBi5MNjZF8vba3ETURjZpTbVn7Vvcf2eAwFozQ== +"@babel/helper-validator-option@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.18.6.tgz#bf0d2b5a509b1f336099e4ff36e1a63aa5db4db8" + integrity sha512-XO7gESt5ouv/LRJdrVjkShckw6STTaB7l9BrpBaAHDeF5YZT+01PCwmR0SJHnkW6i8OwW/EVWRShfi4j2x+KQw== + "@babel/helper-wrap-function@^7.16.8": version "7.16.8" resolved "https://registry.yarnpkg.com/@babel/helper-wrap-function/-/helper-wrap-function-7.16.8.tgz#58afda087c4cd235de92f7ceedebca2c41274200" @@ -271,6 +394,15 @@ "@babel/traverse" "^7.18.0" "@babel/types" "^7.18.0" +"@babel/helpers@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.18.6.tgz#4c966140eaa1fcaa3d5a8c09d7db61077d4debfd" + integrity sha512-vzSiiqbQOghPngUYt/zWGvK3LAsPhz55vc9XNN0xAl2gV4ieShI2OQli5duxWHD+72PZPTKAcfcZDE1Cwc5zsQ== + dependencies: + "@babel/template" "^7.18.6" + "@babel/traverse" "^7.18.6" + "@babel/types" "^7.18.6" + "@babel/highlight@^7.16.7": version "7.16.7" resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.16.7.tgz#81a01d7d675046f0d96f82450d9d9578bdfd6b0b" @@ -280,6 +412,15 @@ chalk "^2.0.0" js-tokens "^4.0.0" +"@babel/highlight@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.18.6.tgz#81158601e93e2563795adcbfbdf5d64be3f2ecdf" + integrity sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g== + dependencies: + "@babel/helper-validator-identifier" "^7.18.6" + chalk "^2.0.0" + js-tokens "^4.0.0" + "@babel/parser@7.15.3": version "7.15.3" resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.15.3.tgz#3416d9bea748052cfcb63dbcc27368105b1ed862" @@ -290,6 +431,11 @@ resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.18.0.tgz#10a8d4e656bc01128d299a787aa006ce1a91e112" integrity sha512-AqDccGC+m5O/iUStSJy3DGRIUFu7WbY/CppZYwrEUB4N0tZlnI8CSTsgL7v5fHVFmUbRv2sd+yy27o8Ydt4MGg== +"@babel/parser@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.18.6.tgz#845338edecad65ebffef058d3be851f1d28a63bc" + integrity sha512-uQVSa9jJUe/G/304lXspfWVpKpK4euFLgGiMQFOCpM/bgcAdeoHwi/OQz23O9GK2osz26ZiXRRV9aV+Yl1O8tw== + "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@^7.17.12": version "7.17.12" resolved "https://registry.yarnpkg.com/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.17.12.tgz#1dca338caaefca368639c9ffb095afbd4d420b1e" @@ -511,6 +657,13 @@ dependencies: "@babel/helper-plugin-utils" "^7.12.13" +"@babel/plugin-syntax-jsx@^7.16.7": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.18.6.tgz#a8feef63b010150abd97f1649ec296e849943ca0" + integrity sha512-6mmljtAedFGTWu2p/8WIORGwy+61PLgOMPOdazc7YoJ9ZCWUyFy3A6CpPkRKLKD1ToAesxX8KGEViAiLo9N+7Q== + dependencies: + "@babel/helper-plugin-utils" "^7.18.6" + "@babel/plugin-syntax-logical-assignment-operators@^7.10.4", "@babel/plugin-syntax-logical-assignment-operators@^7.8.3": version "7.10.4" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz#ca91ef46303530448b906652bac2e9fe9941f699" @@ -567,7 +720,14 @@ dependencies: "@babel/helper-plugin-utils" "^7.14.5" -"@babel/plugin-syntax-typescript@^7.12.13", "@babel/plugin-syntax-typescript@^7.17.12", "@babel/plugin-syntax-typescript@^7.7.2": +"@babel/plugin-syntax-typescript@^7.16.7": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.18.6.tgz#1c09cd25795c7c2b8a4ba9ae49394576d4133285" + integrity sha512-mAWAuq4rvOepWCBid55JuRNvpTNf2UGVgoz4JV0fXEKolsVZDzsa4NqCef758WZJj/GDu0gVGItjKFiClTAmZA== + dependencies: + "@babel/helper-plugin-utils" "^7.18.6" + +"@babel/plugin-syntax-typescript@^7.17.12", "@babel/plugin-syntax-typescript@^7.7.2": version "7.17.12" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.17.12.tgz#b54fc3be6de734a56b87508f99d6428b5b605a7b" integrity sha512-TYY0SXFiO31YXtNg3HtFwNJHjLsAyIIhAhNWkQ5whPPS7HWUFlg9z0Ta4qAQNjQbP1wsSt/oKkmZ/4/WWdMUpw== @@ -1000,6 +1160,15 @@ "@babel/parser" "^7.16.7" "@babel/types" "^7.16.7" +"@babel/template@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.18.6.tgz#1283f4993e00b929d6e2d3c72fdc9168a2977a31" + integrity sha512-JoDWzPe+wgBsTTgdnIma3iHNFC7YVJoPssVBDjiHfNlyt4YcunDtcDOUmfVDfCK5MfdsaIoX9PkijPhjH3nYUw== + dependencies: + "@babel/code-frame" "^7.18.6" + "@babel/parser" "^7.18.6" + "@babel/types" "^7.18.6" + "@babel/traverse@7.15.0": version "7.15.0" resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.15.0.tgz#4cca838fd1b2a03283c1f38e141f639d60b3fc98" @@ -1031,6 +1200,22 @@ debug "^4.1.0" globals "^11.1.0" +"@babel/traverse@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.18.6.tgz#a228562d2f46e89258efa4ddd0416942e2fd671d" + integrity sha512-zS/OKyqmD7lslOtFqbscH6gMLFYOfG1YPqCKfAW5KrTeolKqvB8UelR49Fpr6y93kYkW2Ik00mT1LOGiAGvizw== + dependencies: + "@babel/code-frame" "^7.18.6" + "@babel/generator" "^7.18.6" + "@babel/helper-environment-visitor" "^7.18.6" + "@babel/helper-function-name" "^7.18.6" + "@babel/helper-hoist-variables" "^7.18.6" + "@babel/helper-split-export-declaration" "^7.18.6" + "@babel/parser" "^7.18.6" + "@babel/types" "^7.18.6" + debug "^4.1.0" + globals "^11.1.0" + "@babel/types@7.15.0": version "7.15.0" resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.15.0.tgz#61af11f2286c4e9c69ca8deb5f4375a73c72dcbd" @@ -1047,6 +1232,14 @@ "@babel/helper-validator-identifier" "^7.16.7" to-fast-properties "^2.0.0" +"@babel/types@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.18.6.tgz#5d781dd10a3f0c9f1f931bd19de5eb26ec31acf0" + integrity sha512-NdBNzPDwed30fZdDQtVR7ZgaO4UKjuaQFH9VArS+HMnurlOY0JWN+4ROlu/iapMFwjRQU4pOG4StZfDmulEwGA== + dependencies: + "@babel/helper-validator-identifier" "^7.18.6" + to-fast-properties "^2.0.0" + "@bcoe/v8-coverage@^0.2.3": version "0.2.3" resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39" @@ -1931,25 +2124,26 @@ resolved "https://registry.yarnpkg.com/@repeaterjs/repeater/-/repeater-3.0.4.tgz#a04d63f4d1bf5540a41b01a921c9a7fddc3bd1ca" integrity sha512-AW8PKd6iX3vAZ0vA43nOUOnbq/X5ihgU+mSXXqunMkeQADGiqw/PY0JNeYtD5sr0PAy51YPgAPbDoeapv9r8WA== -"@rollup/plugin-json@4.1.0": +"@rollup/plugin-json@^4.1.0": version "4.1.0" resolved "https://registry.yarnpkg.com/@rollup/plugin-json/-/plugin-json-4.1.0.tgz#54e09867ae6963c593844d8bd7a9c718294496f3" integrity sha512-yfLbTdNS6amI/2OpmbiBoW12vngr5NW2jCJVZSBEz+H5KfUJZ2M7sDjk0U6GOOdCWFVScShte29o9NezJ53TPw== dependencies: "@rollup/pluginutils" "^3.0.8" -"@rollup/plugin-node-resolve@7.1.1": - version "7.1.1" - resolved "https://registry.yarnpkg.com/@rollup/plugin-node-resolve/-/plugin-node-resolve-7.1.1.tgz#8c6e59c4b28baf9d223028d0e450e06a485bb2b7" - integrity sha512-14ddhD7TnemeHE97a4rLOhobfYvUVcaYuqTnL8Ti7Jxi9V9Jr5LY7Gko4HZ5k4h4vqQM0gBQt6tsp9xXW94WPA== +"@rollup/plugin-node-resolve@^13.3.0": + version "13.3.0" + resolved "https://registry.yarnpkg.com/@rollup/plugin-node-resolve/-/plugin-node-resolve-13.3.0.tgz#da1c5c5ce8316cef96a2f823d111c1e4e498801c" + integrity sha512-Lus8rbUo1eEcnS4yTFKLZrVumLPY+YayBdWXgFSHYhTT2iJbMhoaaBL3xl5NCdeRytErGr8tZ0L71BMRmnlwSw== dependencies: - "@rollup/pluginutils" "^3.0.6" - "@types/resolve" "0.0.8" - builtin-modules "^3.1.0" + "@rollup/pluginutils" "^3.1.0" + "@types/resolve" "1.17.1" + deepmerge "^4.2.2" + is-builtin-module "^3.1.0" is-module "^1.0.0" - resolve "^1.14.2" + resolve "^1.19.0" -"@rollup/pluginutils@^3.0.6", "@rollup/pluginutils@^3.0.8": +"@rollup/pluginutils@^3.0.8", "@rollup/pluginutils@^3.1.0": version "3.1.0" resolved "https://registry.yarnpkg.com/@rollup/pluginutils/-/pluginutils-3.1.0.tgz#706b4524ee6dc8b103b3c995533e5ad680c02b9b" integrity sha512-GksZ6pr6TpIjHm8h9lSQ8pi8BE9VeubNT0OMJ3B5uZJ8pz73NPiqOtCog/x2/QzM1ENChPKxMDhiQuRHsqc+lg== @@ -1966,6 +2160,14 @@ estree-walker "^2.0.1" picomatch "^2.2.2" +"@rollup/pluginutils@^4.1.2": + version "4.2.1" + resolved "https://registry.yarnpkg.com/@rollup/pluginutils/-/pluginutils-4.2.1.tgz#e6c6c3aba0744edce3fb2074922d3776c0af2a6d" + integrity sha512-iKnFXr7NkdZAIHiIWE+BX5ULi/ucVFYWD6TbAV+rZctiRTY2PL6tsIKhoIOaoskiWAkgu+VsbXgUVDNLHf+InQ== + dependencies: + estree-walker "^2.0.1" + picomatch "^2.2.2" + "@samverschueren/stream-to-observable@^0.3.0": version "0.3.1" resolved "https://registry.yarnpkg.com/@samverschueren/stream-to-observable/-/stream-to-observable-0.3.1.tgz#a21117b19ee9be70c379ec1877537ef2e1c63301" @@ -2059,7 +2261,7 @@ resolved "https://registry.yarnpkg.com/@types/aria-query/-/aria-query-4.2.0.tgz#14264692a9d6e2fa4db3df5e56e94b5e25647ac0" integrity sha512-iIgQNzCm0v7QMhhe4Jjn9uRh+I6GoPmt03CbEtwx3ao8/EfoQcmgtqH4vQ5Db/lxiIGaWDv6nwvunuh0RyX0+A== -"@types/babel__core@^7.0.0", "@types/babel__core@^7.1.12", "@types/babel__core@^7.1.14": +"@types/babel__core@^7.0.0", "@types/babel__core@^7.1.14": version "7.1.16" resolved "https://registry.yarnpkg.com/@types/babel__core/-/babel__core-7.1.16.tgz#bc12c74b7d65e82d29876b5d0baf5c625ac58702" integrity sha512-EAEHtisTMM+KaKwfWdC3oyllIqswlznXCIVCt7/oRNrh+DhgT4UEBNC/jlADNjvw7UnfbcdkGQcPVZ1xYiLcrQ== @@ -2070,6 +2272,17 @@ "@types/babel__template" "*" "@types/babel__traverse" "*" +"@types/babel__core@^7.1.18": + version "7.1.19" + resolved "https://registry.yarnpkg.com/@types/babel__core/-/babel__core-7.1.19.tgz#7b497495b7d1b4812bdb9d02804d0576f43ee460" + integrity sha512-WEOTgRsbYkvA/KCsDwVEGkd7WAr1e3g31VHQ8zy5gul/V1qKullU/BU5I68X5v7V3GnB9eotmom4v5a5gjxorw== + dependencies: + "@babel/parser" "^7.1.0" + "@babel/types" "^7.0.0" + "@types/babel__generator" "*" + "@types/babel__template" "*" + "@types/babel__traverse" "*" + "@types/babel__generator@*": version "7.6.1" resolved "https://registry.yarnpkg.com/@types/babel__generator/-/babel__generator-7.6.1.tgz#4901767b397e8711aeb99df8d396d7ba7b7f0e04" @@ -2295,10 +2508,10 @@ resolved "https://registry.yarnpkg.com/@types/relay-runtime/-/relay-runtime-12.0.2.tgz#2d4162a23753f1ee27014a61d95a26ccae02dcc3" integrity sha512-TXHpHL4VFjCQfBDTXA8A7NMkANXRRNJISM/LewfwtqEKjaikFrPj70LLI/JVWthLcdQMhp0hw5RtO57i6gEcvw== -"@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== +"@types/resolve@1.17.1": + version "1.17.1" + resolved "https://registry.yarnpkg.com/@types/resolve/-/resolve-1.17.1.tgz#3afd6ad8967c77e4376c598a82ddd58f46ec45d6" + integrity sha512-yy7HuzQhj0dhGpD8RLXSZWEkLsV9ibvxvi6EiJ3bkqLAO1RGo0WbkWQiwpRlSFymTJRz0d3k5LM3kkx8ArDbLw== dependencies: "@types/node" "*" @@ -2383,10 +2596,10 @@ "@graphql-typed-document-node/core" "^3.1.1" wonka "^4.0.14" -"@vercel/ncc@0.28.3": - version "0.28.3" - resolved "https://registry.yarnpkg.com/@vercel/ncc/-/ncc-0.28.3.tgz#9461bdbf334d616759b0e7e5415e2f480b9aa30f" - integrity sha512-g3gk4D9itbhUQa5MtN7TOdeoQnNLkPDCox5SBaQ/H3Or5lo59TOaZWrLb+x47StiAJ+8DXZS/9MJ67cIBWSsRw== +"@vercel/ncc@^0.34.0": + version "0.34.0" + resolved "https://registry.yarnpkg.com/@vercel/ncc/-/ncc-0.34.0.tgz#d0139528320e46670d949c82967044a8f66db054" + integrity sha512-G9h5ZLBJ/V57Ou9vz5hI8pda/YQX5HQszCs3AmIus3XzsmRn/0Ptic5otD3xVST8QLKk7AMk7AqpsyQGN7MZ9A== "@vitejs/plugin-react-refresh@1.3.6": version "1.3.6" @@ -2580,6 +2793,11 @@ any-observable@^0.3.0: resolved "https://registry.yarnpkg.com/any-observable/-/any-observable-0.3.0.tgz#af933475e5806a67d0d7df090dd5e8bef65d119b" integrity sha512-/FQM1EDkTsf63Ub2C6O7GuYFDsSXUwsaZDurV0np41ocwq0jthUAYCmhBX9f+KwlaCgIuWyr/4WlUQUBfKfZog== +any-promise@^1.0.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/any-promise/-/any-promise-1.3.0.tgz#abc6afeedcea52e809cdc0376aed3ce39635d17f" + integrity sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A== + anymatch@^3.0.3, anymatch@~3.1.2: version "3.1.2" resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-3.1.2.tgz#c0557c096af32f106198f4f4e2a383537e378716" @@ -2658,11 +2876,6 @@ asynckit@^0.4.0: resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" integrity sha1-x57Zf380y48robyXkLzDZkdLS3k= -at-least-node@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/at-least-node/-/at-least-node-1.0.0.tgz#602cd4b46e844ad4effc92a8011a3c46e0238dc2" - integrity sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg== - atob@^2.1.2: version "2.1.2" resolved "https://registry.yarnpkg.com/atob/-/atob-2.1.2.tgz#6d9517eb9e030d2436666651e86bd9f6f13533c9" @@ -2739,7 +2952,7 @@ babel-plugin-macros@^2.0.0: cosmiconfig "^6.0.0" resolve "^1.12.0" -babel-plugin-macros@^3.0.1: +babel-plugin-macros@^3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/babel-plugin-macros/-/babel-plugin-macros-3.1.0.tgz#9ef6dc74deb934b4db344dc973ee851d148c50c1" integrity sha512-Cg7TFGpIr01vOQNODXOOaGz2NpCU5gl8x1qJFbb6hbZxR7XrcE2vtbAsTAbJ7/xwJtUuJEw8K8Zr/AE0LHlesg== @@ -2889,30 +3102,34 @@ bl@^4.0.3, bl@^4.1.0: inherits "^2.0.4" readable-stream "^3.4.0" -bob-the-bundler@1.5.1: - version "1.5.1" - resolved "https://registry.yarnpkg.com/bob-the-bundler/-/bob-the-bundler-1.5.1.tgz#31468d2194fde09f05ee40d5be8f94aa3e5f3781" - integrity sha512-npVm0JSzufI3419f1sFJ7r5A7c8oZ8893jJCaXa9AZNRfVMwKXKH6Z+820JvLbQMahQw3IrRImzEnsRWbd6riw== - dependencies: - "@rollup/plugin-json" "4.1.0" - "@rollup/plugin-node-resolve" "7.1.1" - "@vercel/ncc" "0.28.3" - builtins "4.0.0" - consola "2.11.3" - cosmiconfig "6.0.0" - cross-spawn "7.0.1" - fs-extra "9.0.0" - globby "11.0.0" - lodash.get "4.4.2" - minimatch "3.0.4" - mkdirp "1.0.4" - p-limit "2.2.2" - param-case "3.0.4" - rollup "2.3.2" - rollup-plugin-generate-package-json "3.2.0" - rollup-plugin-typescript2 "0.27.0" - tslib "^1.11.1" - yargs "15.3.1" +bob-the-bundler@2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/bob-the-bundler/-/bob-the-bundler-2.0.0.tgz#a0b5971e557d15f53c942e559a979542786677fc" + integrity sha512-3/qnKDSlUc/65hDgJLK/t7P2eWYKJF8Siz3Cu5mJRgMvtvYnbhKc5lbJyda/Y1sox1fnePHfBn+mFd/L/Z9KtA== + dependencies: + "@rollup/plugin-json" "^4.1.0" + "@rollup/plugin-node-resolve" "^13.3.0" + "@vercel/ncc" "^0.34.0" + builtins "^5.0.1" + consola "^2.15.3" + cosmiconfig "^7.0.1" + cross-spawn "^7.0.3" + dependency-graph "^0.11.0" + fs-extra "^10.1.0" + globby "^11.0.0" + lodash.get "^4.4.2" + minimatch "^5.1.0" + mkdirp "^1.0.4" + p-limit "^3.1.0" + param-case "^3.0.4" + resolve.exports "^1.1.0" + rollup "^2.75.6" + rollup-plugin-generate-package-json "^3.2.0" + rollup-plugin-typescript2 "^0.32.1" + tslib "^2.0.0" + tsup "^5.11.6" + yargs "^17.5.1" + zod "^3.17.3" body-parser@1.19.2: version "1.19.2" @@ -2938,6 +3155,13 @@ brace-expansion@^1.1.7: balanced-match "^1.0.0" concat-map "0.0.1" +brace-expansion@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-2.0.1.tgz#1edc459e0f0c548486ecf9fc99f2221364b9a0ae" + integrity sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA== + dependencies: + balanced-match "^1.0.0" + braces@^3.0.1, braces@~3.0.2: version "3.0.2" resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.2.tgz#3454e1a462ee8d599e236df336cd9ea4f8afe107" @@ -3005,23 +3229,35 @@ buffer@^5.2.1, buffer@^5.5.0, buffer@^5.7.0: base64-js "^1.3.1" ieee754 "^1.1.13" -builtin-modules@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-3.1.0.tgz#aad97c15131eb76b65b50ef208e7584cd76a7484" - integrity sha512-k0KL0aWZuBt2lrxrcASWDfwOLMnodeQjodT/1SxEQAXsHANgo6ZC/VEaSEHCXt7aSTZ4/4H5LKa+tBXmW7Vtvw== +builtin-modules@^3.0.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@4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/builtins/-/builtins-4.0.0.tgz#a8345420de82068fdc4d6559d0456403a8fb1905" - integrity sha512-qC0E2Dxgou1IHhvJSLwGDSTvokbRovU5zZFuDY6oY8Y2lF3nGt5Ad8YZK7GMtqzY84Wu7pXTPeHQeHcXSXsRhw== +builtins@^5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/builtins/-/builtins-5.0.1.tgz#87f6db9ab0458be728564fa81d876d8d74552fa9" + integrity sha512-qwVpFEHNfhYJIzNRBvd2C1kyo6jz3ZSMPyyuR47OPdiKWlbYnZNyDWuyR175qDnAJLiCo5fBBqPb3RiXgWlkOQ== dependencies: semver "^7.0.0" +bundle-require@^3.0.2: + version "3.0.4" + resolved "https://registry.yarnpkg.com/bundle-require/-/bundle-require-3.0.4.tgz#2b52ba77d99c0a586b5854cd21d36954e63cc110" + integrity sha512-VXG6epB1yrLAvWVQpl92qF347/UXmncQj7J3U8kZEbdVZ1ZkQyr4hYeL/9RvcE8vVVdp53dY78Fd/3pqfRqI1A== + dependencies: + load-tsconfig "^0.2.0" + bytes@3.1.2: version "3.1.2" resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.1.2.tgz#8b0beeb98605adf1b128fa4386403c009e0221a5" integrity sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg== +cac@^6.7.12: + version "6.7.12" + resolved "https://registry.yarnpkg.com/cac/-/cac-6.7.12.tgz#6fb5ea2ff50bd01490dbda497f4ae75a99415193" + integrity sha512-rM7E2ygtMkJqD9c7WnFU6fruFcN3xe4FM5yUmgxhZzIKJk4uHl9U/fhwdajGFQbQuv43FAUo1Fe8gX/oIKDeSA== + cacheable-request@^6.0.0: version "6.1.0" resolved "https://registry.yarnpkg.com/cacheable-request/-/cacheable-request-6.1.0.tgz#20ffb8bd162ba4be11e9567d823db651052ca912" @@ -3375,6 +3611,11 @@ combined-stream@^1.0.8: dependencies: delayed-stream "~1.0.0" +commander@^4.0.0: + version "4.1.1" + resolved "https://registry.yarnpkg.com/commander/-/commander-4.1.1.tgz#9fd602bd936294e9e9ef46a3f4d6964044b18068" + integrity sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA== + commander@^8.3.0: version "8.3.0" resolved "https://registry.yarnpkg.com/commander/-/commander-8.3.0.tgz#4837ea1b2da67b9c616a67afbb0fafee567bca66" @@ -3400,10 +3641,10 @@ concat-map@0.0.1: resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" integrity sha1-2Klr13/Wjfd5OnMDajug1UBdR3s= -consola@2.11.3: - version "2.11.3" - resolved "https://registry.yarnpkg.com/consola/-/consola-2.11.3.tgz#f7315836224c143ac5094b47fd4c816c2cd1560e" - integrity sha512-aoW0YIIAmeftGR8GSpw6CGQluNdkWMWh3yEFjH/hmynTYnMtibXszii3lxCXmk8YxJtI3FAK5aTiquA5VH68Gw== +consola@^2.15.3: + version "2.15.3" + resolved "https://registry.yarnpkg.com/consola/-/consola-2.15.3.tgz#2e11f98d6a4be71ff72e0bdf07bd23e12cb61550" + integrity sha512-9vAdYbHj6x2fLKC4+oPH0kFzY/orMZyG2Aj+kNylHxKGJ/Ed4dpNyAQYwJOdqO4zdM7XpVHmyejQDcQHrnuXbw== constant-case@^3.0.4: version "3.0.4" @@ -3478,18 +3719,7 @@ cosmiconfig-toml-loader@1.0.0: dependencies: "@iarna/toml" "^2.2.5" -cosmiconfig@6.0.0, cosmiconfig@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-6.0.0.tgz#da4fee853c52f6b1e6935f41c1a2fc50bd4a9982" - integrity sha512-xb3ZL6+L8b9JLLCx3ZdoZy4+2ECphCMo2PwqgP1tlfVq6M6YReyzBJtvWWtbDSpNr9hn96pkCiZqUcFEc+54Qg== - dependencies: - "@types/parse-json" "^4.0.0" - import-fresh "^3.1.0" - parse-json "^5.0.0" - path-type "^4.0.0" - yaml "^1.7.2" - -cosmiconfig@7.0.1, cosmiconfig@^7.0.0: +cosmiconfig@7.0.1, cosmiconfig@^7.0.0, cosmiconfig@^7.0.1: version "7.0.1" resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-7.0.1.tgz#714d756522cace867867ccb4474c5d01bbae5d6d" integrity sha512-a1YWNUV2HwGimB7dU2s1wUMurNKjpx60HxBB6xUM8Re+2s1g1IIfJvFR0/iCF+XHdE0GMTKTuLR32UQff4TEyQ== @@ -3510,6 +3740,17 @@ cosmiconfig@^5.0.5: js-yaml "^3.13.1" parse-json "^4.0.0" +cosmiconfig@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-6.0.0.tgz#da4fee853c52f6b1e6935f41c1a2fc50bd4a9982" + integrity sha512-xb3ZL6+L8b9JLLCx3ZdoZy4+2ECphCMo2PwqgP1tlfVq6M6YReyzBJtvWWtbDSpNr9hn96pkCiZqUcFEc+54Qg== + dependencies: + "@types/parse-json" "^4.0.0" + import-fresh "^3.1.0" + parse-json "^5.0.0" + path-type "^4.0.0" + yaml "^1.7.2" + cross-fetch@3.1.4, cross-fetch@^3.0.4, cross-fetch@^3.0.6, cross-fetch@^3.1.4: version "3.1.4" resolved "https://registry.yarnpkg.com/cross-fetch/-/cross-fetch-3.1.4.tgz#9723f3a3a247bf8b89039f3a380a9244e8fa2f39" @@ -3517,15 +3758,6 @@ cross-fetch@3.1.4, cross-fetch@^3.0.4, cross-fetch@^3.0.6, cross-fetch@^3.1.4: dependencies: node-fetch "2.6.1" -cross-spawn@7.0.1: - version "7.0.1" - resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.1.tgz#0ab56286e0f7c24e153d04cc2aa027e43a9a5d14" - integrity sha512-u7v4o84SwFpD32Z8IIcPZ6z1/ie24O6RU3RbtL5Y316l3KuHVPx9ItBgWQ6VlfAFnRnTtMUrsQ9MUUTuEZjogg== - dependencies: - path-key "^3.1.0" - shebang-command "^2.0.0" - which "^2.0.1" - cross-spawn@^5.1.0: version "5.1.0" resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-5.1.0.tgz#e8bd0efee58fcff6f8f94510a0a554bbfa235449" @@ -3958,101 +4190,201 @@ esbuild-android-64@0.14.27: resolved "https://registry.yarnpkg.com/esbuild-android-64/-/esbuild-android-64-0.14.27.tgz#b868bbd9955a92309c69df628d8dd1945478b45c" integrity sha512-LuEd4uPuj/16Y8j6kqy3Z2E9vNY9logfq8Tq+oTE2PZVuNs3M1kj5Qd4O95ee66yDGb3isaOCV7sOLDwtMfGaQ== +esbuild-android-64@0.14.47: + version "0.14.47" + resolved "https://registry.yarnpkg.com/esbuild-android-64/-/esbuild-android-64-0.14.47.tgz#ef95b42c67bcf4268c869153fa3ad1466c4cea6b" + integrity sha512-R13Bd9+tqLVFndncMHssZrPWe6/0Kpv2/dt4aA69soX4PRxlzsVpCvoJeFE8sOEoeVEiBkI0myjlkDodXlHa0g== + esbuild-android-arm64@0.14.27: version "0.14.27" resolved "https://registry.yarnpkg.com/esbuild-android-arm64/-/esbuild-android-arm64-0.14.27.tgz#e7d6430555e8e9c505fd87266bbc709f25f1825c" integrity sha512-E8Ktwwa6vX8q7QeJmg8yepBYXaee50OdQS3BFtEHKrzbV45H4foMOeEE7uqdjGQZFBap5VAqo7pvjlyA92wznQ== +esbuild-android-arm64@0.14.47: + version "0.14.47" + resolved "https://registry.yarnpkg.com/esbuild-android-arm64/-/esbuild-android-arm64-0.14.47.tgz#4ebd7ce9fb250b4695faa3ee46fd3b0754ecd9e6" + integrity sha512-OkwOjj7ts4lBp/TL6hdd8HftIzOy/pdtbrNA4+0oVWgGG64HrdVzAF5gxtJufAPOsEjkyh1oIYvKAUinKKQRSQ== + esbuild-darwin-64@0.14.27: version "0.14.27" resolved "https://registry.yarnpkg.com/esbuild-darwin-64/-/esbuild-darwin-64-0.14.27.tgz#4dc7484127564e89b4445c0a560a3cb50b3d68e1" integrity sha512-czw/kXl/1ZdenPWfw9jDc5iuIYxqUxgQ/Q+hRd4/3udyGGVI31r29LCViN2bAJgGvQkqyLGVcG03PJPEXQ5i2g== +esbuild-darwin-64@0.14.47: + version "0.14.47" + resolved "https://registry.yarnpkg.com/esbuild-darwin-64/-/esbuild-darwin-64-0.14.47.tgz#e0da6c244f497192f951807f003f6a423ed23188" + integrity sha512-R6oaW0y5/u6Eccti/TS6c/2c1xYTb1izwK3gajJwi4vIfNs1s8B1dQzI1UiC9T61YovOQVuePDcfqHLT3mUZJA== + esbuild-darwin-arm64@0.14.27: version "0.14.27" resolved "https://registry.yarnpkg.com/esbuild-darwin-arm64/-/esbuild-darwin-arm64-0.14.27.tgz#469e59c665f84a8ed323166624c5e7b9b2d22ac1" integrity sha512-BEsv2U2U4o672oV8+xpXNxN9bgqRCtddQC6WBh4YhXKDcSZcdNh7+6nS+DM2vu7qWIWNA4JbRG24LUUYXysimQ== +esbuild-darwin-arm64@0.14.47: + version "0.14.47" + resolved "https://registry.yarnpkg.com/esbuild-darwin-arm64/-/esbuild-darwin-arm64-0.14.47.tgz#cd40fd49a672fca581ed202834239dfe540a9028" + integrity sha512-seCmearlQyvdvM/noz1L9+qblC5vcBrhUaOoLEDDoLInF/VQ9IkobGiLlyTPYP5dW1YD4LXhtBgOyevoIHGGnw== + esbuild-freebsd-64@0.14.27: version "0.14.27" resolved "https://registry.yarnpkg.com/esbuild-freebsd-64/-/esbuild-freebsd-64-0.14.27.tgz#895df03bf5f87094a56c9a5815bf92e591903d70" integrity sha512-7FeiFPGBo+ga+kOkDxtPmdPZdayrSzsV9pmfHxcyLKxu+3oTcajeZlOO1y9HW+t5aFZPiv7czOHM4KNd0tNwCA== +esbuild-freebsd-64@0.14.47: + version "0.14.47" + resolved "https://registry.yarnpkg.com/esbuild-freebsd-64/-/esbuild-freebsd-64-0.14.47.tgz#8da6a14c095b29c01fc8087a16cb7906debc2d67" + integrity sha512-ZH8K2Q8/Ux5kXXvQMDsJcxvkIwut69KVrYQhza/ptkW50DC089bCVrJZZ3sKzIoOx+YPTrmsZvqeZERjyYrlvQ== + esbuild-freebsd-arm64@0.14.27: version "0.14.27" resolved "https://registry.yarnpkg.com/esbuild-freebsd-arm64/-/esbuild-freebsd-arm64-0.14.27.tgz#0b72a41a6b8655e9a8c5608f2ec1afdcf6958441" integrity sha512-8CK3++foRZJluOWXpllG5zwAVlxtv36NpHfsbWS7TYlD8S+QruXltKlXToc/5ZNzBK++l6rvRKELu/puCLc7jA== +esbuild-freebsd-arm64@0.14.47: + version "0.14.47" + resolved "https://registry.yarnpkg.com/esbuild-freebsd-arm64/-/esbuild-freebsd-arm64-0.14.47.tgz#ad31f9c92817ff8f33fd253af7ab5122dc1b83f6" + integrity sha512-ZJMQAJQsIOhn3XTm7MPQfCzEu5b9STNC+s90zMWe2afy9EwnHV7Ov7ohEMv2lyWlc2pjqLW8QJnz2r0KZmeAEQ== + esbuild-linux-32@0.14.27: version "0.14.27" resolved "https://registry.yarnpkg.com/esbuild-linux-32/-/esbuild-linux-32-0.14.27.tgz#43b8ba3803b0bbe7f051869c6a8bf6de1e95de28" integrity sha512-qhNYIcT+EsYSBClZ5QhLzFzV5iVsP1YsITqblSaztr3+ZJUI+GoK8aXHyzKd7/CKKuK93cxEMJPpfi1dfsOfdw== +esbuild-linux-32@0.14.47: + version "0.14.47" + resolved "https://registry.yarnpkg.com/esbuild-linux-32/-/esbuild-linux-32-0.14.47.tgz#de085e4db2e692ea30c71208ccc23fdcf5196c58" + integrity sha512-FxZOCKoEDPRYvq300lsWCTv1kcHgiiZfNrPtEhFAiqD7QZaXrad8LxyJ8fXGcWzIFzRiYZVtB3ttvITBvAFhKw== + esbuild-linux-64@0.14.27: version "0.14.27" resolved "https://registry.yarnpkg.com/esbuild-linux-64/-/esbuild-linux-64-0.14.27.tgz#dc8072097327ecfadba1735562824ce8c05dd0bd" integrity sha512-ESjck9+EsHoTaKWlFKJpPZRN26uiav5gkI16RuI8WBxUdLrrAlYuYSndxxKgEn1csd968BX/8yQZATYf/9+/qg== +esbuild-linux-64@0.14.47: + version "0.14.47" + resolved "https://registry.yarnpkg.com/esbuild-linux-64/-/esbuild-linux-64-0.14.47.tgz#2a9321bbccb01f01b04cebfcfccbabeba3658ba1" + integrity sha512-nFNOk9vWVfvWYF9YNYksZptgQAdstnDCMtR6m42l5Wfugbzu11VpMCY9XrD4yFxvPo9zmzcoUL/88y0lfJZJJw== + esbuild-linux-arm64@0.14.27: version "0.14.27" resolved "https://registry.yarnpkg.com/esbuild-linux-arm64/-/esbuild-linux-arm64-0.14.27.tgz#c52b58cbe948426b1559910f521b0a3f396f10b8" integrity sha512-no6Mi17eV2tHlJnqBHRLekpZ2/VYx+NfGxKcBE/2xOMYwctsanCaXxw4zapvNrGE9X38vefVXLz6YCF8b1EHiQ== +esbuild-linux-arm64@0.14.47: + version "0.14.47" + resolved "https://registry.yarnpkg.com/esbuild-linux-arm64/-/esbuild-linux-arm64-0.14.47.tgz#b9da7b6fc4b0ca7a13363a0c5b7bb927e4bc535a" + integrity sha512-ywfme6HVrhWcevzmsufjd4iT3PxTfCX9HOdxA7Hd+/ZM23Y9nXeb+vG6AyA6jgq/JovkcqRHcL9XwRNpWG6XRw== + esbuild-linux-arm@0.14.27: version "0.14.27" resolved "https://registry.yarnpkg.com/esbuild-linux-arm/-/esbuild-linux-arm-0.14.27.tgz#df869dbd67d4ee3a04b3c7273b6bd2b233e78a18" integrity sha512-JnnmgUBdqLQO9hoNZQqNHFWlNpSX82vzB3rYuCJMhtkuaWQEmQz6Lec1UIxJdC38ifEghNTBsF9bbe8dFilnCw== +esbuild-linux-arm@0.14.47: + version "0.14.47" + resolved "https://registry.yarnpkg.com/esbuild-linux-arm/-/esbuild-linux-arm-0.14.47.tgz#56fec2a09b9561c337059d4af53625142aded853" + integrity sha512-ZGE1Bqg/gPRXrBpgpvH81tQHpiaGxa8c9Rx/XOylkIl2ypLuOcawXEAo8ls+5DFCcRGt/o3sV+PzpAFZobOsmA== + esbuild-linux-mips64le@0.14.27: version "0.14.27" resolved "https://registry.yarnpkg.com/esbuild-linux-mips64le/-/esbuild-linux-mips64le-0.14.27.tgz#a2b646d9df368b01aa970a7b8968be6dd6b01d19" integrity sha512-NolWP2uOvIJpbwpsDbwfeExZOY1bZNlWE/kVfkzLMsSgqeVcl5YMen/cedRe9mKnpfLli+i0uSp7N+fkKNU27A== +esbuild-linux-mips64le@0.14.47: + version "0.14.47" + resolved "https://registry.yarnpkg.com/esbuild-linux-mips64le/-/esbuild-linux-mips64le-0.14.47.tgz#9db21561f8f22ed79ef2aedb7bbef082b46cf823" + integrity sha512-mg3D8YndZ1LvUiEdDYR3OsmeyAew4MA/dvaEJxvyygahWmpv1SlEEnhEZlhPokjsUMfRagzsEF/d/2XF+kTQGg== + esbuild-linux-ppc64le@0.14.27: version "0.14.27" resolved "https://registry.yarnpkg.com/esbuild-linux-ppc64le/-/esbuild-linux-ppc64le-0.14.27.tgz#9a21af766a0292578a3009c7408b8509cac7cefd" integrity sha512-/7dTjDvXMdRKmsSxKXeWyonuGgblnYDn0MI1xDC7J1VQXny8k1qgNp6VmrlsawwnsymSUUiThhkJsI+rx0taNA== +esbuild-linux-ppc64le@0.14.47: + version "0.14.47" + resolved "https://registry.yarnpkg.com/esbuild-linux-ppc64le/-/esbuild-linux-ppc64le-0.14.47.tgz#dc3a3da321222b11e96e50efafec9d2de408198b" + integrity sha512-WER+f3+szmnZiWoK6AsrTKGoJoErG2LlauSmk73LEZFQ/iWC+KhhDsOkn1xBUpzXWsxN9THmQFltLoaFEH8F8w== + esbuild-linux-riscv64@0.14.27: version "0.14.27" resolved "https://registry.yarnpkg.com/esbuild-linux-riscv64/-/esbuild-linux-riscv64-0.14.27.tgz#344a27f91568056a5903ad5841b447e00e78d740" integrity sha512-D+aFiUzOJG13RhrSmZgrcFaF4UUHpqj7XSKrIiCXIj1dkIkFqdrmqMSOtSs78dOtObWiOrFCDDzB24UyeEiNGg== +esbuild-linux-riscv64@0.14.47: + version "0.14.47" + resolved "https://registry.yarnpkg.com/esbuild-linux-riscv64/-/esbuild-linux-riscv64-0.14.47.tgz#9bd6dcd3dca6c0357084ecd06e1d2d4bf105335f" + integrity sha512-1fI6bP3A3rvI9BsaaXbMoaOjLE3lVkJtLxsgLHqlBhLlBVY7UqffWBvkrX/9zfPhhVMd9ZRFiaqXnB1T7BsL2g== + esbuild-linux-s390x@0.14.27: version "0.14.27" resolved "https://registry.yarnpkg.com/esbuild-linux-s390x/-/esbuild-linux-s390x-0.14.27.tgz#73a7309bd648a07ef58f069658f989a5096130db" integrity sha512-CD/D4tj0U4UQjELkdNlZhQ8nDHU5rBn6NGp47Hiz0Y7/akAY5i0oGadhEIg0WCY/HYVXFb3CsSPPwaKcTOW3bg== +esbuild-linux-s390x@0.14.47: + version "0.14.47" + resolved "https://registry.yarnpkg.com/esbuild-linux-s390x/-/esbuild-linux-s390x-0.14.47.tgz#a458af939b52f2cd32fc561410d441a51f69d41f" + integrity sha512-eZrWzy0xFAhki1CWRGnhsHVz7IlSKX6yT2tj2Eg8lhAwlRE5E96Hsb0M1mPSE1dHGpt1QVwwVivXIAacF/G6mw== + esbuild-netbsd-64@0.14.27: version "0.14.27" resolved "https://registry.yarnpkg.com/esbuild-netbsd-64/-/esbuild-netbsd-64-0.14.27.tgz#482a587cdbd18a6c264a05136596927deb46c30a" integrity sha512-h3mAld69SrO1VoaMpYl3a5FNdGRE/Nqc+E8VtHOag4tyBwhCQXxtvDDOAKOUQexBGca0IuR6UayQ4ntSX5ij1Q== +esbuild-netbsd-64@0.14.47: + version "0.14.47" + resolved "https://registry.yarnpkg.com/esbuild-netbsd-64/-/esbuild-netbsd-64-0.14.47.tgz#6388e785d7e7e4420cb01348d7483ab511b16aa8" + integrity sha512-Qjdjr+KQQVH5Q2Q1r6HBYswFTToPpss3gqCiSw2Fpq/ua8+eXSQyAMG+UvULPqXceOwpnPo4smyZyHdlkcPppQ== + esbuild-openbsd-64@0.14.27: version "0.14.27" resolved "https://registry.yarnpkg.com/esbuild-openbsd-64/-/esbuild-openbsd-64-0.14.27.tgz#e99f8cdc63f1628747b63edd124d53cf7796468d" integrity sha512-xwSje6qIZaDHXWoPpIgvL+7fC6WeubHHv18tusLYMwL+Z6bEa4Pbfs5IWDtQdHkArtfxEkIZz77944z8MgDxGw== +esbuild-openbsd-64@0.14.47: + version "0.14.47" + resolved "https://registry.yarnpkg.com/esbuild-openbsd-64/-/esbuild-openbsd-64-0.14.47.tgz#309af806db561aa886c445344d1aacab850dbdc5" + integrity sha512-QpgN8ofL7B9z8g5zZqJE+eFvD1LehRlxr25PBkjyyasakm4599iroUpaj96rdqRlO2ShuyqwJdr+oNqWwTUmQw== + esbuild-sunos-64@0.14.27: version "0.14.27" resolved "https://registry.yarnpkg.com/esbuild-sunos-64/-/esbuild-sunos-64-0.14.27.tgz#8611d825bcb8239c78d57452e83253a71942f45c" integrity sha512-/nBVpWIDjYiyMhuqIqbXXsxBc58cBVH9uztAOIfWShStxq9BNBik92oPQPJ57nzWXRNKQUEFWr4Q98utDWz7jg== +esbuild-sunos-64@0.14.47: + version "0.14.47" + resolved "https://registry.yarnpkg.com/esbuild-sunos-64/-/esbuild-sunos-64-0.14.47.tgz#3f19612dcdb89ba6c65283a7ff6e16f8afbf8aaa" + integrity sha512-uOeSgLUwukLioAJOiGYm3kNl+1wJjgJA8R671GYgcPgCx7QR73zfvYqXFFcIO93/nBdIbt5hd8RItqbbf3HtAQ== + esbuild-windows-32@0.14.27: version "0.14.27" resolved "https://registry.yarnpkg.com/esbuild-windows-32/-/esbuild-windows-32-0.14.27.tgz#c06374206d4d92dd31d4fda299b09f51a35e82f6" integrity sha512-Q9/zEjhZJ4trtWhFWIZvS/7RUzzi8rvkoaS9oiizkHTTKd8UxFwn/Mm2OywsAfYymgUYm8+y2b+BKTNEFxUekw== +esbuild-windows-32@0.14.47: + version "0.14.47" + resolved "https://registry.yarnpkg.com/esbuild-windows-32/-/esbuild-windows-32-0.14.47.tgz#a92d279c8458d5dc319abcfeb30aa49e8f2e6f7f" + integrity sha512-H0fWsLTp2WBfKLBgwYT4OTfFly4Im/8B5f3ojDv1Kx//kiubVY0IQunP2Koc/fr/0wI7hj3IiBDbSrmKlrNgLQ== + esbuild-windows-64@0.14.27: version "0.14.27" resolved "https://registry.yarnpkg.com/esbuild-windows-64/-/esbuild-windows-64-0.14.27.tgz#756631c1d301dfc0d1a887deed2459ce4079582f" integrity sha512-b3y3vTSl5aEhWHK66ngtiS/c6byLf6y/ZBvODH1YkBM+MGtVL6jN38FdHUsZasCz9gFwYs/lJMVY9u7GL6wfYg== +esbuild-windows-64@0.14.47: + version "0.14.47" + resolved "https://registry.yarnpkg.com/esbuild-windows-64/-/esbuild-windows-64-0.14.47.tgz#2564c3fcf0c23d701edb71af8c52d3be4cec5f8a" + integrity sha512-/Pk5jIEH34T68r8PweKRi77W49KwanZ8X6lr3vDAtOlH5EumPE4pBHqkCUdELanvsT14yMXLQ/C/8XPi1pAtkQ== + esbuild-windows-arm64@0.14.27: version "0.14.27" resolved "https://registry.yarnpkg.com/esbuild-windows-arm64/-/esbuild-windows-arm64-0.14.27.tgz#ad7e187193dcd18768b16065a950f4441d7173f4" integrity sha512-I/reTxr6TFMcR5qbIkwRGvldMIaiBu2+MP0LlD7sOlNXrfqIl9uNjsuxFPGEG4IRomjfQ5q8WT+xlF/ySVkqKg== +esbuild-windows-arm64@0.14.47: + version "0.14.47" + resolved "https://registry.yarnpkg.com/esbuild-windows-arm64/-/esbuild-windows-arm64-0.14.47.tgz#86d9db1a22d83360f726ac5fba41c2f625db6878" + integrity sha512-HFSW2lnp62fl86/qPQlqw6asIwCnEsEoNIL1h2uVMgakddf+vUuMcCbtUY1i8sst7KkgHrVKCJQB33YhhOweCQ== + esbuild@^0.14.14: version "0.14.27" resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.14.27.tgz#41fe0f1b6b68b9f77cac025009bc54bb96e616f1" @@ -4079,6 +4411,32 @@ esbuild@^0.14.14: esbuild-windows-64 "0.14.27" esbuild-windows-arm64 "0.14.27" +esbuild@^0.14.25: + version "0.14.47" + resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.14.47.tgz#0d6415f6bd8eb9e73a58f7f9ae04c5276cda0e4d" + integrity sha512-wI4ZiIfFxpkuxB8ju4MHrGwGLyp1+awEHAHVpx6w7a+1pmYIq8T9FGEVVwFo0iFierDoMj++Xq69GXWYn2EiwA== + optionalDependencies: + esbuild-android-64 "0.14.47" + esbuild-android-arm64 "0.14.47" + esbuild-darwin-64 "0.14.47" + esbuild-darwin-arm64 "0.14.47" + esbuild-freebsd-64 "0.14.47" + esbuild-freebsd-arm64 "0.14.47" + esbuild-linux-32 "0.14.47" + esbuild-linux-64 "0.14.47" + esbuild-linux-arm "0.14.47" + esbuild-linux-arm64 "0.14.47" + esbuild-linux-mips64le "0.14.47" + esbuild-linux-ppc64le "0.14.47" + esbuild-linux-riscv64 "0.14.47" + esbuild-linux-s390x "0.14.47" + esbuild-netbsd-64 "0.14.47" + esbuild-openbsd-64 "0.14.47" + esbuild-sunos-64 "0.14.47" + esbuild-windows-32 "0.14.47" + esbuild-windows-64 "0.14.47" + esbuild-windows-arm64 "0.14.47" + escalade@^3.1.1: version "3.1.1" resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.1.tgz#d8cfdc7000965c5a0174b4a82eaa5c0552742e40" @@ -4451,10 +4809,10 @@ finalhandler@~1.1.2: statuses "~1.5.0" unpipe "~1.0.0" -find-cache-dir@^3.3.1: - version "3.3.1" - resolved "https://registry.yarnpkg.com/find-cache-dir/-/find-cache-dir-3.3.1.tgz#89b33fad4a4670daa94f855f7fbe31d6d84fe880" - integrity sha512-t2GDMt3oGC/v+BMwzmllWDuJF/xcDtE5j/fCGbqDD7OLuJkj0cfh1YSA5VKPvwMeLFLNDBkwOKZ2X85jGLVftQ== +find-cache-dir@^3.3.2: + version "3.3.2" + resolved "https://registry.yarnpkg.com/find-cache-dir/-/find-cache-dir-3.3.2.tgz#b30c5b6eff0730731aea9bbd9dbecbd80256d64b" + integrity sha512-wXZV5emFEjrridIgED11OoUKLxiYjAcqot/NJdAkOhlJ+vGzwhOAfcG5OX1jP+S0PcjEn8bdMJv+g2jwQ3Onig== dependencies: commondir "^1.0.1" make-dir "^3.0.2" @@ -4544,24 +4902,14 @@ fs-constants@^1.0.0: resolved "https://registry.yarnpkg.com/fs-constants/-/fs-constants-1.0.0.tgz#6be0de9be998ce16af8afc24497b9ee9b7ccd9ad" integrity sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow== -fs-extra@8.1.0, fs-extra@^8.1.0: - version "8.1.0" - resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-8.1.0.tgz#49d43c45a88cd9677668cb7be1b46efdb8d2e1c0" - integrity sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g== - dependencies: - graceful-fs "^4.2.0" - jsonfile "^4.0.0" - universalify "^0.1.0" - -fs-extra@9.0.0: - version "9.0.0" - resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-9.0.0.tgz#b6afc31036e247b2466dc99c29ae797d5d4580a3" - integrity sha512-pmEYSk3vYsG/bF651KPUXZ+hvjpgWYw/Gc7W9NFUe3ZVLczKKWIij3IKpOrQcdw4TILtibFslZ0UmR8Vvzig4g== +fs-extra@^10.0.0, fs-extra@^10.1.0: + version "10.1.0" + resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-10.1.0.tgz#02873cfbc4084dde127eaa5f9905eef2325d1abf" + integrity sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ== dependencies: - at-least-node "^1.0.0" graceful-fs "^4.2.0" jsonfile "^6.0.1" - universalify "^1.0.0" + universalify "^2.0.0" fs-extra@^7.0.1: version "7.0.1" @@ -4572,6 +4920,15 @@ fs-extra@^7.0.1: jsonfile "^4.0.0" universalify "^0.1.0" +fs-extra@^8.1.0: + version "8.1.0" + resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-8.1.0.tgz#49d43c45a88cd9677668cb7be1b46efdb8d2e1c0" + integrity sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g== + dependencies: + graceful-fs "^4.2.0" + jsonfile "^4.0.0" + universalify "^0.1.0" + fs.realpath@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" @@ -4582,11 +4939,6 @@ fsevents@^2.3.2, fsevents@~2.3.2: resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.2.tgz#8a526f78b8fdf4623b709e0b975c52c24c02fd1a" integrity sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA== -fsevents@~2.1.2: - version "2.1.2" - resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.1.2.tgz#4c0a1fb34bc68e543b4b82a9ec392bfbda840805" - integrity sha512-R4wDiBwZ0KzpgOWetKDug1FZcYhqYnUYKtfZYt4mD5SBz76q0KR4Q9o7GIPamsVPGmW3EYPPJ0dOOjvx32ldZA== - function-bind@^1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d" @@ -4642,7 +4994,7 @@ glob-parent@^5.1.2, glob-parent@~5.1.2: dependencies: is-glob "^4.0.1" -glob@^7.1.1, glob@^7.1.2, glob@^7.1.3, glob@^7.1.4, glob@^7.1.6: +glob@7.1.6, glob@^7.1.1, glob@^7.1.2, glob@^7.1.3, glob@^7.1.4, glob@^7.1.6: version "7.1.6" resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.6.tgz#141f33b81a7c2492e125594307480c46679278a6" integrity sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA== @@ -4659,18 +5011,6 @@ globals@^11.1.0: resolved "https://registry.yarnpkg.com/globals/-/globals-11.12.0.tgz#ab8795338868a0babd8525758018c2a7eb95c42e" integrity sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA== -globby@11.0.0: - version "11.0.0" - resolved "https://registry.yarnpkg.com/globby/-/globby-11.0.0.tgz#56fd0e9f0d4f8fb0c456f1ab0dee96e1380bc154" - integrity sha512-iuehFnR3xu5wBBtm4xi0dMe92Ob87ufyu/dHwpDYfbcpYpIbrO5OnS8M1vWvrBhSGEJ3/Ecj7gnX76P8YxpPEg== - dependencies: - array-union "^2.1.0" - dir-glob "^3.0.1" - fast-glob "^3.1.1" - ignore "^5.1.4" - merge2 "^1.3.0" - slash "^3.0.0" - globby@12.2.0: version "12.2.0" resolved "https://registry.yarnpkg.com/globby/-/globby-12.2.0.tgz#2ab8046b4fba4ff6eede835b29f678f90e3d3c22" @@ -5090,6 +5430,13 @@ is-binary-path@~2.1.0: dependencies: binary-extensions "^2.0.0" +is-builtin-module@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/is-builtin-module/-/is-builtin-module-3.1.0.tgz#6fdb24313b1c03b75f8b9711c0feb8c30b903b00" + integrity sha512-OV7JjAgOTfAFJmHZLvpSTb4qi0nIILDV1gWPYDnDJUTNFM5aGlRAhk4QcT8i7TuAleeEV5Fdkqn3t4mS+Q11fg== + dependencies: + builtin-modules "^3.0.0" + is-ci@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/is-ci/-/is-ci-2.0.0.tgz#6bc6334181810e04b5c22b3d589fdca55026404c" @@ -5734,6 +6081,11 @@ jest@27.5.1: import-local "^3.0.2" jest-cli "^27.5.1" +joycon@^3.0.1: + version "3.1.1" + resolved "https://registry.yarnpkg.com/joycon/-/joycon-3.1.1.tgz#bce8596d6ae808f8b68168f5fc69280996894f03" + integrity sha512-34wB/Y7MW7bzjKRjUKTa46I2Z7eV62Rkhva+KkopW7Qvv/OSWBqvkSY7vusOPrNuZcUG3tApvdVgNB8POj3SPw== + "js-tokens@^3.0.0 || ^4.0.0", js-tokens@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" @@ -5955,6 +6307,11 @@ lilconfig@2.0.4: resolved "https://registry.yarnpkg.com/lilconfig/-/lilconfig-2.0.4.tgz#f4507d043d7058b380b6a8f5cb7bcd4b34cee082" integrity sha512-bfTIN7lEsiooCocSISTWXkiWJkRqtL9wYtYy+8EK3Y41qh3mpwPU0ycTOgjdY9ErwXCc8QyrQp82bdL0Xkm9yA== +lilconfig@^2.0.5: + version "2.0.5" + resolved "https://registry.yarnpkg.com/lilconfig/-/lilconfig-2.0.5.tgz#19e57fd06ccc3848fd1891655b5a447092225b25" + integrity sha512-xaYmXZtTHPAw5m+xLN8ab9C+3a8YmV3asNSPOATITbtwrfbwaLJj8h66H1WMIpALCkqsIzK3h7oQ+PdX+LQ9Eg== + lines-and-columns@^1.1.6: version "1.1.6" resolved "https://registry.yarnpkg.com/lines-and-columns/-/lines-and-columns-1.1.6.tgz#1c00c743b433cd0a4e80758f7b64a57440d9ff00" @@ -6045,6 +6402,11 @@ listr@^0.14.3: p-map "^2.0.0" rxjs "^6.3.3" +load-tsconfig@^0.2.0: + version "0.2.3" + resolved "https://registry.yarnpkg.com/load-tsconfig/-/load-tsconfig-0.2.3.tgz#08af3e7744943caab0c75f8af7f1703639c3ef1f" + integrity sha512-iyT2MXws+dc2Wi6o3grCFtGXpeMvHmJqS27sMPGtV2eUu4PeFnG+33I8BlFK1t1NWMjOpcx9bridn5yxLDX2gQ== + load-yaml-file@^0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/load-yaml-file/-/load-yaml-file-0.2.0.tgz#af854edaf2bea89346c07549122753c07372f64d" @@ -6074,10 +6436,10 @@ lodash.debounce@^4.0.8: resolved "https://registry.yarnpkg.com/lodash.debounce/-/lodash.debounce-4.0.8.tgz#82d79bff30a67c4005ffd5e2515300ad9ca4d7af" integrity sha1-gteb/zCmfEAF/9XiUVMArZyk168= -lodash.get@4.4.2, lodash.get@^4: +lodash.get@^4, lodash.get@^4.4.2: version "4.4.2" resolved "https://registry.yarnpkg.com/lodash.get/-/lodash.get-4.4.2.tgz#2d177f652fa31e939b4438d5341499dfa3825e99" - integrity sha1-LRd/ZS+jHpObRDjVNBSZ36OCXpk= + integrity sha512-z+Uw/vLuy6gQe8cfaFWD7p0wVv8fJl3mbzXh33RS+0oW2wvUqiRXiQ69gLWSLpgB5/6sU+r6BlQR0MBILadqTQ== lodash.includes@^4.3.0: version "4.3.0" @@ -6119,6 +6481,11 @@ lodash.once@^4.0.0: resolved "https://registry.yarnpkg.com/lodash.once/-/lodash.once-4.1.1.tgz#0dd3971213c7c56df880977d504c88fb471a97ac" integrity sha1-DdOXEhPHxW34gJd9UEyI+0cal6w= +lodash.sortby@^4.7.0: + version "4.7.0" + resolved "https://registry.yarnpkg.com/lodash.sortby/-/lodash.sortby-4.7.0.tgz#edd14c824e2cc9c1e0b0a1b42bb5210516a42438" + integrity sha512-HDWXG8isMntAyRF5vZ7xKuEvOhT4AhlRt/3czTSjvGUxjYCBVRQY48ViDHyfYz9VIoBkW4TMGQNapx+l3RUwdA== + lodash.startcase@^4.4.0: version "4.4.0" resolved "https://registry.yarnpkg.com/lodash.startcase/-/lodash.startcase-4.4.0.tgz#9436e34ed26093ed7ffae1936144350915d9add8" @@ -6383,6 +6750,13 @@ minimatch@^4.0.0: dependencies: brace-expansion "^1.1.7" +minimatch@^5.1.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-5.1.0.tgz#1717b464f4971b144f6aabe8f2d0b8e4511e09c7" + integrity sha512-9TPBGGak4nHfGZsPBohm9AWg6NoT7QTCehS3BIJABslyZbzxfV78QM2Y6+i741OPZIafFAaiiEMh5OyIrJPgtg== + dependencies: + brace-expansion "^2.0.1" + minimist-options@^4.0.2: version "4.1.0" resolved "https://registry.yarnpkg.com/minimist-options/-/minimist-options-4.1.0.tgz#c0655713c53a8a2ebd77ffa247d342c40f010619" @@ -6407,7 +6781,7 @@ mkdirp-classic@^0.5.2: resolved "https://registry.yarnpkg.com/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz#fa10c9115cc6d8865be221ba47ee9bed78601113" integrity sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A== -mkdirp@1.0.4, mkdirp@^1.0.4: +mkdirp@^1.0.4: version "1.0.4" resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-1.0.4.tgz#3eb5ed62622756d79a5f0e2a221dfebad75c2f7e" integrity sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw== @@ -6432,6 +6806,15 @@ mute-stream@0.0.8: resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.8.tgz#1630c42b2251ff81e2a283de96a5497ea92e5e0d" integrity sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA== +mz@^2.7.0: + version "2.7.0" + resolved "https://registry.yarnpkg.com/mz/-/mz-2.7.0.tgz#95008057a56cafadc2bc63dde7f9ff6955948e32" + integrity sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q== + dependencies: + any-promise "^1.0.0" + object-assign "^4.0.1" + thenify-all "^1.0.0" + nanoid@^3.3.1: version "3.3.1" resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.1.tgz#6347a18cac88af88f58af0b3594b723d5e99bb35" @@ -6536,10 +6919,10 @@ nwsapi@^2.2.0: resolved "https://registry.yarnpkg.com/nwsapi/-/nwsapi-2.2.0.tgz#204879a9e3d068ff2a55139c2c772780681a38b7" integrity sha512-h2AatdwYH+JHiZpv7pt/gSX1XoRGb7L/qSIeuqA6GwYoF9w1vP1cw42TO0aI2pNyshRK5893hNSl+1//vHK7hQ== -object-assign@^4, object-assign@^4.1.0, object-assign@^4.1.1: +object-assign@^4, object-assign@^4.0.1, object-assign@^4.1.0, object-assign@^4.1.1: version "4.1.1" resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" - integrity sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM= + integrity sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg== object-inspect@^1.12.0: version "1.12.0" @@ -6654,13 +7037,6 @@ p-filter@^2.1.0: dependencies: p-map "^2.0.0" -p-limit@2.2.2, p-limit@^2.2.0: - version "2.2.2" - resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-2.2.2.tgz#61279b67721f5287aa1c13a9a7fbbc48c9291b1e" - integrity sha512-WGR+xHecKTr7EbUEhyLSh5Dube9JtdiG78ufaeLxTgpudf/20KqyMioIUZJAezlTIi6evxuoUs9YXc11cU+yzQ== - dependencies: - p-try "^2.0.0" - p-limit@3.1.0, p-limit@^3.0.2, p-limit@^3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-3.1.0.tgz#e1daccbe78d0d1388ca18c64fea38e3e57e3706b" @@ -6668,6 +7044,13 @@ p-limit@3.1.0, p-limit@^3.0.2, p-limit@^3.1.0: dependencies: yocto-queue "^0.1.0" +p-limit@^2.2.0: + version "2.2.2" + resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-2.2.2.tgz#61279b67721f5287aa1c13a9a7fbbc48c9291b1e" + integrity sha512-WGR+xHecKTr7EbUEhyLSh5Dube9JtdiG78ufaeLxTgpudf/20KqyMioIUZJAezlTIi6evxuoUs9YXc11cU+yzQ== + dependencies: + p-try "^2.0.0" + p-locate@^4.1.0: version "4.1.0" resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-4.1.0.tgz#a3428bb7088b3a60292f66919278b7c297ad4f07" @@ -6709,7 +7092,7 @@ package-json@^6.3.0: registry-url "^5.0.0" semver "^6.2.0" -param-case@3.0.4, param-case@^3.0.4: +param-case@^3.0.4: version "3.0.4" resolved "https://registry.yarnpkg.com/param-case/-/param-case-3.0.4.tgz#7d17fe4aa12bde34d4a77d91acfb6219caad01c5" integrity sha512-RXlj7zCYokReqWpOPH9oYivUzLYZ5vAPIfEmCTNViosC78F8F0H9y7T7gG2M39ymgutxF5gcFEsyZQSph9Bp3A== @@ -6826,7 +7209,7 @@ path-key@^3.0.0, path-key@^3.1.0: resolved "https://registry.yarnpkg.com/path-key/-/path-key-3.1.1.tgz#581f6ade658cbba65a0d3380de7753295054f375" integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q== -path-parse@^1.0.6, path-parse@^1.0.7: +path-parse@^1.0.7: version "1.0.7" resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735" integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw== @@ -6903,6 +7286,11 @@ pino@^6.13.0: quick-format-unescaped "^4.0.3" sonic-boom "^1.0.2" +pirates@^4.0.1: + version "4.0.5" + resolved "https://registry.yarnpkg.com/pirates/-/pirates-4.0.5.tgz#feec352ea5c3268fb23a37c702ab1699f35a5f3b" + integrity sha512-8V9+HQPupnaXMA23c5hvl69zXvTwTzyAYasnkb0Tts4XvO4CliqONMOnvlq26rkhLC3nWDFBJf73LU1e1VZLaQ== + pirates@^4.0.4: version "4.0.4" resolved "https://registry.yarnpkg.com/pirates/-/pirates-4.0.4.tgz#07df81e61028e402735cdd49db701e4885b4e6e6" @@ -6915,6 +7303,14 @@ pkg-dir@4.2.0, pkg-dir@^4.1.0, pkg-dir@^4.2.0: dependencies: find-up "^4.0.0" +postcss-load-config@^3.0.1: + version "3.1.4" + resolved "https://registry.yarnpkg.com/postcss-load-config/-/postcss-load-config-3.1.4.tgz#1ab2571faf84bb078877e1d07905eabe9ebda855" + integrity sha512-6DiM4E7v4coTE4uzA8U//WhtPwyhiim3eyjEMFCnUpzbrkK9wJHgKDT2mR+HbtSrd/NubVaYTOpSpjUl8NQeRg== + dependencies: + lilconfig "^2.0.5" + yaml "^1.10.2" + postcss@^8.4.6: version "8.4.12" resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.12.tgz#1e7de78733b28970fa4743f7da6f3763648b1905" @@ -7401,13 +7797,6 @@ resolve.exports@^1.1.0: resolved "https://registry.yarnpkg.com/resolve.exports/-/resolve.exports-1.1.0.tgz#5ce842b94b05146c0e03076985d1d0e7e48c90c9" integrity sha512-J1l+Zxxp4XK3LUDZ9m60LRJF/mAe4z6a4xyabPHk7pvK5t35dACV32iIjJDFeWZFfZlO29w6SZ67knR0tHzJtQ== -resolve@1.15.1: - version "1.15.1" - resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.15.1.tgz#27bdcdeffeaf2d6244b95bb0f9f4b4653451f3e8" - integrity sha512-84oo6ZTtoTUpjgNEr5SJyzQhzL72gaRodsSfyxC/AXRvwu0Yse9H8eF9IpGo7b8YetZhlI6v7ZQ6bKBFV/6S7w== - dependencies: - path-parse "^1.0.6" - resolve@^1.0.0, resolve@^1.10.0, resolve@^1.12.0, resolve@^1.14.2, resolve@^1.19.0, resolve@^1.20.0, resolve@^1.22.0: version "1.22.0" resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.0.tgz#5e0b8c67c15df57a89bdbabe603a002f21731198" @@ -7469,7 +7858,7 @@ rimraf@^2.6.1, rimraf@^2.6.3: dependencies: glob "^7.1.3" -rollup-plugin-generate-package-json@3.2.0: +rollup-plugin-generate-package-json@^3.2.0: version "3.2.0" resolved "https://registry.yarnpkg.com/rollup-plugin-generate-package-json/-/rollup-plugin-generate-package-json-3.2.0.tgz#e9c1d358f2be6c58b49853af58205292d45a33ff" integrity sha512-+Kq1kFVr+maxW/mZB+E+XuaieCXVZqjl2tNU9k3TtAMs3NOaeREa5sRHy67qKDmcnFtZZukIQ3dFCcnV+r0xyw== @@ -7477,23 +7866,16 @@ rollup-plugin-generate-package-json@3.2.0: read-pkg "^5.2.0" write-pkg "^4.0.0" -rollup-plugin-typescript2@0.27.0: - version "0.27.0" - resolved "https://registry.yarnpkg.com/rollup-plugin-typescript2/-/rollup-plugin-typescript2-0.27.0.tgz#95ff96f9e07d5000a9d2df4d76b548f9a1f83511" - integrity sha512-SRKG/Canve3cxBsqhY1apIBznqnX9X/WU3Lrq3XSwmTmFqccj3+//logLXFEmp+PYFNllSVng+f4zjqRTPKNkA== +rollup-plugin-typescript2@^0.32.1: + version "0.32.1" + resolved "https://registry.yarnpkg.com/rollup-plugin-typescript2/-/rollup-plugin-typescript2-0.32.1.tgz#470ded8e1965efac02043cc0ef4a7fa36bed83b9" + integrity sha512-RanO8bp1WbeMv0bVlgcbsFNCn+Y3rX7wF97SQLDxf0fMLsg0B/QFF005t4AsGUcDgF3aKJHoqt4JF2xVaABeKw== dependencies: - "@rollup/pluginutils" "^3.0.8" - find-cache-dir "^3.3.1" - fs-extra "8.1.0" - resolve "1.15.1" - tslib "1.11.1" - -rollup@2.3.2: - version "2.3.2" - resolved "https://registry.yarnpkg.com/rollup/-/rollup-2.3.2.tgz#afa68e4f3325bcef4e150d082056bef450bcac60" - integrity sha512-p66+fbfaUUOGE84sHXAOgfeaYQMslgAazoQMp//nlR519R61213EPFgrMZa48j31jNacJwexSAR1Q8V/BwGKBA== - optionalDependencies: - fsevents "~2.1.2" + "@rollup/pluginutils" "^4.1.2" + find-cache-dir "^3.3.2" + fs-extra "^10.0.0" + resolve "^1.20.0" + tslib "^2.4.0" rollup@^2.59.0: version "2.61.1" @@ -7502,6 +7884,13 @@ rollup@^2.59.0: optionalDependencies: fsevents "~2.3.2" +rollup@^2.74.1, rollup@^2.75.6: + version "2.75.7" + resolved "https://registry.yarnpkg.com/rollup/-/rollup-2.75.7.tgz#221ff11887ae271e37dcc649ba32ce1590aaa0b9" + integrity sha512-VSE1iy0eaAYNCxEXaleThdFXqZJ42qDBatAwrfnPlENEZ8erQ+0LYX4JXOLPceWfZpV1VtZwZ3dFCuOZiSyFtQ== + optionalDependencies: + fsevents "~2.3.2" + run-async@^2.4.0: version "2.4.1" resolved "https://registry.yarnpkg.com/run-async/-/run-async-2.4.1.tgz#8440eccf99ea3e70bd409d49aab88e10c189a455" @@ -7844,6 +8233,13 @@ source-map-support@^0.5.12, source-map-support@^0.5.17, source-map-support@^0.5. buffer-from "^1.0.0" source-map "^0.6.0" +source-map@0.8.0-beta.0: + version "0.8.0-beta.0" + resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.8.0-beta.0.tgz#d4c1bb42c3f7ee925f005927ba10709e0d1d1f11" + integrity sha512-2ymg6oRBpebeZi9UUNsgQ89bhx01TcTkmNTGnNO88imTmbSgy4nfujrgVEFKWpMTEGA11EDkTt7mqObTPdigIA== + dependencies: + whatwg-url "^7.0.0" + source-map@^0.6.0, source-map@^0.6.1, source-map@~0.6.1: version "0.6.1" resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" @@ -7987,6 +8383,15 @@ string-width@^4.1.0, string-width@^4.2.0: is-fullwidth-code-point "^3.0.0" strip-ansi "^6.0.0" +string-width@^4.2.3: + version "4.2.3" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" + integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== + dependencies: + emoji-regex "^8.0.0" + is-fullwidth-code-point "^3.0.0" + strip-ansi "^6.0.1" + string-width@^5.0.0: version "5.1.2" resolved "https://registry.yarnpkg.com/string-width/-/string-width-5.1.2.tgz#14f8daec6d81e7221d2a357e668cab73bdbca794" @@ -8024,6 +8429,13 @@ strip-ansi@^6.0.0: dependencies: ansi-regex "^5.0.0" +strip-ansi@^6.0.1: + version "6.0.1" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" + integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== + dependencies: + ansi-regex "^5.0.1" + strip-ansi@^7.0.1: version "7.0.1" resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-7.0.1.tgz#61740a08ce36b61e50e65653f07060d000975fb2" @@ -8074,6 +8486,18 @@ subscriptions-transport-ws@^0.11.0: symbol-observable "^1.0.4" ws "^5.2.0 || ^6.0.0 || ^7.0.0" +sucrase@^3.20.3: + version "3.22.0" + resolved "https://registry.yarnpkg.com/sucrase/-/sucrase-3.22.0.tgz#9fd6d12b93c758a65c3b99cc3e4436274ea79d55" + integrity sha512-RZeE0UPxCjf99p4c9Sb27qRbsuZBd7TViR/q1P6TsUPYa/H2LIkaCPpio6F1nQksrynYA78KEBUnpxswZiPYcg== + dependencies: + commander "^4.0.0" + glob "7.1.6" + lines-and-columns "^1.1.6" + mz "^2.7.0" + pirates "^4.0.1" + ts-interface-checker "^0.1.9" + supports-color@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7" @@ -8199,6 +8623,20 @@ test-exclude@^6.0.0: glob "^7.1.4" minimatch "^3.0.4" +thenify-all@^1.0.0: + version "1.6.0" + resolved "https://registry.yarnpkg.com/thenify-all/-/thenify-all-1.6.0.tgz#1a1918d402d8fc3f98fbf234db0bcc8cc10e9726" + integrity sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA== + dependencies: + thenify ">= 3.1.0 < 4" + +"thenify@>= 3.1.0 < 4": + version "3.3.1" + resolved "https://registry.yarnpkg.com/thenify/-/thenify-3.3.1.tgz#8932e686a4066038a016dd9e2ca46add9838a95f" + integrity sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw== + dependencies: + any-promise "^1.0.0" + throat@^6.0.1: version "6.0.1" resolved "https://registry.yarnpkg.com/throat/-/throat-6.0.1.tgz#d514fedad95740c12c2d7fc70ea863eb51ade375" @@ -8274,6 +8712,13 @@ tough-cookie@^4.0.0: punycode "^2.1.1" universalify "^0.1.2" +tr46@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/tr46/-/tr46-1.0.1.tgz#a8b13fd6bfd2489519674ccde55ba3693b706d09" + integrity sha512-dTpowEjclQ7Kgx5SdBkqRzVhERQXov8/l9Ft9dVM9fmg0W0KQSVaXX9T4i6twCPNtYiZM53lpSSUAwJbFPOHxA== + dependencies: + punycode "^2.1.0" + tr46@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/tr46/-/tr46-2.1.0.tgz#fa87aa81ca5d5941da8cbf1f9b749dc969a4e240" @@ -8296,6 +8741,11 @@ trim-newlines@^3.0.0: resolved "https://registry.yarnpkg.com/trim-newlines/-/trim-newlines-3.0.0.tgz#79726304a6a898aa8373427298d54c2ee8b1cb30" integrity sha512-C4+gOpvmxaSMKuEf9Qc134F1ZuOHVXKRbtEflf4NTtuuJDEIJ9p5PXsalL8SkeRw+qit1Mo+yuvMPAKwWg/1hA== +ts-interface-checker@^0.1.9: + version "0.1.13" + resolved "https://registry.yarnpkg.com/ts-interface-checker/-/ts-interface-checker-0.1.13.tgz#784fd3d679722bc103b1b4b8030bcddb5db2a699" + integrity sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA== + ts-invariant@^0.9.4: version "0.9.4" resolved "https://registry.yarnpkg.com/ts-invariant/-/ts-invariant-0.9.4.tgz#42ac6c791aade267dd9dc65276549df5c5d71cac" @@ -8370,12 +8820,12 @@ tsconfig@^7.0.0: strip-bom "^3.0.0" strip-json-comments "^2.0.0" -tslib@1.11.1, tslib@^1.11.1, tslib@^1.9.0: +tslib@^1.9.0: version "1.11.1" resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.11.1.tgz#eb15d128827fbee2841549e171f45ed338ac7e35" integrity sha512-aZW88SY8kQbU7gpV19lN24LtXh/yD4ZZg6qieAJDDg+YBsJcSmLGK9QpnUjAKVG/xefmvJGd1WUmfpT/g6AJGA== -tslib@^2, tslib@^2.0.3, tslib@^2.1.0, tslib@^2.3.0, tslib@~2.4.0: +tslib@^2, tslib@^2.0.0, tslib@^2.0.3, tslib@^2.1.0, tslib@^2.3.0, tslib@^2.4.0, tslib@~2.4.0: version "2.4.0" resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.4.0.tgz#7cecaa7f073ce680a05847aa77be941098f36dc3" integrity sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ== @@ -8390,6 +8840,26 @@ tslib@~2.3.0: resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.3.1.tgz#e8a335add5ceae51aa261d32a490158ef042ef01" integrity sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw== +tsup@^5.11.6: + version "5.12.9" + resolved "https://registry.yarnpkg.com/tsup/-/tsup-5.12.9.tgz#8cdd9b4bc6493317cb92edf5f3476920dddcdb18" + integrity sha512-dUpuouWZYe40lLufo64qEhDpIDsWhRbr2expv5dHEMjwqeKJS2aXA/FPqs1dxO4T6mBojo7rvo3jP9NNzaKyDg== + dependencies: + bundle-require "^3.0.2" + cac "^6.7.12" + chokidar "^3.5.1" + debug "^4.3.1" + esbuild "^0.14.25" + execa "^5.0.0" + globby "^11.0.3" + joycon "^3.0.1" + postcss-load-config "^3.0.1" + resolve-from "^5.0.0" + rollup "^2.74.1" + source-map "0.8.0-beta.0" + sucrase "^3.20.3" + tree-kill "^1.2.2" + tty-table@^2.8.10: version "2.8.13" resolved "https://registry.yarnpkg.com/tty-table/-/tty-table-2.8.13.tgz#d484a416381973eaebbdf19c79136b390e5c6d70" @@ -8520,6 +8990,11 @@ universalify@^1.0.0: resolved "https://registry.yarnpkg.com/universalify/-/universalify-1.0.0.tgz#b61a1da173e8435b2fe3c67d29b9adf8594bd16d" integrity sha512-rb6X1W158d7pRQBg5gkR8uPaSfiids68LTJQYOtEUhoJUWBdaQHsuT/EUduxXYxcrt4r5PJ4fuHW1MHT6p0qug== +universalify@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/universalify/-/universalify-2.0.0.tgz#75a4984efedc4b08975c5aeb73f530d02df25717" + integrity sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ== + unixify@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/unixify/-/unixify-1.0.0.tgz#3a641c8c2ffbce4da683a5c70f03a462940c2090" @@ -8616,17 +9091,16 @@ vary@^1, vary@~1.1.2: resolved "https://registry.yarnpkg.com/vary/-/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc" integrity sha1-IpnwLG3tMNSllhsLn3RSShj2NPw= -vite-plugin-babel-macros@1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/vite-plugin-babel-macros/-/vite-plugin-babel-macros-1.0.5.tgz#417216812460eb0605d49a968dcea24e04f0d061" - integrity sha512-QPPeIIiu1y6C9T0pG8gkOSuE5ukQ1o4AIaYGm9b8yFsk7C4T4wLmzxpXrVYMMWGmZ0ul5ZaNP+NY9+ROGMDiVw== +vite-plugin-babel-macros@1.0.6: + version "1.0.6" + resolved "https://registry.yarnpkg.com/vite-plugin-babel-macros/-/vite-plugin-babel-macros-1.0.6.tgz#d05cee3c38c620ccb534e38f412fdd899a3365b5" + integrity sha512-7cCT8jtu5UjpE46pH7RyVltWw5FbhDAtQliZ6QGqRNR5RUZKdAsB0CDjuF+VBoDpnl0KuESPu22SoNqXRYYWyQ== dependencies: - "@babel/core" "^7.13.8" - "@babel/plugin-syntax-jsx" "^7.12.13" - "@babel/plugin-syntax-typescript" "^7.12.13" - "@types/babel__core" "^7.1.12" - babel-plugin-macros "^3.0.1" - tslib "^2.1.0" + "@babel/core" "^7.17.7" + "@babel/plugin-syntax-jsx" "^7.16.7" + "@babel/plugin-syntax-typescript" "^7.16.7" + "@types/babel__core" "^7.1.18" + babel-plugin-macros "^3.1.0" vite@2.8.6: version "2.8.6" @@ -8678,6 +9152,11 @@ webidl-conversions@^3.0.0: resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-3.0.1.tgz#24534275e2a7bc6be7bc86611cc16ae0a5654871" integrity sha1-JFNCdeKnvGvnvIZhHMFq4KVlSHE= +webidl-conversions@^4.0.2: + version "4.0.2" + resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-4.0.2.tgz#a855980b1f0b6b359ba1d5d9fb39ae941faa63ad" + integrity sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg== + webidl-conversions@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-5.0.0.tgz#ae59c8a00b121543a2acc65c0434f57b0fc11aff" @@ -8713,6 +9192,15 @@ whatwg-url@^5.0.0: tr46 "~0.0.3" webidl-conversions "^3.0.0" +whatwg-url@^7.0.0: + version "7.1.0" + resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-7.1.0.tgz#c2c492f1eca612988efd3d2266be1b9fc6170d06" + integrity sha512-WUu7Rg1DroM7oQvGWfOiAK21n74Gg+T4elXEQYkOhtyLeWiJFoOGLXPKI/9gzIie9CtwVLm8wtw6YJdKyxSjeg== + dependencies: + lodash.sortby "^4.7.0" + tr46 "^1.0.1" + webidl-conversions "^4.0.2" + whatwg-url@^8.0.0, whatwg-url@^8.5.0: version "8.7.0" resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-8.7.0.tgz#656a78e510ff8f3937bc0bcbe9f5c0ac35941b77" @@ -8908,7 +9396,12 @@ yargs-parser@^18.1.1, yargs-parser@^18.1.3: camelcase "^5.0.0" decamelize "^1.2.0" -yargs@15.3.1, yargs@^15.1.0, yargs@^15.3.1: +yargs-parser@^21.0.0: + version "21.0.1" + resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-21.0.1.tgz#0267f286c877a4f0f728fceb6f8a3e4cb95c6e35" + integrity sha512-9BK1jFpLzJROCI5TzwZL/TU4gqjK5xiHV/RfWLOahrjAko/e4DJkRDZQXfvqAsiZzzYhgAzbgz6lg48jcm4GLg== + +yargs@^15.1.0, yargs@^15.3.1: version "15.3.1" resolved "https://registry.yarnpkg.com/yargs/-/yargs-15.3.1.tgz#9505b472763963e54afe60148ad27a330818e98b" integrity sha512-92O1HWEjw27sBfgmXiixJWT5hRBp2eobqXicLtPBIDBhYB+1HpwZlXmbW2luivBJHBzki+7VyCLRtAkScbTBQA== @@ -8951,6 +9444,19 @@ yargs@^17.0.0: y18n "^5.0.5" yargs-parser "^20.2.2" +yargs@^17.5.1: + version "17.5.1" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-17.5.1.tgz#e109900cab6fcb7fd44b1d8249166feb0b36e58e" + integrity sha512-t6YAJcxDkNX7NFYiVtKvWUz8l+PaKTLiL63mJYWR2GnHq2gjEWISzsLp9wg3aY36dY1j+gfIEL3pIF+XlJJfbA== + dependencies: + cliui "^7.0.2" + escalade "^3.1.1" + get-caller-file "^2.0.5" + require-directory "^2.1.1" + string-width "^4.2.3" + y18n "^5.0.5" + yargs-parser "^21.0.0" + yauzl@^2.10.0: version "2.10.0" resolved "https://registry.yarnpkg.com/yauzl/-/yauzl-2.10.0.tgz#c7eb17c93e112cb1086fa6d8e51fb0667b79a5f9" @@ -8985,3 +9491,8 @@ zen-observable@0.8.15: version "0.8.15" resolved "https://registry.yarnpkg.com/zen-observable/-/zen-observable-0.8.15.tgz#96415c512d8e3ffd920afd3889604e30b9eaac15" integrity sha512-PQ2PC7R9rslx84ndNBZB/Dkv8V8fZEpk83RLgXtYd0fwUgEjseMn1Dgajh2x6S8QbZAFa9p2qVCEuYZNgve0dQ== + +zod@^3.17.3: + version "3.17.3" + resolved "https://registry.yarnpkg.com/zod/-/zod-3.17.3.tgz#86abbc670ff0063a4588d85a4dcc917d6e4af2ba" + integrity sha512-4oKP5zvG6GGbMlqBkI5FESOAweldEhSOZ6LI6cG+JzUT7ofj1ZOC0PJudpQOpT1iqOFpYYtX5Pw0+o403y4bcg==